diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md index e704b5dbbca2..ec2c521cabdc 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-25) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0 (2023-02-21) This is the first stable release of the Azure Automanage management library. 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 e033876dbc89..a69ad6a36b60 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 @@ -327,6 +327,16 @@ protected AutomanageVmConfigurationProfileAssignmentResource() { } } namespace Azure.ResourceManager.Automanage.Models { + public static partial class ArmAutomanageModelFactory + { + 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.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.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 partial class AutomanageConfigurationProfileAssignmentProperties { public AutomanageConfigurationProfileAssignmentProperties() { } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs new file mode 100644 index 000000000000..59e8d1a23794 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ArmAutomanageModelFactory.cs @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Automanage; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automanage.Models +{ + /// Model factory for models. + public static partial class ArmAutomanageModelFactory + { + /// Initializes a new instance of AutomanageBestPracticeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// configuration dictionary of the configuration profile. + /// A new instance for mocking. + public static AutomanageBestPracticeData AutomanageBestPracticeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData configuration = null) + { + return new AutomanageBestPracticeData(id, name, resourceType, systemData, configuration); + } + + /// Initializes a new instance of AutomanageConfigurationProfileData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of the configuration profile. + /// A new instance for mocking. + public static AutomanageConfigurationProfileData AutomanageConfigurationProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, BinaryData configuration = null) + { + tags ??= new Dictionary(); + + return new AutomanageConfigurationProfileData(id, name, resourceType, systemData, tags, location, configuration != null ? new ConfigurationProfileProperties(configuration) : null); + } + + /// Initializes a new instance of AutomanageConfigurationProfileAssignmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the configuration profile assignment. + /// Azure resource id. Indicates if this resource is managed by another Azure resource. + /// A new instance for mocking. + public static AutomanageConfigurationProfileAssignmentData AutomanageConfigurationProfileAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AutomanageConfigurationProfileAssignmentProperties properties = null, string managedBy = null) + { + return new AutomanageConfigurationProfileAssignmentData(id, name, resourceType, systemData, properties, managedBy); + } + + /// Initializes a new instance of AutomanageConfigurationProfileAssignmentProperties. + /// The Automanage configurationProfile ARM Resource URI. + /// The target VM resource URI. + /// The status of onboarding, which only appears in the response. + /// A new instance for mocking. + public static AutomanageConfigurationProfileAssignmentProperties AutomanageConfigurationProfileAssignmentProperties(ResourceIdentifier configurationProfile = null, ResourceIdentifier targetId = null, string status = null) + { + return new AutomanageConfigurationProfileAssignmentProperties(configurationProfile, targetId, status); + } + + /// Initializes a new instance of AutomanageConfigurationProfileAssignmentReportData. + /// The id. + /// 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. + /// 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) + { + resources ??= new List(); + + return new AutomanageConfigurationProfileAssignmentReportData(id, name, resourceType, systemData, startOn, endOn, lastModifiedOn, duration, configurationProfileAssignmentProcessingType, status, configurationProfile, resources?.ToList(), error, reportFormatVersion); + } + + /// Initializes a new instance of ConfigurationProfileAssignmentReportResourceDetails. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Status of the resource. + /// Error message, if any, returned when deploying the resource. + /// A new instance for mocking. + public static ConfigurationProfileAssignmentReportResourceDetails ConfigurationProfileAssignmentReportResourceDetails(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string status = null, ResponseError error = null) + { + return new ConfigurationProfileAssignmentReportResourceDetails(id, name, resourceType, systemData, status, error); + } + + /// Initializes a new instance of AutomanageServicePrincipalData. + /// The id. + /// 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. + /// 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) + { + return new AutomanageServicePrincipalData(id, name, resourceType, systemData, servicePrincipalId, isAuthorizationSet); + } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md index c8c052fdb879..3d00c46bf192 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md @@ -2,7 +2,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Automanage namespace: Azure.ResourceManager.Automanage diff --git a/sdk/automation/Azure.ResourceManager.Automation/CHANGELOG.md b/sdk/automation/Azure.ResourceManager.Automation/CHANGELOG.md index 8137e7052cf4..c014c8838fa9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/CHANGELOG.md +++ b/sdk/automation/Azure.ResourceManager.Automation/CHANGELOG.md @@ -1,20 +1,22 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-25) ### Features Added +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). - Added `AutomationCertificateData.ThumbprintString`, `AutomationCertificateCreateOrUpdateContent.ThumbprintString` to return the hexadecimal string representation of the SHA-1 hash of the certificate. `AutomationCertificateData.Thumbprint`, `AutomationCertificateCreateOrUpdateContent.Thumbprint` have been hidden but are still available. -### Breaking Changes - ### Bugs Fixed - Fixed an issue that `System.UriFormatException` is thrown when `Uri` type field is empty during serialization of `AutomationWebhookData`. ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-14) ### Bugs Fixed 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 a5bab933446c..845eaaf4470a 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 @@ -1217,6 +1217,67 @@ public partial class AgentRegistrationRegenerateKeyContent public AgentRegistrationRegenerateKeyContent(Azure.ResourceManager.Automation.Models.AgentRegistrationKeyName keyName) { } public Azure.ResourceManager.Automation.Models.AgentRegistrationKeyName KeyName { get { throw null; } } } + public static partial class ArmAutomationModelFactory + { + public static Azure.ResourceManager.Automation.Models.AgentRegistration AgentRegistration(string dscMetaConfiguration = null, System.Uri endpoint = null, Azure.ResourceManager.Automation.Models.AgentRegistrationKeys keys = null, Azure.Core.ResourceIdentifier id = null) { throw null; } + 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.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; } + public static Azure.ResourceManager.Automation.Models.AutomationActivityParameterDefinition AutomationActivityParameterDefinition(string name = null, string activityParameterType = null, bool? isMandatory = default(bool?), bool? isDynamic = default(bool?), long? position = default(long?), bool? canTakeValueFromPipeline = default(bool?), bool? canTakeValueFromPipelineByPropertyName = default(bool?), bool? canTakeValueValueFromRemainingArguments = default(bool?), string description = null, System.Collections.Generic.IEnumerable validationSet = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationActivityParameterSet AutomationActivityParameterSet(string name = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationActivityParameterValidationSet AutomationActivityParameterValidationSet(string memberValue = null) { throw null; } + public static Azure.ResourceManager.Automation.AutomationCertificateData AutomationCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string thumbprintString = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), bool? isExportable = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } + public static Azure.ResourceManager.Automation.AutomationConnectionData AutomationConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string connectionTypeName = null, System.Collections.Generic.IReadOnlyDictionary fieldDefinitionValues = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } + 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.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; } + 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; } + public static Azure.ResourceManager.Automation.Models.AutomationKey AutomationKey(Azure.ResourceManager.Automation.Models.AutomationKeyName? keyName = default(Azure.ResourceManager.Automation.Models.AutomationKeyName?), Azure.ResourceManager.Automation.Models.AutomationKeyPermission? permissions = default(Azure.ResourceManager.Automation.Models.AutomationKeyPermission?), string value = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationLinkedWorkspace AutomationLinkedWorkspace(string id = null) { throw null; } + public static Azure.ResourceManager.Automation.AutomationModuleData AutomationModuleData(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?), bool? isGlobal = default(bool?), string version = null, long? sizeInBytes = default(long?), int? activityCount = default(int?), Azure.ResourceManager.Automation.Models.ModuleProvisioningState? provisioningState = default(Azure.ResourceManager.Automation.Models.ModuleProvisioningState?), Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null, Azure.ResourceManager.Automation.Models.AutomationModuleErrorInfo error = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, bool? isComposite = default(bool?)) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationModuleField AutomationModuleField(string name = null, string fieldType = null) { throw null; } + 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.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; } + 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; } + public static Azure.ResourceManager.Automation.Models.AutomationUsage AutomationUsage(string id = null, Azure.ResourceManager.Automation.Models.AutomationUsageCounterName name = null, string unit = null, double? currentValue = default(double?), long? limit = default(long?), string throttleStatus = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationUsageCounterName AutomationUsageCounterName(string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Automation.AutomationVariableData AutomationVariableData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, bool? isEncrypted = default(bool?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } + public static Azure.ResourceManager.Automation.AutomationWatcherData AutomationWatcherData(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?), long? executionFrequencyInSeconds = default(long?), string scriptName = null, System.Collections.Generic.IDictionary scriptParameters = null, string scriptRunOn = null, string status = 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.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.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.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; } + public static Azure.ResourceManager.Automation.DscNodeConfigurationData DscNodeConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string configurationName = null, string source = null, long? nodeCount = default(long?), bool? isIncrementNodeConfigurationBuildRequired = default(bool?)) { throw null; } + public static Azure.ResourceManager.Automation.Models.DscNodeCount DscNodeCount(string name = null, int? nameCount = default(int?)) { throw null; } + public static Azure.ResourceManager.Automation.DscNodeData DscNodeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), System.DateTimeOffset? registrationOn = default(System.DateTimeOffset?), string ip = null, string accountId = null, string status = null, string nodeId = null, Azure.ETag? etag = default(Azure.ETag?), int? totalCount = default(int?), System.Collections.Generic.IEnumerable extensionHandler = null, string namePropertiesNodeConfigurationName = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.DscNodeReport DscNodeReport(System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string dscNodeReportType = null, string reportId = null, string status = null, string refreshMode = null, string rebootRequested = null, string reportFormatVersion = null, string configurationVersion = null, string id = null, System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable resources = null, Azure.ResourceManager.Automation.Models.DscMetaConfiguration metaConfiguration = null, string hostName = null, System.Collections.Generic.IEnumerable ipV4Addresses = null, System.Collections.Generic.IEnumerable ipV6Addresses = null, int? numberOfResources = default(int?), string rawErrors = null) { throw null; } + 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.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.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; } + public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRun SoftwareUpdateConfigurationRun(string name = null, Azure.Core.ResourceIdentifier id = null, string softwareUpdateName = null, string status = null, System.TimeSpan? configuredDuration = default(System.TimeSpan?), string osType = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), int? computerCount = default(int?), int? failedCount = default(int?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string createdBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTasks tasks = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTaskProperties SoftwareUpdateConfigurationRunTaskProperties(string status = null, string source = null, System.Guid? jobId = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTasks SoftwareUpdateConfigurationRunTasks(Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTaskProperties preTask = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTaskProperties postTask = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfigurationScheduleProperties(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?), long? interval = default(long?), 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.Models.SourceControlSyncJob SourceControlSyncJob(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = 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?)) { throw null; } + 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 partial class AutomationAccountCreateOrUpdateContent { public AutomationAccountCreateOrUpdateContent() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs new file mode 100644 index 000000000000..b286bd1799de --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs @@ -0,0 +1,1004 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Automation; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Model factory for models. + public static partial class ArmAutomationModelFactory + { + /// Initializes a new instance of AutomationPrivateEndpointConnectionData. + /// 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) + { + groupIds ??= new List(); + + return new AutomationPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, groupIds?.ToList(), connectionState); + } + + /// Initializes a new instance of AutomationPrivateLinkServiceConnectionStateProperty. + /// 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) + { + return new AutomationPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired); + } + + /// Initializes a new instance of AutomationPrivateLinkResource. + /// 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) + { + requiredMembers ??= new List(); + + return new AutomationPrivateLinkResource(id, name, resourceType, systemData, groupId, requiredMembers?.ToList()); + } + + /// Initializes a new instance of AutomationModuleData. + /// 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) + { + tags ??= new Dictionary(); + + return new AutomationModuleData(id, name, resourceType, systemData, tags, location, etag, isGlobal, version, sizeInBytes, activityCount, provisioningState, contentLink, error, createdOn, lastModifiedOn, description, isComposite); + } + + /// Initializes a new instance of AgentRegistration. + /// Gets or sets the dsc meta configuration. + /// Gets or sets the dsc server endpoint. + /// Gets or sets the agent registration keys. + /// Gets or sets the id. + /// A new instance for mocking. + public static AgentRegistration AgentRegistration(string dscMetaConfiguration = null, Uri endpoint = null, AgentRegistrationKeys keys = null, ResourceIdentifier id = null) + { + return new AgentRegistration(dscMetaConfiguration, endpoint, keys, id); + } + + /// Initializes a new instance of AgentRegistrationKeys. + /// Gets or sets the primary key. + /// Gets or sets the secondary key. + /// A new instance for mocking. + public static AgentRegistrationKeys AgentRegistrationKeys(string primary = null, string secondary = null) + { + return new AgentRegistrationKeys(primary, secondary); + } + + /// Initializes a new instance of DscNodeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the last seen time of the node. + /// Gets or sets the registration time of the node. + /// Gets or sets the ip of the node. + /// Gets or sets the account id of the node. + /// Gets or sets the status of the node. + /// Gets or sets the node id. + /// Gets or sets the etag of the resource. + /// Gets the total number of records matching filter criteria. + /// Gets or sets the list of extensionHandler properties for a Node. + /// Gets or sets the name of the dsc node configuration. + /// A new instance for mocking. + public static DscNodeData DscNodeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastSeenOn = null, DateTimeOffset? registrationOn = null, string ip = null, string accountId = null, string status = null, string nodeId = null, ETag? etag = null, int? totalCount = null, IEnumerable extensionHandler = null, string namePropertiesNodeConfigurationName = null) + { + extensionHandler ??= new List(); + + return new DscNodeData(id, name, resourceType, systemData, lastSeenOn, registrationOn, ip, accountId, status, nodeId, etag, totalCount, extensionHandler?.ToList(), namePropertiesNodeConfigurationName); + } + + /// Initializes a new instance of DscNodeReport. + /// Gets or sets the end time of the node report. + /// Gets or sets the lastModifiedTime of the node report. + /// Gets or sets the start time of the node report. + /// Gets or sets the type of the node report. + /// Gets or sets the id of the node report. + /// Gets or sets the status of the node report. + /// Gets or sets the refreshMode of the node report. + /// Gets or sets the rebootRequested of the node report. + /// Gets or sets the reportFormatVersion of the node report. + /// Gets or sets the configurationVersion of the node report. + /// Gets or sets the id. + /// Gets or sets the errors for the node report. + /// Gets or sets the resource for the node report. + /// Gets or sets the metaConfiguration of the node at the time of the report. + /// Gets or sets the hostname of the node that sent the report. + /// Gets or sets the IPv4 address of the node that sent the report. + /// Gets or sets the IPv6 address of the node that sent the report. + /// Gets or sets the number of resource in the node report. + /// Gets or sets the unparsed errors for the node report. + /// A new instance for mocking. + public static DscNodeReport DscNodeReport(DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? startOn = null, string dscNodeReportType = null, string reportId = null, string status = null, string refreshMode = null, string rebootRequested = null, string reportFormatVersion = null, string configurationVersion = null, string id = null, IEnumerable errors = null, IEnumerable resources = null, DscMetaConfiguration metaConfiguration = null, string hostName = null, IEnumerable ipV4Addresses = null, IEnumerable ipV6Addresses = null, int? numberOfResources = null, string rawErrors = null) + { + errors ??= new List(); + resources ??= new List(); + ipV4Addresses ??= new List(); + ipV6Addresses ??= new List(); + + return new DscNodeReport(endOn, lastModifiedOn, startOn, dscNodeReportType, reportId, status, refreshMode, rebootRequested, reportFormatVersion, configurationVersion, id, errors?.ToList(), resources?.ToList(), metaConfiguration, hostName, ipV4Addresses?.ToList(), ipV6Addresses?.ToList(), numberOfResources, rawErrors); + } + + /// Initializes a new instance of DscReportError. + /// Gets or sets the source of the error. + /// Gets or sets the resource ID which generated the error. + /// Gets or sets the error code. + /// Gets or sets the error message. + /// Gets or sets the locale of the error. + /// Gets or sets the error details. + /// A new instance for mocking. + public static DscReportError DscReportError(string errorSource = null, string resourceId = null, string errorCode = null, string errorMessage = null, string locale = null, string errorDetails = null) + { + return new DscReportError(errorSource, resourceId, errorCode, errorMessage, locale, errorDetails); + } + + /// Initializes a new instance of DscReportResource. + /// Gets or sets the ID of the resource. + /// Gets or sets the source info of the resource. + /// Gets or sets the Resource Navigation values for resources the resource depends on. + /// Gets or sets the module name of the resource. + /// Gets or sets the module version of the resource. + /// Gets or sets the name of the resource. + /// Gets or sets the error of the resource. + /// Gets or sets the status of the resource. + /// Gets or sets the duration in seconds for the resource. + /// Gets or sets the start date of the resource. + /// A new instance for mocking. + public static DscReportResource DscReportResource(string resourceId = null, string sourceInfo = null, IEnumerable dependsOn = null, string moduleName = null, string moduleVersion = null, string resourceName = null, string error = null, string status = null, double? durationInSeconds = null, DateTimeOffset? startOn = null) + { + dependsOn ??= new List(); + + return new DscReportResource(resourceId, sourceInfo, dependsOn?.ToList(), moduleName, moduleVersion, resourceName, error, status, durationInSeconds, startOn); + } + + /// Initializes a new instance of DscReportResourceNavigation. + /// Gets or sets the ID of the resource to navigate to. + /// A new instance for mocking. + public static DscReportResourceNavigation DscReportResourceNavigation(string resourceId = null) + { + return new DscReportResourceNavigation(resourceId); + } + + /// Initializes a new instance of DscMetaConfiguration. + /// Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration. + /// Gets or sets the RebootNodeIfNeeded value of the meta configuration. + /// Gets or sets the ConfigurationMode value of the meta configuration. + /// Gets or sets the ActionAfterReboot value of the meta configuration. + /// Gets or sets the CertificateId value of the meta configuration. + /// Gets or sets the RefreshFrequencyMins value of the meta configuration. + /// Gets or sets the AllowModuleOverwrite value of the meta configuration. + /// A new instance for mocking. + public static DscMetaConfiguration DscMetaConfiguration(int? configurationModeFrequencyMins = null, bool? rebootNodeIfNeeded = null, string configurationMode = null, string actionAfterReboot = null, string certificateId = null, int? refreshFrequencyMins = null, bool? allowModuleOverwrite = null) + { + return new DscMetaConfiguration(configurationModeFrequencyMins, rebootNodeIfNeeded, configurationMode, actionAfterReboot, certificateId, refreshFrequencyMins, allowModuleOverwrite); + } + + /// Initializes a new instance of DscNodeConfigurationData. + /// 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) : null, source, nodeCount, isIncrementNodeConfigurationBuildRequired); + } + + /// Initializes a new instance of DscCompilationJobData. + /// 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) : null, startedBy, jobId, createdOn, provisioningState, runOn, status, statusDetails, startOn, endOn, exception, lastModifiedOn, lastStatusModifiedOn, parameters); + } + + /// Initializes a new instance of AutomationJobStream. + /// 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); + } + + /// Initializes a new instance of DscNodeCount. + /// 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) : null); + } + + /// Initializes a new instance of AutomationSourceControlData. + /// 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 AutomationSourceControlData(id, name, resourceType, systemData, repoUri, branch, folderPath, isAutoSyncEnabled, isAutoPublishRunbookEnabled, sourceType, description, createdOn, lastModifiedOn); + } + + /// Initializes a new instance of SourceControlSyncJob. + /// 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, name, resourceType, systemData, sourceControlSyncJobId, createdOn, provisioningState, startOn, endOn, syncType); + } + + /// Initializes a new instance of SourceControlSyncJobResult. + /// 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); + } + + /// Initializes a new instance of SourceControlSyncJobStream. + /// 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); + } + + /// Initializes a new instance of SourceControlSyncJobStreamResult. + /// 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); + } + + /// Initializes a new instance of AutomationAccountData. + /// 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) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new AutomationAccountData(id, name, resourceType, systemData, tags, location, etag, identity, sku, lastModifiedBy, state, createdOn, lastModifiedOn, description, encryption, privateEndpointConnections?.ToList(), isPublicNetworkAccessAllowed, isLocalAuthDisabled, automationHybridServiceUri); + } + + /// Initializes a new instance of AutomationAccountStatistics. + /// Gets the property value of the statistic. + /// Gets the value of the statistic. + /// Gets the startTime of the statistic. + /// Gets the endTime of the statistic. + /// Gets the id. + /// A new instance for mocking. + public static AutomationAccountStatistics AutomationAccountStatistics(string counterProperty = null, long? counterValue = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string id = null) + { + return new AutomationAccountStatistics(counterProperty, counterValue, startOn, endOn, id); + } + + /// Initializes a new instance of AutomationUsage. + /// Gets or sets the id of the resource. + /// Gets or sets the usage counter name. + /// Gets or sets the usage unit name. + /// Gets or sets the current usage value. + /// Gets or sets max limit. -1 for unlimited. + /// Gets or sets the throttle status. + /// A new instance for mocking. + public static AutomationUsage AutomationUsage(string id = null, AutomationUsageCounterName name = null, string unit = null, double? currentValue = null, long? limit = null, string throttleStatus = null) + { + return new AutomationUsage(id, name, unit, currentValue, limit, throttleStatus); + } + + /// Initializes a new instance of AutomationUsageCounterName. + /// Gets or sets the usage counter name. + /// Gets or sets the localized usage counter name. + /// A new instance for mocking. + public static AutomationUsageCounterName AutomationUsageCounterName(string value = null, string localizedValue = null) + { + return new AutomationUsageCounterName(value, localizedValue); + } + + /// Initializes a new instance of AutomationKey. + /// Automation key name. + /// Automation key permissions. + /// Value of the Automation Key used for registration. + /// A new instance for mocking. + public static AutomationKey AutomationKey(AutomationKeyName? keyName = null, AutomationKeyPermission? permissions = null, string value = null) + { + return new AutomationKey(keyName, permissions, value); + } + + /// Initializes a new instance of AutomationCertificateData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets the thumbprint of the certificate. + /// Gets the expiry time of the certificate. + /// Gets the is exportable flag of the certificate. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationCertificateData AutomationCertificateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string thumbprintString = null, DateTimeOffset? expireOn = null, bool? isExportable = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + return new AutomationCertificateData(id, name, resourceType, systemData, thumbprintString, expireOn, isExportable, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the connectionType of the connection. + /// Gets the field definition values of the connection. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationConnectionData AutomationConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string connectionTypeName = null, IReadOnlyDictionary fieldDefinitionValues = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + fieldDefinitionValues ??= new Dictionary(); + + return new AutomationConnectionData(id, name, resourceType, systemData, connectionTypeName != null ? new ConnectionTypeAssociationProperty(connectionTypeName) : null, fieldDefinitionValues, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationConnectionTypeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets a Boolean value to indicate if the connection type is global. + /// Gets the field definitions of the connection type. + /// Gets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationConnectionTypeData AutomationConnectionTypeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isGlobal = null, IReadOnlyDictionary fieldDefinitions = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + fieldDefinitions ??= new Dictionary(); + + return new AutomationConnectionTypeData(id, name, resourceType, systemData, isGlobal, fieldDefinitions, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationCredentialData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets the user name of the credential. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationCredentialData AutomationCredentialData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string userName = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + return new AutomationCredentialData(id, name, resourceType, systemData, userName, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationJobScheduleData. + /// 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) : null, runbookName != null ? new RunbookAssociationProperty(runbookName) : null, runOn, parameters); + } + + /// Initializes a new instance of AutomationLinkedWorkspace. + /// Gets the id of the linked workspace. + /// A new instance for mocking. + public static AutomationLinkedWorkspace AutomationLinkedWorkspace(string id = null) + { + return new AutomationLinkedWorkspace(id); + } + + /// Initializes a new instance of AutomationActivity. + /// Gets or sets the id of the resource. + /// Gets the name of the activity. + /// Gets or sets the user name of the activity. + /// Gets or sets the parameter sets of the activity. + /// Gets or sets the output types of the activity. + /// 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 AutomationActivity AutomationActivity(ResourceIdentifier id = null, string name = null, string definition = null, IEnumerable parameterSets = null, IEnumerable outputTypes = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + parameterSets ??= new List(); + outputTypes ??= new List(); + + return new AutomationActivity(id, name, definition, parameterSets?.ToList(), outputTypes?.ToList(), createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationActivityParameterSet. + /// Gets or sets the name of the activity parameter set. + /// Gets or sets the parameters of the activity parameter set. + /// A new instance for mocking. + public static AutomationActivityParameterSet AutomationActivityParameterSet(string name = null, IEnumerable parameters = null) + { + parameters ??= new List(); + + return new AutomationActivityParameterSet(name, parameters?.ToList()); + } + + /// Initializes a new instance of AutomationActivityParameterDefinition. + /// Gets or sets the name of the activity parameter. + /// Gets or sets the type of the activity parameter. + /// Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional. + /// Gets or sets a Boolean value that indicates true if the parameter is dynamic. + /// Gets or sets the position of the activity parameter. + /// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object. + /// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. + /// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values. + /// Gets or sets the description of the activity parameter. + /// Gets or sets the validation set of activity parameter. + /// A new instance for mocking. + public static AutomationActivityParameterDefinition AutomationActivityParameterDefinition(string name = null, string activityParameterType = null, bool? isMandatory = null, bool? isDynamic = null, long? position = null, bool? canTakeValueFromPipeline = null, bool? canTakeValueFromPipelineByPropertyName = null, bool? canTakeValueValueFromRemainingArguments = null, string description = null, IEnumerable validationSet = null) + { + validationSet ??= new List(); + + return new AutomationActivityParameterDefinition(name, activityParameterType, isMandatory, isDynamic, position, canTakeValueFromPipeline, canTakeValueFromPipelineByPropertyName, canTakeValueValueFromRemainingArguments, description, validationSet?.ToList()); + } + + /// Initializes a new instance of AutomationActivityParameterValidationSet. + /// Gets or sets the name of the activity parameter validation set member. + /// A new instance for mocking. + public static AutomationActivityParameterValidationSet AutomationActivityParameterValidationSet(string memberValue = null) + { + return new AutomationActivityParameterValidationSet(memberValue); + } + + /// Initializes a new instance of AutomationActivityOutputType. + /// Gets or sets the name of the activity output type. + /// Gets or sets the type of the activity output type. + /// A new instance for mocking. + public static AutomationActivityOutputType AutomationActivityOutputType(string name = null, string activityOutputType = null) + { + return new AutomationActivityOutputType(name, activityOutputType); + } + + /// Initializes a new instance of AutomationModuleField. + /// 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); + } + + /// Initializes a new instance of AutomationScheduleData. + /// 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. + /// 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); + } + + /// Initializes a new instance of AutomationVariableData. + /// 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(id, name, resourceType, systemData, value, isEncrypted, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of AutomationWatcherData. + /// 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 AutomationWatcherData(id, name, resourceType, systemData, tags, location, etag, executionFrequencyInSeconds, scriptName, scriptParameters, scriptRunOn, status, createdOn, lastModifiedOn, lastModifiedBy, description); + } + + /// Initializes a new instance of DscConfigurationData. + /// The id. + /// The name. + /// The resourceType. + /// The 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); + } + + /// Initializes a new instance of AutomationJobData. + /// 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. + /// 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) + { + parameters ??= new Dictionary(); + + return new AutomationJobData(id, name, resourceType, systemData, runbookName != null ? new RunbookAssociationProperty(runbookName) : null, startedBy, runOn, jobId, createdOn, status, statusDetails, startOn, endOn, exception, lastModifiedOn, lastStatusModifiedOn, parameters, provisioningState); + } + + /// Initializes a new instance of AutomationJobCollectionItemData. + /// 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) + { + return new AutomationJobCollectionItemData(id, name, resourceType, systemData, runbookName != null ? new RunbookAssociationProperty(runbookName) : null, jobId, createdOn, status, startOn, endOn, lastModifiedOn, provisioningState, runOn); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationData. + /// 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) + { + return new SoftwareUpdateConfigurationData(id, name, resourceType, systemData, updateConfiguration, scheduleInfo, provisioningState, error, createdOn, createdBy, lastModifiedOn, lastModifiedBy, tasks); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationScheduleProperties. + /// 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 SoftwareUpdateConfigurationScheduleProperties(startOn, startInMinutes, expireOn, expireInMinutes, isEnabled, nextRunOn, nextRunInMinutes, interval, frequency, timeZone, advancedSchedule, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationCollectionItem. + /// 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); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationRun. + /// Name of the software update configuration run. + /// Resource Id of the software update configuration run. + /// software update configuration triggered this run. + /// Status of the software update configuration run. + /// Configured duration for the software update configuration run. + /// Operating system target of the software update configuration triggered this run. + /// Start time of the software update configuration run. + /// End time of the software update configuration run. + /// Number of computers in the software update configuration run. + /// Number of computers with failed status. + /// 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. + /// Software update configuration tasks triggered in this run. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationRun SoftwareUpdateConfigurationRun(string name = null, ResourceIdentifier id = null, string softwareUpdateName = null, string status = null, TimeSpan? configuredDuration = null, string osType = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, int? computerCount = null, int? failedCount = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, SoftwareUpdateConfigurationRunTasks tasks = null) + { + return new SoftwareUpdateConfigurationRun(name, id, softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName) : null, status, configuredDuration, osType, startOn, endOn, computerCount, failedCount, createdOn, createdBy, lastModifiedOn, lastModifiedBy, tasks); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationRunTasks. + /// Pre task properties. + /// Post task properties. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationRunTasks SoftwareUpdateConfigurationRunTasks(SoftwareUpdateConfigurationRunTaskProperties preTask = null, SoftwareUpdateConfigurationRunTaskProperties postTask = null) + { + return new SoftwareUpdateConfigurationRunTasks(preTask, postTask); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationRunTaskProperties. + /// The status of the task. + /// The name of the source of the task. + /// The job id of the task. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationRunTaskProperties SoftwareUpdateConfigurationRunTaskProperties(string status = null, string source = null, Guid? jobId = null) + { + return new SoftwareUpdateConfigurationRunTaskProperties(status, source, jobId); + } + + /// Initializes a new instance of SoftwareUpdateConfigurationMachineRun. + /// 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 SoftwareUpdateConfigurationMachineRun(name, id, targetComputerId, targetComputerType, softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName) : null, status, osType, correlationId, sourceComputerId, startOn, endOn, configuredDuration, jobId != null ? new JobNavigation(jobId) : null, createdOn, createdBy, lastModifiedOn, lastModifiedBy, error); + } + + /// Initializes a new instance of RunbookDraftUndoEditResult. + /// + /// + /// A new instance for mocking. + public static RunbookDraftUndoEditResult RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode = null, string requestId = null) + { + return new RunbookDraftUndoEditResult(statusCode, requestId); + } + + /// Initializes a new instance of AutomationRunbookData. + /// 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. + 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) + { + tags ??= new Dictionary(); + parameters ??= new Dictionary(); + outputTypes ??= new List(); + + return new AutomationRunbookData(id, name, resourceType, systemData, tags, location, etag, runbookType, publishContentLink, state, isLogVerboseEnabled, isLogProgressEnabled, logActivityTrace, jobCount, parameters, outputTypes?.ToList(), draft, provisioningState, lastModifiedBy, createdOn, lastModifiedOn, description); + } + + /// Initializes a new instance of RunbookTestJob. + /// 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, status, statusDetails, runOn, startOn, endOn, exception, lastModifiedOn, lastStatusModifiedOn, parameters, logActivityTrace); + } + + /// Initializes a new instance of AutomationWebhookData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the value of the enabled flag of the webhook. + /// Gets or sets the webhook uri. + /// Gets or sets the expiry time. + /// Gets or sets the last invoked time. + /// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. + /// Gets or sets the runbook the webhook is associated with. + /// Gets or sets the name of the hybrid worker group the webhook job will run on. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Details of the user who last modified the Webhook. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationWebhookData AutomationWebhookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isEnabled = null, Uri uri = null, DateTimeOffset? expireOn = null, DateTimeOffset? lastInvokedOn = null, IDictionary parameters = null, string runbookName = null, string runOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) + { + parameters ??= new Dictionary(); + + return new AutomationWebhookData(id, name, resourceType, systemData, isEnabled, uri, expireOn, lastInvokedOn, parameters, runbookName != null ? new RunbookAssociationProperty(runbookName) : null, runOn, createdOn, lastModifiedOn, lastModifiedBy, description); + } + + /// Initializes a new instance of HybridRunbookWorkerData. + /// 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) + { + return new HybridRunbookWorkerData(id, name, resourceType, systemData, ip, registeredOn, lastSeenOn, vmResourceId, workerType, workerName); + } + + /// Initializes a new instance of DeletedAutomationAccount. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// 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) + { + return new DeletedAutomationAccount(id, name, resourceType, systemData, location, automationAccountResourceId, automationAccountId, locationPropertiesLocation, deletedOn); + } + + /// Initializes a new instance of HybridRunbookWorkerGroupData. + /// 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) + { + return new HybridRunbookWorkerGroupData(id, name, resourceType, systemData, groupType, credentialName != null ? new RunAsCredentialAssociationProperty(credentialName) : null); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md index 57dfcc2cf54c..ed406f43b24f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md +++ b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Automation namespace: Azure.ResourceManager.Automation diff --git a/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md b/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md index 5c5bcccafae6..508d4a611137 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md +++ b/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-05-25) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.1.1 (2023-02-16) ### Other Changes diff --git a/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs b/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs index 32a98a0ea8f8..16e973bc2484 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs @@ -1013,6 +1013,55 @@ internal AdminCredentials() { } public string VCenterPassword { get { throw null; } } public string VCenterUsername { get { throw null; } } } + public static partial class ArmAvsModelFactory + { + public static Azure.ResourceManager.Avs.Models.AddonArcProperties AddonArcProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), string vCenter = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AddonHcxProperties AddonHcxProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), string offer = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AddonSrmProperties AddonSrmProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), string licenseKey = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AddonVrProperties AddonVrProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), int vrsCount = 0) { throw null; } + public static Azure.ResourceManager.Avs.Models.AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null) { throw null; } + public static Azure.ResourceManager.Avs.AvsCloudLinkData AvsCloudLinkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus? status = default(Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus?), Azure.Core.ResourceIdentifier linkedCloud = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsClusterZone AvsClusterZone(System.Collections.Generic.IEnumerable hosts = null, string zone = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsEncryptionKeyVaultProperties AvsEncryptionKeyVaultProperties(string keyName = null, string keyVersion = null, string autoDetectedKeyVersion = null, System.Uri keyVaultUri = null, Azure.ResourceManager.Avs.Models.AvsEncryptionKeyStatus? keyState = default(Azure.ResourceManager.Avs.Models.AvsEncryptionKeyStatus?), Azure.ResourceManager.Avs.Models.AvsEncryptionVersionType? versionType = default(Azure.ResourceManager.Avs.Models.AvsEncryptionVersionType?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsManagementCluster AvsManagementCluster(int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudAddonData AvsPrivateCloudAddonData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudAddonProperties properties = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = "Unknown", Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterData AvsPrivateCloudClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string skuName = null, int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(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, string moRefId = null, string folderPath = null, Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState? restrictMovement = default(Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState?)) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudData AvsPrivateCloudData(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 skuName = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Avs.Models.AvsManagementCluster managementCluster = null, Azure.ResourceManager.Avs.Models.InternetConnectivityState? internet = default(Azure.ResourceManager.Avs.Models.InternetConnectivityState?), System.Collections.Generic.IEnumerable identitySources = null, Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties availability = null, Azure.ResourceManager.Avs.Models.CustomerManagedEncryption encryption = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState?), Azure.ResourceManager.Avs.Models.ExpressRouteCircuit circuit = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, System.Collections.Generic.IEnumerable externalCloudLinks = null, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit secondaryCircuit = null, Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default(Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum?)) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState?), Azure.Core.ResourceIdentifier netAppVolumeId = null, Azure.ResourceManager.Avs.Models.DiskPoolVolume diskPoolVolume = null, Azure.ResourceManager.Avs.Models.DatastoreStatus? status = default(Azure.ResourceManager.Avs.Models.DatastoreStatus?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailabilityResult(System.Collections.Generic.IReadOnlyDictionary hostsRemaining = null, Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaEnabled? quotaEnabled = default(Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaEnabled?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialStatus? status = default(Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialStatus?), int? availableHosts = default(int?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.CommonClusterProperties CommonClusterProperties(int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.DiskPoolVolume DiskPoolVolume(Azure.Core.ResourceIdentifier targetId = null, string lunName = null, Azure.ResourceManager.Avs.Models.LunMountMode? mountOption = default(Azure.ResourceManager.Avs.Models.LunMountMode?), string path = null) { throw null; } + public static Azure.ResourceManager.Avs.ExpressRouteAuthorizationData ExpressRouteAuthorizationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.ExpressRouteAuthorizationProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ExpressRouteAuthorizationProvisioningState?), Azure.Core.ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, Azure.Core.ResourceIdentifier expressRouteId = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, Azure.Core.ResourceIdentifier expressRouteId = null, Azure.Core.ResourceIdentifier expressRoutePrivatePeeringId = null) { throw null; } + public static Azure.ResourceManager.Avs.GlobalReachConnectionData GlobalReachConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.GlobalReachConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.GlobalReachConnectionProvisioningState?), string addressPrefix = null, string authorizationKey = null, Azure.ResourceManager.Avs.Models.GlobalReachConnectionStatus? circuitConnectionStatus = default(Azure.ResourceManager.Avs.Models.GlobalReachConnectionStatus?), Azure.Core.ResourceIdentifier peerExpressRouteCircuit = null, Azure.Core.ResourceIdentifier expressRouteId = null) { throw null; } + public static Azure.ResourceManager.Avs.HcxEnterpriseSiteData HcxEnterpriseSiteData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string activationKey = null, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus? status = default(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus?)) { throw null; } + public static Azure.ResourceManager.Avs.PlacementPolicyData PlacementPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProperties properties = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.PlacementPolicyProperties PlacementPolicyProperties(string policyType = "Unknown", Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Avs.ScriptCmdletData ScriptCmdletData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, System.TimeSpan? timeout = default(System.TimeSpan?), System.Collections.Generic.IEnumerable parameters = null) { throw null; } + public static Azure.ResourceManager.Avs.ScriptExecutionData ScriptExecutionData(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 scriptCmdletId = null, System.Collections.Generic.IEnumerable parameters = null, System.Collections.Generic.IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, System.DateTimeOffset? submittedOn = default(System.DateTimeOffset?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? finishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState?), System.Collections.Generic.IEnumerable output = null, System.BinaryData namedOutputs = null, System.Collections.Generic.IEnumerable information = null, System.Collections.Generic.IEnumerable warnings = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.ResourceManager.Avs.ScriptPackageData ScriptPackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string version = null, string company = null, System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.ScriptParameter ScriptParameter(Azure.ResourceManager.Avs.Models.ScriptParameterType? parameterType = default(Azure.ResourceManager.Avs.Models.ScriptParameterType?), string name = null, string description = null, Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus? visibility = default(Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus?), Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus? optional = default(Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?), System.Collections.Generic.IEnumerable vmMembers = null, System.Collections.Generic.IEnumerable hostMembers = null, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default(Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType), Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength? affinityStrength = default(Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength?), Azure.ResourceManager.Avs.Models.AzureHybridBenefitType? azureHybridBenefitType = default(Azure.ResourceManager.Avs.Models.AzureHybridBenefitType?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.VmPlacementPolicyProperties VmPlacementPolicyProperties(Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?), System.Collections.Generic.IEnumerable vmMembers = null, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default(Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkData WorkloadNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkDhcpData WorkloadNetworkDhcpData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpEntity properties = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = "Unknown", string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpRelay WorkloadNetworkDhcpRelay(string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?), System.Collections.Generic.IEnumerable serverAddresses = null) { throw null; } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?), string serverAddress = null, long? leaseTime = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkDnsServiceData WorkloadNetworkDnsServiceData(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.Net.IPAddress dnsServiceIP = null, string defaultDnsZone = null, System.Collections.Generic.IEnumerable fqdnZones = null, Azure.ResourceManager.Avs.Models.DnsServiceLogLevel? logLevel = default(Azure.ResourceManager.Avs.Models.DnsServiceLogLevel?), Azure.ResourceManager.Avs.Models.DnsServiceStatus? status = default(Azure.ResourceManager.Avs.Models.DnsServiceStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsServiceProvisioningState?), long? revision = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneData WorkloadNetworkDnsZoneData(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 domain = null, System.Collections.Generic.IEnumerable dnsServerIPs = null, System.Net.IPAddress sourceIP = null, long? dnsServices = default(long?), Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState?), long? revision = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkGatewayData WorkloadNetworkGatewayData(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, string path = null) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(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, Azure.ResourceManager.Avs.Models.PortMirroringProfileDirection? direction = default(Azure.ResourceManager.Avs.Models.PortMirroringProfileDirection?), string source = null, string destination = null, Azure.ResourceManager.Avs.Models.PortMirroringProfileStatus? status = default(Azure.ResourceManager.Avs.Models.PortMirroringProfileStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkPortMirroringProfileProvisioningState?), long? revision = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(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, long? numberOfPublicIPs = default(long?), string publicIPBlock = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkPublicIPProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkPublicIPProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkSegmentData WorkloadNetworkSegmentData(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, string connectedGateway = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentSubnet subnet = null, System.Collections.Generic.IEnumerable portVif = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentStatus? status = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentProvisioningState?), long? revision = default(long?)) { throw null; } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(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, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType? vmType = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(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 members = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupStatus? status = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupProvisioningState?), long? revision = default(long?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AvailabilityStrategy : System.IEquatable { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs new file mode 100644 index 000000000000..6e82e531f83e --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs @@ -0,0 +1,700 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure.Core; +using Azure.ResourceManager.Avs; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Avs.Models +{ + /// Model factory for models. + public static partial class ArmAvsModelFactory + { + /// Initializes a new instance of AvsSubscriptionTrialAvailabilityResult. + /// Trial status. + /// Number of trial hosts available. + /// A new instance for mocking. + public static AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(AvsSubscriptionTrialStatus? status = null, int? availableHosts = null) + { + return new AvsSubscriptionTrialAvailabilityResult(status, availableHosts); + } + + /// Initializes a new instance of AvsSubscriptionQuotaAvailabilityResult. + /// Remaining hosts quota by sku type. + /// Host quota is active for current subscription. + /// A new instance for mocking. + public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailabilityResult(IReadOnlyDictionary hostsRemaining = null, AvsSubscriptionQuotaEnabled? quotaEnabled = null) + { + hostsRemaining ??= new Dictionary(); + + return new AvsSubscriptionQuotaAvailabilityResult(hostsRemaining, quotaEnabled); + } + + /// Initializes a new instance of AvsPrivateCloudData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The private cloud SKU. + /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The default cluster used for management. + /// Connectivity to internet is enabled or disabled. + /// vCenter Single Sign On Identity Sources. + /// Properties describing how the cloud is distributed across availability zones. + /// Customer managed key encryption, can be enabled or disabled. + /// The provisioning state. + /// An ExpressRoute Circuit. + /// The endpoints. + /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. + /// Network used to access vCenter Server and NSX-T Manager. + /// Used for virtual machine cold migration, cloning, and snapshot migration. + /// Used for live migration of virtual machines. + /// Optionally, set the vCenter admin password when the private cloud is created. + /// Optionally, set the NSX-T Manager password when the private cloud is created. + /// Thumbprint of the vCenter Server SSL certificate. + /// Thumbprint of the NSX-T Manager SSL certificate. + /// Array of cloud link IDs from other clouds that connect to this one. + /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud. + /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. + /// A new instance for mocking. + public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null) + { + tags ??= new Dictionary(); + identitySources ??= new List(); + externalCloudLinks ??= new List(); + + return new AvsPrivateCloudData(id, name, resourceType, systemData, tags, location, skuName != null ? new AvsSku(skuName) : null, identity, managementCluster, internet, identitySources?.ToList(), availability, encryption, provisioningState, circuit, endpoints, networkBlock, managementNetwork, provisioningNetwork, vMotionNetwork, vCenterPassword, nsxtPassword, vCenterCertificateThumbprint, nsxtCertificateThumbprint, externalCloudLinks?.ToList(), secondaryCircuit, nsxPublicIPQuotaRaised); + } + + /// Initializes a new instance of ExpressRouteCircuit. + /// CIDR of primary subnet. + /// CIDR of secondary subnet. + /// Identifier of the ExpressRoute Circuit (Microsoft Colo only). + /// ExpressRoute Circuit private peering identifier. + /// A new instance for mocking. + public static ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, ResourceIdentifier expressRouteId = null, ResourceIdentifier expressRoutePrivatePeeringId = null) + { + return new ExpressRouteCircuit(primarySubnet, secondarySubnet, expressRouteId, expressRoutePrivatePeeringId); + } + + /// Initializes a new instance of AvsPrivateCloudEndpoints. + /// Endpoint for the NSX-T Data Center manager. + /// Endpoint for Virtual Center Server Appliance. + /// Endpoint for the HCX Cloud Manager. + /// A new instance for mocking. + public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null) + { + return new AvsPrivateCloudEndpoints(nsxtManager, vcsa, hcxCloudManager); + } + + /// Initializes a new instance of AvsManagementCluster. + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + /// A new instance for mocking. + public static AvsManagementCluster AvsManagementCluster(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + { + hosts ??= new List(); + + return new AvsManagementCluster(clusterSize, provisioningState, clusterId, hosts?.ToList()); + } + + /// Initializes a new instance of CommonClusterProperties. + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + /// A new instance for mocking. + public static CommonClusterProperties CommonClusterProperties(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + { + hosts ??= new List(); + + return new CommonClusterProperties(clusterSize, provisioningState, clusterId, hosts?.ToList()); + } + + /// Initializes a new instance of AvsEncryptionKeyVaultProperties. + /// The name of the key. + /// The version of the key. + /// The auto-detected version of the key if versionType is auto-detected. + /// The URL of the vault. + /// The state of key provided. + /// Property of the key if user provided or auto detected. + /// A new instance for mocking. + public static AvsEncryptionKeyVaultProperties AvsEncryptionKeyVaultProperties(string keyName = null, string keyVersion = null, string autoDetectedKeyVersion = null, Uri keyVaultUri = null, AvsEncryptionKeyStatus? keyState = null, AvsEncryptionVersionType? versionType = null) + { + return new AvsEncryptionKeyVaultProperties(keyName, keyVersion, autoDetectedKeyVersion, keyVaultUri, keyState, versionType); + } + + /// Initializes a new instance of AvsPrivateCloudClusterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The cluster SKU. + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + /// A new instance for mocking. + public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string skuName = null, int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + { + hosts ??= new List(); + + return new AvsPrivateCloudClusterData(id, name, resourceType, systemData, skuName != null ? new AvsSku(skuName) : null, clusterSize, provisioningState, clusterId, hosts?.ToList()); + } + + /// Initializes a new instance of AvsClusterZone. + /// List of hosts belonging to the availability zone in a cluster. + /// Availability zone identifier. + /// A new instance for mocking. + public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, string zone = null) + { + hosts ??= new List(); + + return new AvsClusterZone(hosts?.ToList(), zone); + } + + /// Initializes a new instance of AvsPrivateCloudDatastoreData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the datastore provisioning. + /// An Azure NetApp Files volume. + /// An iSCSI volume. + /// The operational status of the datastore. + /// A new instance for mocking. + public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudDatastoreProvisioningState? provisioningState = null, ResourceIdentifier netAppVolumeId = null, DiskPoolVolume diskPoolVolume = null, DatastoreStatus? status = null) + { + return new AvsPrivateCloudDatastoreData(id, name, resourceType, systemData, provisioningState, netAppVolumeId != null ? ResourceManagerModelFactory.WritableSubResource(netAppVolumeId) : null, diskPoolVolume, status); + } + + /// Initializes a new instance of DiskPoolVolume. + /// Azure resource ID of the iSCSI target. + /// Name of the LUN to be used for datastore. + /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + /// Device path. + /// A new instance for mocking. + public static DiskPoolVolume DiskPoolVolume(ResourceIdentifier targetId = null, string lunName = null, LunMountMode? mountOption = null, string path = null) + { + return new DiskPoolVolume(targetId, lunName, mountOption, path); + } + + /// Initializes a new instance of AdminCredentials. + /// NSX-T Manager username. + /// NSX-T Manager password. + /// vCenter admin username. + /// vCenter admin password. + /// A new instance for mocking. + public static AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null) + { + return new AdminCredentials(nsxtUsername, nsxtPassword, vCenterUsername, vCenterPassword); + } + + /// Initializes a new instance of HcxEnterpriseSiteData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The activation key. + /// The status of the HCX Enterprise Site. + /// A new instance for mocking. + public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string activationKey = null, HcxEnterpriseSiteStatus? status = null) + { + return new HcxEnterpriseSiteData(id, name, resourceType, systemData, activationKey, status); + } + + /// Initializes a new instance of ExpressRouteAuthorizationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the ExpressRoute Circuit Authorization provisioning. + /// The ID of the ExpressRoute Circuit Authorization. + /// The key of the ExpressRoute Circuit Authorization. + /// The ID of the ExpressRoute Circuit. + /// A new instance for mocking. + public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpressRouteAuthorizationProvisioningState? provisioningState = null, ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, ResourceIdentifier expressRouteId = null) + { + return new ExpressRouteAuthorizationData(id, name, resourceType, systemData, provisioningState, expressRouteAuthorizationId, expressRouteAuthorizationKey, expressRouteId); + } + + /// Initializes a new instance of GlobalReachConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the ExpressRoute Circuit Authorization provisioning. + /// The network used for global reach carved out from the original network block provided for the private cloud. + /// Authorization key from the peer express route used for the global reach connection. + /// The connection status of the global reach connection. + /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection. + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection. + /// A new instance for mocking. + public static GlobalReachConnectionData GlobalReachConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GlobalReachConnectionProvisioningState? provisioningState = null, string addressPrefix = null, string authorizationKey = null, GlobalReachConnectionStatus? circuitConnectionStatus = null, ResourceIdentifier peerExpressRouteCircuit = null, ResourceIdentifier expressRouteId = null) + { + return new GlobalReachConnectionData(id, name, resourceType, systemData, provisioningState, addressPrefix, authorizationKey, circuitConnectionStatus, peerExpressRouteCircuit, expressRouteId); + } + + /// Initializes a new instance of WorkloadNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A new instance for mocking. + public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null) + { + return new WorkloadNetworkData(id, name, resourceType, systemData); + } + + /// Initializes a new instance of WorkloadNetworkSegmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the segment. + /// Gateway which to connect segment to. + /// Subnet which to connect segment to. + /// Port Vif which segment is associated with. + /// Segment status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkSegmentData WorkloadNetworkSegmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string connectedGateway = null, WorkloadNetworkSegmentSubnet subnet = null, IEnumerable portVif = null, WorkloadNetworkSegmentStatus? status = null, WorkloadNetworkSegmentProvisioningState? provisioningState = null, long? revision = null) + { + portVif ??= new List(); + + return new WorkloadNetworkSegmentData(id, name, resourceType, systemData, displayName, connectedGateway, subnet, portVif?.ToList(), status, provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkSegmentPortVif. + /// Name of port or VIF attached to segment. + /// A new instance for mocking. + public static WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null) + { + return new WorkloadNetworkSegmentPortVif(portName); + } + + /// Initializes a new instance of WorkloadNetworkDhcpData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// DHCP properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static WorkloadNetworkDhcpData WorkloadNetworkDhcpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkDhcpEntity properties = null) + { + return new WorkloadNetworkDhcpData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of WorkloadNetworkDhcpEntity. + /// Type of DHCP: SERVER or RELAY. + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = "Unknown", string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null) + { + segments ??= new List(); + + return new UnknownWorkloadNetworkDhcpEntity(dhcpType, displayName, segments?.ToList(), provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkGatewayData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the DHCP entity. + /// NSX Gateway Path. + /// A new instance for mocking. + public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string path = null) + { + return new WorkloadNetworkGatewayData(id, name, resourceType, systemData, displayName, path); + } + + /// Initializes a new instance of WorkloadNetworkPortMirroringProfileData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the port mirroring profile. + /// Direction of port mirroring profile. + /// Source VM Group. + /// Destination VM Group. + /// Port Mirroring Status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, PortMirroringProfileDirection? direction = null, string source = null, string destination = null, PortMirroringProfileStatus? status = null, WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = null, long? revision = null) + { + return new WorkloadNetworkPortMirroringProfileData(id, name, resourceType, systemData, displayName, direction, source, destination, status, provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkVmGroupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the VM group. + /// Virtual machine members of this group. + /// VM Group status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable members = null, WorkloadNetworkVmGroupStatus? status = null, WorkloadNetworkVmGroupProvisioningState? provisioningState = null, long? revision = null) + { + members ??= new List(); + + return new WorkloadNetworkVmGroupData(id, name, resourceType, systemData, displayName, members?.ToList(), status, provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkVirtualMachineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the VM. + /// Virtual machine type. + /// A new instance for mocking. + public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, WorkloadNetworkVmType? vmType = null) + { + return new WorkloadNetworkVirtualMachineData(id, name, resourceType, systemData, displayName, vmType); + } + + /// Initializes a new instance of WorkloadNetworkDnsServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the DNS Service. + /// DNS service IP of the DNS Service. + /// Default DNS zone of the DNS Service. + /// FQDN zones of the DNS Service. + /// DNS Service log level. + /// DNS Service status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkDnsServiceData WorkloadNetworkDnsServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IPAddress dnsServiceIP = null, string defaultDnsZone = null, IEnumerable fqdnZones = null, DnsServiceLogLevel? logLevel = null, DnsServiceStatus? status = null, WorkloadNetworkDnsServiceProvisioningState? provisioningState = null, long? revision = null) + { + fqdnZones ??= new List(); + + return new WorkloadNetworkDnsServiceData(id, name, resourceType, systemData, displayName, dnsServiceIP, defaultDnsZone, fqdnZones?.ToList(), logLevel, status, provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkDnsZoneData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the DNS Zone. + /// Domain names of the DNS Zone. + /// DNS Server IP array of the DNS Zone. + /// Source IP of the DNS Zone. + /// Number of DNS Services using the DNS zone. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkDnsZoneData WorkloadNetworkDnsZoneData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable domain = null, IEnumerable dnsServerIPs = null, IPAddress sourceIP = null, long? dnsServices = null, WorkloadNetworkDnsZoneProvisioningState? provisioningState = null, long? revision = null) + { + domain ??= new List(); + dnsServerIPs ??= new List(); + + return new WorkloadNetworkDnsZoneData(id, name, resourceType, systemData, displayName, domain?.ToList(), dnsServerIPs?.ToList(), sourceIP, dnsServices, provisioningState, revision); + } + + /// Initializes a new instance of WorkloadNetworkPublicIPData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the Public IP Block. + /// Number of Public IPs requested. + /// CIDR Block of the Public IP Block. + /// The provisioning state. + /// A new instance for mocking. + public static WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = null, string publicIPBlock = null, WorkloadNetworkPublicIPProvisioningState? provisioningState = null) + { + return new WorkloadNetworkPublicIPData(id, name, resourceType, systemData, displayName, numberOfPublicIPs, publicIPBlock, provisioningState); + } + + /// Initializes a new instance of AvsCloudLinkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the cloud link. + /// Identifier of the other private cloud participating in the link. + /// A new instance for mocking. + public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsCloudLinkStatus? status = null, ResourceIdentifier linkedCloud = null) + { + return new AvsCloudLinkData(id, name, resourceType, systemData, status, linkedCloud); + } + + /// Initializes a new instance of AvsPrivateCloudAddonData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The properties of an addon resource + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + public static AvsPrivateCloudAddonData AvsPrivateCloudAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudAddonProperties properties = null) + { + return new AvsPrivateCloudAddonData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AvsPrivateCloudAddonProperties. + /// The type of private cloud addon. + /// The state of the addon provisioning. + /// A new instance for mocking. + public static AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = "Unknown", AddonProvisioningState? provisioningState = null) + { + return new UnknownAddonProperties(addonType, provisioningState); + } + + /// Initializes a new instance of AvsPrivateCloudClusterVirtualMachineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the VM. + /// Virtual machine managed object reference id. + /// Path to virtual machine's folder starting from datacenter virtual machine folder. + /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). + /// A new instance for mocking. + public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string moRefId = null, string folderPath = null, VirtualMachineRestrictMovementState? restrictMovement = null) + { + return new AvsPrivateCloudClusterVirtualMachineData(id, name, resourceType, systemData, displayName, moRefId, folderPath, restrictMovement); + } + + /// Initializes a new instance of PlacementPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// placement policy properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static PlacementPolicyData PlacementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PlacementPolicyProperties properties = null) + { + return new PlacementPolicyData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of PlacementPolicyProperties. + /// placement policy type. + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. + /// The provisioning state. + /// A new instance for mocking. + public static PlacementPolicyProperties PlacementPolicyProperties(string policyType = "Unknown", PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null) + { + return new UnknownPlacementPolicyProperties(policyType, state, displayName, provisioningState); + } + + /// Initializes a new instance of ScriptPackageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// User friendly description of the package. + /// Module version. + /// Company that created and supports the package. + /// Link to support by the package vendor. + /// A new instance for mocking. + public static ScriptPackageData ScriptPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string version = null, string company = null, Uri uri = null) + { + return new ScriptPackageData(id, name, resourceType, systemData, description, version, company, uri); + } + + /// Initializes a new instance of ScriptCmdletData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Description of the scripts functionality. + /// Recommended time limit for execution. + /// Parameters the script will accept. + /// A new instance for mocking. + public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, TimeSpan? timeout = null, IEnumerable parameters = null) + { + parameters ??= new List(); + + return new ScriptCmdletData(id, name, resourceType, systemData, description, timeout, parameters?.ToList()); + } + + /// Initializes a new instance of ScriptParameter. + /// The type of parameter the script is expecting. psCredential is a PSCredentialObject. + /// The parameter name that the script will expect a parameter value for. + /// User friendly description of the parameter. + /// Should this parameter be visible to arm and passed in the parameters argument when executing. + /// Is this parameter required or optional. + /// A new instance for mocking. + public static ScriptParameter ScriptParameter(ScriptParameterType? parameterType = null, string name = null, string description = null, ParameterVisibilityStatus? visibility = null, ParameterOptionalityStatus? optional = null) + { + return new ScriptParameter(parameterType, name, description, visibility, optional); + } + + /// Initializes a new instance of ScriptExecutionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A reference to the script cmdlet resource if user is running a AVS script. + /// + /// Parameters the script will accept + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception. + /// Time limit for execution. + /// Time to live for the resource. If not provided, will be available for 60 days. + /// Time the script execution was submitted. + /// Time the script execution was started. + /// Time the script execution was finished. + /// The state of the script execution resource. + /// Standard output stream from the powershell execution. + /// User-defined dictionary. + /// Standard information out stream from the powershell execution. + /// Standard warning out stream from the powershell execution. + /// Standard error output stream from the powershell execution. + /// A new instance for mocking. + public static ScriptExecutionData ScriptExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier scriptCmdletId = null, IEnumerable parameters = null, IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, DateTimeOffset? submittedOn = null, DateTimeOffset? startedOn = null, DateTimeOffset? finishedOn = null, ScriptExecutionProvisioningState? provisioningState = null, IEnumerable output = null, BinaryData namedOutputs = null, IEnumerable information = null, IEnumerable warnings = null, IEnumerable errors = null) + { + parameters ??= new List(); + hiddenParameters ??= new List(); + output ??= new List(); + information ??= new List(); + warnings ??= new List(); + errors ??= new List(); + + return new ScriptExecutionData(id, name, resourceType, systemData, scriptCmdletId, parameters?.ToList(), hiddenParameters?.ToList(), failureReason, timeout, retention, submittedOn, startedOn, finishedOn, provisioningState, output?.ToList(), namedOutputs, information?.ToList(), warnings?.ToList(), errors?.ToList()); + } + + /// Initializes a new instance of AddonSrmProperties. + /// The state of the addon provisioning. + /// The Site Recovery Manager (SRM) license. + /// A new instance for mocking. + public static AddonSrmProperties AddonSrmProperties(AddonProvisioningState? provisioningState = null, string licenseKey = null) + { + return new AddonSrmProperties(AddonType.SRM, provisioningState, licenseKey); + } + + /// Initializes a new instance of AddonVrProperties. + /// The state of the addon provisioning. + /// The vSphere Replication Server (VRS) count. + /// A new instance for mocking. + public static AddonVrProperties AddonVrProperties(AddonProvisioningState? provisioningState = null, int vrsCount = default) + { + return new AddonVrProperties(AddonType.VR, provisioningState, vrsCount); + } + + /// Initializes a new instance of AddonHcxProperties. + /// The state of the addon provisioning. + /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + /// A new instance for mocking. + public static AddonHcxProperties AddonHcxProperties(AddonProvisioningState? provisioningState = null, string offer = null) + { + return new AddonHcxProperties(AddonType.HCX, provisioningState, offer); + } + + /// Initializes a new instance of AddonArcProperties. + /// The state of the addon provisioning. + /// The VMware vCenter resource ID. + /// A new instance for mocking. + public static AddonArcProperties AddonArcProperties(AddonProvisioningState? provisioningState = null, string vCenter = null) + { + return new AddonArcProperties(AddonType.Arc, provisioningState, vCenter); + } + + /// Initializes a new instance of WorkloadNetworkDhcpServer. + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. + /// NSX revision number. + /// DHCP Server Address. + /// DHCP Server Lease Time. + /// A new instance for mocking. + public static WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, string serverAddress = null, long? leaseTime = null) + { + segments ??= new List(); + + return new WorkloadNetworkDhcpServer(DhcpTypeEnum.Server, displayName, segments?.ToList(), provisioningState, revision, serverAddress, leaseTime); + } + + /// Initializes a new instance of WorkloadNetworkDhcpRelay. + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. + /// NSX revision number. + /// DHCP Relay Addresses. Max 3. + /// A new instance for mocking. + public static WorkloadNetworkDhcpRelay WorkloadNetworkDhcpRelay(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, IEnumerable serverAddresses = null) + { + segments ??= new List(); + serverAddresses ??= new List(); + + return new WorkloadNetworkDhcpRelay(DhcpTypeEnum.Relay, displayName, segments?.ToList(), provisioningState, revision, serverAddresses?.ToList()); + } + + /// Initializes a new instance of VmPlacementPolicyProperties. + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. + /// The provisioning state. + /// Virtual machine members list. + /// placement policy affinity type. + /// A new instance for mocking. + public static VmPlacementPolicyProperties VmPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, AvsPlacementPolicyAffinityType affinityType = default) + { + vmMembers ??= new List(); + + return new VmPlacementPolicyProperties(PlacementPolicyType.VmVm, state, displayName, provisioningState, vmMembers?.ToList(), affinityType); + } + + /// Initializes a new instance of VmHostPlacementPolicyProperties. + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. + /// The provisioning state. + /// Virtual machine members list. + /// Host members list. + /// placement policy affinity type. + /// vm-host placement policy affinity strength (should/must). + /// placement policy azure hybrid benefit opt-in type. + /// A new instance for mocking. + public static VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, IEnumerable hostMembers = null, AvsPlacementPolicyAffinityType affinityType = default, VmHostPlacementPolicyAffinityStrength? affinityStrength = null, AzureHybridBenefitType? azureHybridBenefitType = null) + { + vmMembers ??= new List(); + hostMembers ??= new List(); + + return new VmHostPlacementPolicyProperties(PlacementPolicyType.VmHost, state, displayName, provisioningState, vmMembers?.ToList(), hostMembers?.ToList(), affinityType, affinityStrength, azureHybridBenefitType); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md b/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md index a22989044a09..f682144bd95c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md +++ b/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Avs namespace: Azure.ResourceManager.Avs diff --git a/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md b/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md index 47492ab1d3ee..f3238e81ef60 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md +++ b/sdk/batch/Azure.ResourceManager.Batch/CHANGELOG.md @@ -1,18 +1,18 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-05-25) ### Features Added +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). - Added `BatchAccountCertificateData.ThumbprintString`, `BatchAccountCertificateCreateOrUpdateContent.ThumbprintString` to return the hexadecimal string representation of the SHA-1 hash of the certificate. `BatchAccountCertificateData.Thumbprint`, `BatchAccountCertificateCreateOrUpdateContent.Thumbprint` have been hidden but are still available. -### Breaking Changes - -### Bugs Fixed - ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.1.1 (2023-02-15) ### Other Changes diff --git a/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs b/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs index 06e30c1a5544..96daa4a8ae7f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/api/Azure.ResourceManager.Batch.netstandard2.0.cs @@ -403,6 +403,32 @@ public BatchPrivateLinkResourceData() { } } namespace Azure.ResourceManager.Batch.Models { + public static partial class ArmBatchModelFactory + { + public static Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent BatchAccountCertificateCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string thumbprintAlgorithm = null, string thumbprintString = null, Azure.ResourceManager.Batch.Models.BatchAccountCertificateFormat? format = default(Azure.ResourceManager.Batch.Models.BatchAccountCertificateFormat?), System.BinaryData data = null, string password = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchAccountCertificateData BatchAccountCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string thumbprintAlgorithm = null, string thumbprintString = null, Azure.ResourceManager.Batch.Models.BatchAccountCertificateFormat? format = default(Azure.ResourceManager.Batch.Models.BatchAccountCertificateFormat?), Azure.ResourceManager.Batch.Models.BatchAccountCertificateProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchAccountCertificateProvisioningState?), System.DateTimeOffset? provisioningStateTransitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountCertificateProvisioningState? previousProvisioningState = default(Azure.ResourceManager.Batch.Models.BatchAccountCertificateProvisioningState?), System.DateTimeOffset? previousProvisioningStateTransitOn = default(System.DateTimeOffset?), string publicData = null, Azure.ResponseError deleteCertificateError = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchAccountData BatchAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string accountEndpoint = null, string nodeManagementEndpoint = null, Azure.ResourceManager.Batch.Models.BatchProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchProvisioningState?), Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationMode? poolAllocationMode = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationMode?), Azure.ResourceManager.Batch.Models.BatchKeyVaultReference keyVaultReference = null, Azure.ResourceManager.Batch.Models.BatchPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Batch.Models.BatchPublicNetworkAccess?), Azure.ResourceManager.Batch.Models.BatchNetworkProfile networkProfile = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Batch.Models.BatchAccountAutoStorageConfiguration autoStorage = null, Azure.ResourceManager.Batch.Models.BatchAccountEncryptionConfiguration encryption = null, int? dedicatedCoreQuota = default(int?), int? lowPriorityCoreQuota = default(int?), System.Collections.Generic.IEnumerable dedicatedCoreQuotaPerVmFamily = null, bool? isDedicatedCoreQuotaPerVmFamilyEnforced = default(bool?), int? poolQuota = default(int?), int? activeJobAndJobScheduleQuota = default(int?), System.Collections.Generic.IEnumerable allowedAuthenticationModes = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Batch.BatchAccountDetectorData BatchAccountDetectorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchAccountEndpointDependency BatchAccountEndpointDependency(string domainName = null, string description = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchAccountKeys BatchAccountKeys(string accountName = null, string primary = null, string secondary = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchAccountOutboundEnvironmentEndpoint BatchAccountOutboundEnvironmentEndpoint(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun BatchAccountPoolAutoScaleRun(System.DateTimeOffset evaluationOn = default(System.DateTimeOffset), string results = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.Batch.BatchAccountPoolData BatchAccountPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string displayName = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolProvisioningState?), System.DateTimeOffset? provisioningStateTransitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState? allocationState = default(Azure.ResourceManager.Batch.Models.BatchAccountPoolAllocationState?), System.DateTimeOffset? allocationStateTransitionOn = default(System.DateTimeOffset?), string vmSize = null, Azure.ResourceManager.Batch.Models.BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = default(int?), int? currentLowPriorityNodes = default(int?), Azure.ResourceManager.Batch.Models.BatchAccountPoolScaleSettings scaleSettings = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolAutoScaleRun autoScaleRun = null, Azure.ResourceManager.Batch.Models.InterNodeCommunicationState? interNodeCommunication = default(Azure.ResourceManager.Batch.Models.InterNodeCommunicationState?), Azure.ResourceManager.Batch.Models.BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = default(int?), Azure.ResourceManager.Batch.Models.BatchNodeFillType? taskSchedulingNodeFillType = default(Azure.ResourceManager.Batch.Models.BatchNodeFillType?), System.Collections.Generic.IEnumerable userAccounts = null, System.Collections.Generic.IEnumerable metadata = null, Azure.ResourceManager.Batch.Models.BatchAccountPoolStartTask startTask = null, System.Collections.Generic.IEnumerable certificates = null, System.Collections.Generic.IEnumerable applicationPackages = null, System.Collections.Generic.IEnumerable applicationLicenses = null, Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus resizeOperationStatus = null, System.Collections.Generic.IEnumerable mountConfiguration = null, Azure.ResourceManager.Batch.Models.NodeCommunicationMode? targetNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), Azure.ResourceManager.Batch.Models.NodeCommunicationMode? currentNodeCommunicationMode = default(Azure.ResourceManager.Batch.Models.NodeCommunicationMode?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchApplicationData BatchApplicationData(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, bool? allowUpdates = default(bool?), string defaultVersion = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchApplicationPackageData BatchApplicationPackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Batch.Models.BatchApplicationPackageState? state = default(Azure.ResourceManager.Batch.Models.BatchApplicationPackageState?), string format = null, System.Uri storageUri = null, System.DateTimeOffset? storageUriExpireOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastActivatedOn = default(System.DateTimeOffset?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchEndpointDetail BatchEndpointDetail(int? port = default(int?)) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchIPRule BatchIPRule(Azure.ResourceManager.Batch.Models.BatchIPRuleAction action = default(Azure.ResourceManager.Batch.Models.BatchIPRuleAction), string value = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchLocationQuota BatchLocationQuota(int? accountQuota = default(int?)) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchNameAvailabilityResult BatchNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.Batch.Models.BatchNameUnavailableReason? reason = default(Azure.ResourceManager.Batch.Models.BatchNameUnavailableReason?), string message = null) { throw null; } + public static Azure.ResourceManager.Batch.BatchPrivateEndpointConnectionData BatchPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Batch.Models.BatchPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Batch.Models.BatchPrivateEndpointConnectionProvisioningState?), Azure.Core.ResourceIdentifier privateEndpointId = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionState connectionState = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.BatchPrivateLinkResourceData BatchPrivateLinkResourceData(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, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionState BatchPrivateLinkServiceConnectionState(Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus status = Azure.ResourceManager.Batch.Models.BatchPrivateLinkServiceConnectionStatus.Approved, string description = null, string actionRequired = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus BatchResizeOperationStatus(int? targetDedicatedNodes = default(int?), int? targetLowPriorityNodes = default(int?), System.TimeSpan? resizeTimeout = default(System.TimeSpan?), Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption? nodeDeallocationOption = default(Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchSkuCapability BatchSkuCapability(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchVmContainerConfiguration BatchVmContainerConfiguration(Azure.ResourceManager.Batch.Models.BatchVmContainerType containerType = default(Azure.ResourceManager.Batch.Models.BatchVmContainerType), System.Collections.Generic.IEnumerable containerImageNames = null, System.Collections.Generic.IEnumerable containerRegistries = null) { throw null; } + public static Azure.ResourceManager.Batch.Models.BatchVmFamilyCoreQuota BatchVmFamilyCoreQuota(string name = null, int? coreQuota = default(int?)) { throw null; } + } public partial class BatchAccountAutoScaleSettings { public BatchAccountAutoScaleSettings(string formula) { } diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs new file mode 100644 index 000000000000..412a2584bf31 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/ArmBatchModelFactory.cs @@ -0,0 +1,373 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Batch; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Batch.Models +{ + /// Model factory for models. + public static partial class ArmBatchModelFactory + { + /// Initializes a new instance of BatchIPRule. + /// Action when client IP address is matched. + /// IPv4 address, or IPv4 address range in CIDR format. + /// A new instance for mocking. + public static BatchIPRule BatchIPRule(BatchIPRuleAction action = default, string value = null) + { + return new BatchIPRule(action, value); + } + + /// Initializes a new instance of BatchAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The identity of the Batch account. Current supported identity types: None, SystemAssigned, UserAssigned. + /// The account endpoint used to interact with the Batch service. + /// The endpoint used by compute node to connect to the Batch node management service. + /// The provisioned state of the resource. + /// The allocation mode for creating pools in the Batch account. + /// Identifies the Azure key vault associated with a Batch account. + /// If not specified, the default value is 'enabled'. + /// The network profile only takes effect when publicNetworkAccess is enabled. + /// List of private endpoint connections associated with the Batch account. + /// Contains information about the auto-storage account associated with a Batch account. + /// Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. + /// For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. + /// For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. + /// A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned. + /// If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family. + /// The pool quota for the Batch account. + /// The active job and job schedule quota for the Batch account. + /// List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. + /// The location of the resource. + /// The tags of the resource. + /// A new instance for mocking. + public static BatchAccountData BatchAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string accountEndpoint = null, string nodeManagementEndpoint = null, BatchProvisioningState? provisioningState = null, BatchAccountPoolAllocationMode? poolAllocationMode = null, BatchKeyVaultReference keyVaultReference = null, BatchPublicNetworkAccess? publicNetworkAccess = null, BatchNetworkProfile networkProfile = null, IEnumerable privateEndpointConnections = null, BatchAccountAutoStorageConfiguration autoStorage = null, BatchAccountEncryptionConfiguration encryption = null, int? dedicatedCoreQuota = null, int? lowPriorityCoreQuota = null, IEnumerable dedicatedCoreQuotaPerVmFamily = null, bool? isDedicatedCoreQuotaPerVmFamilyEnforced = null, int? poolQuota = null, int? activeJobAndJobScheduleQuota = null, IEnumerable allowedAuthenticationModes = null, AzureLocation? location = null, IDictionary tags = null) + { + privateEndpointConnections ??= new List(); + dedicatedCoreQuotaPerVmFamily ??= new List(); + allowedAuthenticationModes ??= new List(); + tags ??= new Dictionary(); + + return new BatchAccountData(id, name, resourceType, systemData, identity, accountEndpoint, nodeManagementEndpoint, provisioningState, poolAllocationMode, keyVaultReference, publicNetworkAccess, networkProfile, privateEndpointConnections?.ToList(), autoStorage, encryption, dedicatedCoreQuota, lowPriorityCoreQuota, dedicatedCoreQuotaPerVmFamily?.ToList(), isDedicatedCoreQuotaPerVmFamilyEnforced, poolQuota, activeJobAndJobScheduleQuota, allowedAuthenticationModes?.ToList(), location, tags); + } + + /// Initializes a new instance of BatchPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning state of the private endpoint connection. + /// The private endpoint of the private endpoint connection. + /// The value has one and only one group id. + /// The private link service connection state of the private endpoint connection. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchPrivateEndpointConnectionData BatchPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BatchPrivateEndpointConnectionProvisioningState? provisioningState = null, ResourceIdentifier privateEndpointId = null, IEnumerable groupIds = null, BatchPrivateLinkServiceConnectionState connectionState = null, ETag? etag = null) + { + groupIds ??= new List(); + + return new BatchPrivateEndpointConnectionData(id, name, resourceType, systemData, provisioningState, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, groupIds?.ToList(), connectionState, etag); + } + + /// Initializes a new instance of BatchPrivateLinkServiceConnectionState. + /// The status of the Batch private endpoint connection. + /// Description of the private Connection state. + /// Action required on the private connection state. + /// A new instance for mocking. + public static BatchPrivateLinkServiceConnectionState BatchPrivateLinkServiceConnectionState(BatchPrivateLinkServiceConnectionStatus status = default, string description = null, string actionRequired = null) + { + return new BatchPrivateLinkServiceConnectionState(status, description, actionRequired); + } + + /// Initializes a new instance of BatchVmFamilyCoreQuota. + /// The Virtual Machine family name. + /// The core quota for the VM family for the Batch account. + /// A new instance for mocking. + public static BatchVmFamilyCoreQuota BatchVmFamilyCoreQuota(string name = null, int? coreQuota = null) + { + return new BatchVmFamilyCoreQuota(name, coreQuota); + } + + /// Initializes a new instance of BatchAccountKeys. + /// The Batch account name. + /// The primary key associated with the account. + /// The secondary key associated with the account. + /// A new instance for mocking. + public static BatchAccountKeys BatchAccountKeys(string accountName = null, string primary = null, string secondary = null) + { + return new BatchAccountKeys(accountName, primary, secondary); + } + + /// Initializes a new instance of BatchApplicationPackageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The current state of the application package. + /// The format of the application package, if the package is active. + /// The URL for the application package in Azure Storage. + /// The UTC time at which the Azure Storage URL will expire. + /// The time at which the package was last activated, if the package is active. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchApplicationPackageData BatchApplicationPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BatchApplicationPackageState? state = null, string format = null, Uri storageUri = null, DateTimeOffset? storageUriExpireOn = null, DateTimeOffset? lastActivatedOn = null, ETag? etag = null) + { + return new BatchApplicationPackageData(id, name, resourceType, systemData, state, format, storageUri, storageUriExpireOn, lastActivatedOn, etag); + } + + /// Initializes a new instance of BatchApplicationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The display name for the application. + /// A value indicating whether packages within the application may be overwritten using the same version string. + /// The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchApplicationData BatchApplicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, bool? allowUpdates = null, string defaultVersion = null, ETag? etag = null) + { + return new BatchApplicationData(id, name, resourceType, systemData, displayName, allowUpdates, defaultVersion, etag); + } + + /// Initializes a new instance of BatchLocationQuota. + /// The number of Batch accounts that may be created under the subscription in the specified region. + /// A new instance for mocking. + public static BatchLocationQuota BatchLocationQuota(int? accountQuota = null) + { + return new BatchLocationQuota(accountQuota); + } + + /// Initializes a new instance of BatchSupportedSku. + /// The name of the SKU. + /// The family name of the SKU. + /// A collection of capabilities which this SKU supports. + /// A new instance for mocking. + public static BatchSupportedSku BatchSupportedSku(string name = null, string familyName = null, IEnumerable capabilities = null) + { + capabilities ??= new List(); + + return new BatchSupportedSku(name, familyName, capabilities?.ToList()); + } + + /// Initializes a new instance of BatchSkuCapability. + /// The name of the feature. + /// The value of the feature. + /// A new instance for mocking. + public static BatchSkuCapability BatchSkuCapability(string name = null, string value = null) + { + return new BatchSkuCapability(name, value); + } + + /// Initializes a new instance of BatchNameAvailabilityResult. + /// Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. + /// Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. + /// Gets an error message explaining the Reason value in more detail. + /// A new instance for mocking. + public static BatchNameAvailabilityResult BatchNameAvailabilityResult(bool? isNameAvailable = null, BatchNameUnavailableReason? reason = null, string message = null) + { + return new BatchNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of BatchAccountCertificateData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// This must match the first portion of the certificate name. Currently required to be 'SHA1'. + /// This must match the thumbprint from the name. + /// The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. + /// + /// The time at which the certificate entered its current state. + /// The previous provisioned state of the resource. + /// The time at which the certificate entered its previous state. + /// The public key of the certificate. + /// This is only returned when the certificate provisioningState is 'Failed'. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchAccountCertificateData BatchAccountCertificateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string thumbprintAlgorithm = null, string thumbprintString = null, BatchAccountCertificateFormat? format = null, BatchAccountCertificateProvisioningState? provisioningState = null, DateTimeOffset? provisioningStateTransitOn = null, BatchAccountCertificateProvisioningState? previousProvisioningState = null, DateTimeOffset? previousProvisioningStateTransitOn = null, string publicData = null, ResponseError deleteCertificateError = null, ETag? etag = null) + { + return new BatchAccountCertificateData(id, name, resourceType, systemData, thumbprintAlgorithm, thumbprintString, format, provisioningState, provisioningStateTransitOn, previousProvisioningState, previousProvisioningStateTransitOn, publicData, deleteCertificateError, etag); + } + + /// Initializes a new instance of BatchAccountCertificateCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// This must match the first portion of the certificate name. Currently required to be 'SHA1'. + /// This must match the thumbprint from the name. + /// The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. + /// The maximum size is 10KB. + /// This must not be specified if the certificate format is Cer. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchAccountCertificateCreateOrUpdateContent BatchAccountCertificateCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string thumbprintAlgorithm = null, string thumbprintString = null, BatchAccountCertificateFormat? format = null, BinaryData data = null, string password = null, ETag? etag = null) + { + return new BatchAccountCertificateCreateOrUpdateContent(id, name, resourceType, systemData, thumbprintAlgorithm, thumbprintString, format, data, password, etag); + } + + /// Initializes a new instance of BatchAccountDetectorData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A base64 encoded string that represents the content of a detector. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchAccountDetectorData BatchAccountDetectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, ETag? etag = null) + { + return new BatchAccountDetectorData(id, name, resourceType, systemData, value, etag); + } + + /// Initializes a new instance of BatchPrivateLinkResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The group id is used to establish the private link connection. + /// The list of required members that are used to establish the private link connection. + /// The list of required zone names for the private DNS resource name. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchPrivateLinkResourceData BatchPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null, ETag? etag = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new BatchPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList(), etag); + } + + /// Initializes a new instance of BatchAccountPoolData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The type of identity used for the Batch Pool. Current supported identity types: UserAssigned, None. + /// The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. + /// This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state. + /// The creation time of the pool. + /// The current state of the pool. + /// The time at which the pool entered its current state. + /// Whether the pool is resizing. + /// The time at which the pool entered its current allocation state. + /// For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + /// Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). + /// The number of dedicated compute nodes currently in the pool. + /// The number of Spot/low-priority compute nodes currently in the pool. + /// Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes. + /// This property is set only if the pool automatically scales, i.e. autoScaleSettings are used. + /// This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'. + /// The network configuration for a pool. + /// The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256. + /// If not specified, the default is spread. + /// The list of user accounts to be created on each node in the pool. + /// The Batch service does not assign any meaning to metadata; it is solely for the use of user code. + /// In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. + /// + /// For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. + /// + /// Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. + /// + /// Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool. + /// The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail. + /// Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady). + /// This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. + /// If omitted, the default value is Default. + /// Determines how a pool communicates with the Batch service. + /// The ETag of the resource, used for concurrency statements. + /// A new instance for mocking. + public static BatchAccountPoolData BatchAccountPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string displayName = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, BatchAccountPoolProvisioningState? provisioningState = null, DateTimeOffset? provisioningStateTransitOn = null, BatchAccountPoolAllocationState? allocationState = null, DateTimeOffset? allocationStateTransitionOn = null, string vmSize = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? currentDedicatedNodes = null, int? currentLowPriorityNodes = null, BatchAccountPoolScaleSettings scaleSettings = null, BatchAccountPoolAutoScaleRun autoScaleRun = null, InterNodeCommunicationState? interNodeCommunication = null, BatchNetworkConfiguration networkConfiguration = null, int? taskSlotsPerNode = null, BatchNodeFillType? taskSchedulingNodeFillType = null, IEnumerable userAccounts = null, IEnumerable metadata = null, BatchAccountPoolStartTask startTask = null, IEnumerable certificates = null, IEnumerable applicationPackages = null, IEnumerable applicationLicenses = null, BatchResizeOperationStatus resizeOperationStatus = null, IEnumerable mountConfiguration = null, NodeCommunicationMode? targetNodeCommunicationMode = null, NodeCommunicationMode? currentNodeCommunicationMode = null, ETag? etag = null) + { + userAccounts ??= new List(); + metadata ??= new List(); + certificates ??= new List(); + applicationPackages ??= new List(); + applicationLicenses ??= new List(); + mountConfiguration ??= new List(); + + return new BatchAccountPoolData(id, name, resourceType, systemData, identity, displayName, lastModifiedOn, createdOn, provisioningState, provisioningStateTransitOn, allocationState, allocationStateTransitionOn, vmSize, deploymentConfiguration, currentDedicatedNodes, currentLowPriorityNodes, scaleSettings, autoScaleRun, interNodeCommunication, networkConfiguration, taskSlotsPerNode, taskSchedulingNodeFillType.HasValue ? new TaskSchedulingPolicy(taskSchedulingNodeFillType.Value) : null, userAccounts?.ToList(), metadata?.ToList(), startTask, certificates?.ToList(), applicationPackages?.ToList(), applicationLicenses?.ToList(), resizeOperationStatus, mountConfiguration?.ToList(), targetNodeCommunicationMode, currentNodeCommunicationMode, etag); + } + + /// Initializes a new instance of BatchVmContainerConfiguration. + /// The container technology to be used. + /// This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry. + /// If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. + /// A new instance for mocking. + public static BatchVmContainerConfiguration BatchVmContainerConfiguration(BatchVmContainerType containerType = default, IEnumerable containerImageNames = null, IEnumerable containerRegistries = null) + { + containerImageNames ??= new List(); + containerRegistries ??= new List(); + + return new BatchVmContainerConfiguration(containerType, containerImageNames?.ToList(), containerRegistries?.ToList()); + } + + /// Initializes a new instance of BatchAccountPoolAutoScaleRun. + /// The time at which the autoscale formula was last evaluated. + /// Each variable value is returned in the form $variable=value, and variables are separated by semicolons. + /// An error that occurred when autoscaling a pool. + /// A new instance for mocking. + public static BatchAccountPoolAutoScaleRun BatchAccountPoolAutoScaleRun(DateTimeOffset evaluationOn = default, string results = null, ResponseError error = null) + { + return new BatchAccountPoolAutoScaleRun(evaluationOn, results, error); + } + + /// Initializes a new instance of BatchResizeOperationStatus. + /// The desired number of dedicated compute nodes in the pool. + /// The desired number of Spot/low-priority compute nodes in the pool. + /// The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). + /// The default value is requeue. + /// The time when this resize operation was started. + /// This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady. + /// A new instance for mocking. + public static BatchResizeOperationStatus BatchResizeOperationStatus(int? targetDedicatedNodes = null, int? targetLowPriorityNodes = null, TimeSpan? resizeTimeout = null, BatchNodeDeallocationOption? nodeDeallocationOption = null, DateTimeOffset? startOn = null, IEnumerable errors = null) + { + errors ??= new List(); + + return new BatchResizeOperationStatus(targetDedicatedNodes, targetLowPriorityNodes, resizeTimeout, nodeDeallocationOption, startOn, errors?.ToList()); + } + + /// Initializes a new instance of BatchAccountOutboundEnvironmentEndpoint. + /// The type of service that the Batch service connects to. + /// The endpoints for this service to which the Batch service makes outbound calls. + /// A new instance for mocking. + public static BatchAccountOutboundEnvironmentEndpoint BatchAccountOutboundEnvironmentEndpoint(string category = null, IEnumerable endpoints = null) + { + endpoints ??= new List(); + + return new BatchAccountOutboundEnvironmentEndpoint(category, endpoints?.ToList()); + } + + /// Initializes a new instance of BatchAccountEndpointDependency. + /// The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard. + /// Human-readable supplemental information about the dependency and when it is applicable. + /// The list of connection details for this endpoint. + /// A new instance for mocking. + public static BatchAccountEndpointDependency BatchAccountEndpointDependency(string domainName = null, string description = null, IEnumerable endpointDetails = null) + { + endpointDetails ??= new List(); + + return new BatchAccountEndpointDependency(domainName, description, endpointDetails?.ToList()); + } + + /// Initializes a new instance of BatchEndpointDetail. + /// The port an endpoint is connected to. + /// A new instance for mocking. + public static BatchEndpointDetail BatchEndpointDetail(int? port = null) + { + return new BatchEndpointDetail(port); + } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md b/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md index a78ceb444325..e7963561c0cc 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md +++ b/sdk/batch/Azure.ResourceManager.Batch/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Batch namespace: Azure.ResourceManager.Batch diff --git a/sdk/billing/Azure.ResourceManager.Billing/CHANGELOG.md b/sdk/billing/Azure.ResourceManager.Billing/CHANGELOG.md index c690407de1f8..45b7f26b95d1 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/CHANGELOG.md +++ b/sdk/billing/Azure.ResourceManager.Billing/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-25) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-16) ### Other Changes diff --git a/sdk/billing/Azure.ResourceManager.Billing/api/Azure.ResourceManager.Billing.netstandard2.0.cs b/sdk/billing/Azure.ResourceManager.Billing/api/Azure.ResourceManager.Billing.netstandard2.0.cs index 1e9b558efbe6..2e6b71fbad66 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/api/Azure.ResourceManager.Billing.netstandard2.0.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/api/Azure.ResourceManager.Billing.netstandard2.0.cs @@ -261,6 +261,20 @@ protected BillingSubscriptionResource() { } } namespace Azure.ResourceManager.Billing.Models { + public static partial class ArmBillingModelFactory + { + public static Azure.ResourceManager.Billing.Models.BillingAmount BillingAmount(string currency = null, float? value = default(float?)) { throw null; } + public static Azure.ResourceManager.Billing.BillingPaymentMethodData BillingPaymentMethodData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Billing.Models.PaymentMethodFamily? family = default(Azure.ResourceManager.Billing.Models.PaymentMethodFamily?), string paymentMethodType = null, string accountHolderName = null, string expiration = null, string lastFourDigits = null, string displayName = null, System.Collections.Generic.IEnumerable logos = null, Azure.ResourceManager.Billing.Models.PaymentMethodStatus? status = default(Azure.ResourceManager.Billing.Models.PaymentMethodStatus?)) { throw null; } + public static Azure.ResourceManager.Billing.BillingPaymentMethodLinkData BillingPaymentMethodLinkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Billing.Models.PaymentMethodProjectionProperties paymentMethod = null) { throw null; } + public static Azure.ResourceManager.Billing.BillingSubscriptionAliasData BillingSubscriptionAliasData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Billing.Models.BillingSubscriptionAutoRenewState? autoRenew = default(Azure.ResourceManager.Billing.Models.BillingSubscriptionAutoRenewState?), string beneficiaryTenantId = null, string billingFrequency = null, Azure.Core.ResourceIdentifier billingProfileId = null, System.Collections.Generic.IReadOnlyDictionary billingPolicies = null, string billingProfileDisplayName = null, string billingProfileName = null, string consumptionCostCenter = null, string customerId = null, string customerDisplayName = null, string displayName = null, string enrollmentAccountId = null, string enrollmentAccountDisplayName = null, Azure.Core.ResourceIdentifier invoiceSectionId = null, string invoiceSectionDisplayName = null, string invoiceSectionName = null, Azure.ResourceManager.Billing.Models.BillingAmount lastMonthCharges = null, Azure.ResourceManager.Billing.Models.BillingAmount monthToDateCharges = null, string nextBillingCycleBillingFrequency = null, string offerId = null, string productCategory = null, string productType = null, string productTypeId = null, System.DateTimeOffset? purchaseOn = default(System.DateTimeOffset?), long? quantity = default(long?), Azure.ResourceManager.Billing.Models.CreatedSubscriptionReseller reseller = null, Azure.ResourceManager.Billing.Models.SubscriptionRenewalTermDetails renewalTermDetails = null, string skuDescription = null, string skuId = null, Azure.ResourceManager.Billing.Models.BillingSubscriptionStatus? status = default(Azure.ResourceManager.Billing.Models.BillingSubscriptionStatus?), string subscriptionId = null, System.Collections.Generic.IEnumerable suspensionReasons = null, System.TimeSpan? termDuration = default(System.TimeSpan?), System.DateTimeOffset? termStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? termEndOn = default(System.DateTimeOffset?), Azure.ResourceManager.Billing.Models.SubscriptionEnrollmentAccountStatus? subscriptionEnrollmentAccountStatus = default(Azure.ResourceManager.Billing.Models.SubscriptionEnrollmentAccountStatus?), System.DateTimeOffset? enrollmentAccountStartOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier billingSubscriptionId = null) { throw null; } + public static Azure.ResourceManager.Billing.BillingSubscriptionData BillingSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Billing.Models.BillingSubscriptionAutoRenewState? autoRenew = default(Azure.ResourceManager.Billing.Models.BillingSubscriptionAutoRenewState?), string beneficiaryTenantId = null, string billingFrequency = null, Azure.Core.ResourceIdentifier billingProfileId = null, System.Collections.Generic.IReadOnlyDictionary billingPolicies = null, string billingProfileDisplayName = null, string billingProfileName = null, string consumptionCostCenter = null, string customerId = null, string customerDisplayName = null, string displayName = null, string enrollmentAccountId = null, string enrollmentAccountDisplayName = null, Azure.Core.ResourceIdentifier invoiceSectionId = null, string invoiceSectionDisplayName = null, string invoiceSectionName = null, Azure.ResourceManager.Billing.Models.BillingAmount lastMonthCharges = null, Azure.ResourceManager.Billing.Models.BillingAmount monthToDateCharges = null, string nextBillingCycleBillingFrequency = null, string offerId = null, string productCategory = null, string productType = null, string productTypeId = null, System.DateTimeOffset? purchaseOn = default(System.DateTimeOffset?), long? quantity = default(long?), Azure.ResourceManager.Billing.Models.CreatedSubscriptionReseller reseller = null, Azure.ResourceManager.Billing.Models.SubscriptionRenewalTermDetails renewalTermDetails = null, string skuDescription = null, string skuId = null, Azure.ResourceManager.Billing.Models.BillingSubscriptionStatus? status = default(Azure.ResourceManager.Billing.Models.BillingSubscriptionStatus?), string subscriptionId = null, System.Collections.Generic.IEnumerable suspensionReasons = null, System.TimeSpan? termDuration = default(System.TimeSpan?), System.DateTimeOffset? termStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? termEndOn = default(System.DateTimeOffset?), Azure.ResourceManager.Billing.Models.SubscriptionEnrollmentAccountStatus? subscriptionEnrollmentAccountStatus = default(Azure.ResourceManager.Billing.Models.SubscriptionEnrollmentAccountStatus?), System.DateTimeOffset? enrollmentAccountStartOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Billing.Models.BillingSubscriptionValidateMoveEligibilityError BillingSubscriptionValidateMoveEligibilityError(Azure.ResourceManager.Billing.Models.SubscriptionTransferValidationErrorCode? code = default(Azure.ResourceManager.Billing.Models.SubscriptionTransferValidationErrorCode?), string message = null, string details = null) { throw null; } + public static Azure.ResourceManager.Billing.Models.BillingSubscriptionValidateMoveEligibilityResult BillingSubscriptionValidateMoveEligibilityResult(bool? isMoveEligible = default(bool?), Azure.ResourceManager.Billing.Models.BillingSubscriptionValidateMoveEligibilityError errorDetails = null) { throw null; } + public static Azure.ResourceManager.Billing.Models.CreatedSubscriptionReseller CreatedSubscriptionReseller(string resellerId = null, string description = null) { throw null; } + public static Azure.ResourceManager.Billing.Models.PaymentMethodLogo PaymentMethodLogo(string mimeType = null, System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.Billing.Models.PaymentMethodProjectionProperties PaymentMethodProjectionProperties(Azure.Core.ResourceIdentifier paymentMethodId = null, Azure.ResourceManager.Billing.Models.PaymentMethodFamily? family = default(Azure.ResourceManager.Billing.Models.PaymentMethodFamily?), string paymentMethodProjectionPropertiesType = null, string accountHolderName = null, string expiration = null, string lastFourDigits = null, string displayName = null, System.Collections.Generic.IEnumerable logos = null, Azure.ResourceManager.Billing.Models.PaymentMethodStatus? status = default(Azure.ResourceManager.Billing.Models.PaymentMethodStatus?)) { throw null; } + public static Azure.ResourceManager.Billing.Models.SubscriptionRenewalTermDetails SubscriptionRenewalTermDetails(string billingFrequency = null, string productTypeId = null, long? quantity = default(long?), string skuId = null, System.TimeSpan? termDuration = default(System.TimeSpan?)) { throw null; } + } public partial class BillingAmount { internal BillingAmount() { } diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/ArmBillingModelFactory.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/ArmBillingModelFactory.cs new file mode 100644 index 000000000000..83181cbf6047 --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/ArmBillingModelFactory.cs @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.Billing; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Billing.Models +{ + /// Model factory for models. + public static partial class ArmBillingModelFactory + { + /// Initializes a new instance of BillingSubscriptionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Indicates whether auto renewal is turned on or off for a subscription. + /// The provisioning tenant of the subscription. + /// The billing frequency of the subscription in the ISO8601 format. Example: P1M, P3M, P1Y. + /// The ID of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// Dictionary of billing policies associated with the subscription. + /// The display name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// The name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement Type billing accounts. + /// The ID of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the subscription. + /// The enrollment Account ID associated with the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The enrollment Account name associated with the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The ID of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The display name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The last month's charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts. + /// The current month to date charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts. + /// Next billing cycle details of the subscription. + /// The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts. + /// The category of the product for which the subscription is purchased. Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder, Software, UsageBased, Other. + /// The type of the product for which the subscription is purchased. + /// The ID of the product for which the subscription is purchased. + /// The purchase date of the subscription in UTC time. + /// The number of licenses purchased for the subscription. + /// The reseller for which the subscription is created. The field is available for Microsoft Partner Agreement billing accounts. + /// The term details of the subscription at the next renewal. + /// The SKU description of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts. + /// The SKU ID of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts. + /// The status of the subscription. This field is not available for Enterprise Agreement billing accounts. + /// The ID of the usage-based subscription. This field is only available for usage-based subscriptions of Microsoft Customer Agreement billing accounts. + /// The suspension reason for the subscription. This field is not available for Enterprise Agreement billing accounts. + /// The duration for which you can use the subscription. Example P1Y and P1M. + /// The start date of the term in UTC time. + /// The end date of the term in UTC time. + /// The current enrollment account status of the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement billing accounts. + /// A new instance for mocking. + public static BillingSubscriptionData BillingSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BillingSubscriptionAutoRenewState? autoRenew = null, string beneficiaryTenantId = null, string billingFrequency = null, ResourceIdentifier billingProfileId = null, IReadOnlyDictionary billingPolicies = null, string billingProfileDisplayName = null, string billingProfileName = null, string consumptionCostCenter = null, string customerId = null, string customerDisplayName = null, string displayName = null, string enrollmentAccountId = null, string enrollmentAccountDisplayName = null, ResourceIdentifier invoiceSectionId = null, string invoiceSectionDisplayName = null, string invoiceSectionName = null, BillingAmount lastMonthCharges = null, BillingAmount monthToDateCharges = null, string nextBillingCycleBillingFrequency = null, string offerId = null, string productCategory = null, string productType = null, string productTypeId = null, DateTimeOffset? purchaseOn = null, long? quantity = null, CreatedSubscriptionReseller reseller = null, SubscriptionRenewalTermDetails renewalTermDetails = null, string skuDescription = null, string skuId = null, BillingSubscriptionStatus? status = null, string subscriptionId = null, IEnumerable suspensionReasons = null, TimeSpan? termDuration = null, DateTimeOffset? termStartOn = null, DateTimeOffset? termEndOn = null, SubscriptionEnrollmentAccountStatus? subscriptionEnrollmentAccountStatus = null, DateTimeOffset? enrollmentAccountStartOn = null) + { + billingPolicies ??= new Dictionary(); + suspensionReasons ??= new List(); + + return new BillingSubscriptionData(id, name, resourceType, systemData, autoRenew, beneficiaryTenantId, billingFrequency, billingProfileId, billingPolicies, billingProfileDisplayName, billingProfileName, consumptionCostCenter, customerId, customerDisplayName, displayName, enrollmentAccountId, enrollmentAccountDisplayName, invoiceSectionId, invoiceSectionDisplayName, invoiceSectionName, lastMonthCharges, monthToDateCharges, nextBillingCycleBillingFrequency != null ? new NextBillingCycleDetails(nextBillingCycleBillingFrequency) : null, offerId, productCategory, productType, productTypeId, purchaseOn, quantity, reseller, renewalTermDetails, skuDescription, skuId, status, subscriptionId, suspensionReasons?.ToList(), termDuration, termStartOn, termEndOn, subscriptionEnrollmentAccountStatus, enrollmentAccountStartOn); + } + + /// Initializes a new instance of BillingAmount. + /// The currency for the amount value. + /// Amount value. + /// A new instance for mocking. + public static BillingAmount BillingAmount(string currency = null, float? value = null) + { + return new BillingAmount(currency, value); + } + + /// Initializes a new instance of CreatedSubscriptionReseller. + /// The MPN ID of the reseller. + /// The name of the reseller. + /// A new instance for mocking. + public static CreatedSubscriptionReseller CreatedSubscriptionReseller(string resellerId = null, string description = null) + { + return new CreatedSubscriptionReseller(resellerId, description); + } + + /// Initializes a new instance of SubscriptionRenewalTermDetails. + /// The billing frequency of the subscription. + /// The ID of the product. + /// The number of licenses. + /// The SKU ID of the product. + /// The term duration of the subscription. Example P1M and P1Y. + /// A new instance for mocking. + public static SubscriptionRenewalTermDetails SubscriptionRenewalTermDetails(string billingFrequency = null, string productTypeId = null, long? quantity = null, string skuId = null, TimeSpan? termDuration = null) + { + return new SubscriptionRenewalTermDetails(billingFrequency, productTypeId, quantity, skuId, termDuration); + } + + /// Initializes a new instance of BillingSubscriptionValidateMoveEligibilityResult. + /// Specifies whether the subscription is eligible to move. + /// Validation error details. + /// A new instance for mocking. + public static BillingSubscriptionValidateMoveEligibilityResult BillingSubscriptionValidateMoveEligibilityResult(bool? isMoveEligible = null, BillingSubscriptionValidateMoveEligibilityError errorDetails = null) + { + return new BillingSubscriptionValidateMoveEligibilityResult(isMoveEligible, errorDetails); + } + + /// Initializes a new instance of BillingSubscriptionValidateMoveEligibilityError. + /// Error code for the billing subscription move validation. + /// The error message. + /// Detailed error message explaining the error. + /// A new instance for mocking. + public static BillingSubscriptionValidateMoveEligibilityError BillingSubscriptionValidateMoveEligibilityError(SubscriptionTransferValidationErrorCode? code = null, string message = null, string details = null) + { + return new BillingSubscriptionValidateMoveEligibilityError(code, message, details); + } + + /// Initializes a new instance of BillingSubscriptionAliasData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Indicates whether auto renewal is turned on or off for a subscription. + /// The provisioning tenant of the subscription. + /// The billing frequency of the subscription in the ISO8601 format. Example: P1M, P3M, P1Y. + /// The ID of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// Dictionary of billing policies associated with the subscription. + /// The display name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// The name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts. + /// The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement Type billing accounts. + /// The ID of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the subscription. + /// The enrollment Account ID associated with the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The enrollment Account name associated with the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The ID of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The display name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts. + /// The last month's charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts. + /// The current month to date charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts. + /// Next billing cycle details of the subscription. + /// The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts. + /// The category of the product for which the subscription is purchased. Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder, Software, UsageBased, Other. + /// The type of the product for which the subscription is purchased. + /// The ID of the product for which the subscription is purchased. + /// The purchase date of the subscription in UTC time. + /// The number of licenses purchased for the subscription. + /// The reseller for which the subscription is created. The field is available for Microsoft Partner Agreement billing accounts. + /// The term details of the subscription at the next renewal. + /// The SKU description of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts. + /// The SKU ID of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts. + /// The status of the subscription. This field is not available for Enterprise Agreement billing accounts. + /// The ID of the usage-based subscription. This field is only available for usage-based subscriptions of Microsoft Customer Agreement billing accounts. + /// The suspension reason for the subscription. This field is not available for Enterprise Agreement billing accounts. + /// The duration for which you can use the subscription. Example P1Y and P1M. + /// The start date of the term in UTC time. + /// The end date of the term in UTC time. + /// The current enrollment account status of the subscription. This field is available only for the Enterprise Agreement billing accounts. + /// The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement billing accounts. + /// The ID of the billing subscription with the subscription alias. + /// A new instance for mocking. + public static BillingSubscriptionAliasData BillingSubscriptionAliasData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BillingSubscriptionAutoRenewState? autoRenew = null, string beneficiaryTenantId = null, string billingFrequency = null, ResourceIdentifier billingProfileId = null, IReadOnlyDictionary billingPolicies = null, string billingProfileDisplayName = null, string billingProfileName = null, string consumptionCostCenter = null, string customerId = null, string customerDisplayName = null, string displayName = null, string enrollmentAccountId = null, string enrollmentAccountDisplayName = null, ResourceIdentifier invoiceSectionId = null, string invoiceSectionDisplayName = null, string invoiceSectionName = null, BillingAmount lastMonthCharges = null, BillingAmount monthToDateCharges = null, string nextBillingCycleBillingFrequency = null, string offerId = null, string productCategory = null, string productType = null, string productTypeId = null, DateTimeOffset? purchaseOn = null, long? quantity = null, CreatedSubscriptionReseller reseller = null, SubscriptionRenewalTermDetails renewalTermDetails = null, string skuDescription = null, string skuId = null, BillingSubscriptionStatus? status = null, string subscriptionId = null, IEnumerable suspensionReasons = null, TimeSpan? termDuration = null, DateTimeOffset? termStartOn = null, DateTimeOffset? termEndOn = null, SubscriptionEnrollmentAccountStatus? subscriptionEnrollmentAccountStatus = null, DateTimeOffset? enrollmentAccountStartOn = null, ResourceIdentifier billingSubscriptionId = null) + { + billingPolicies ??= new Dictionary(); + suspensionReasons ??= new List(); + + return new BillingSubscriptionAliasData(id, name, resourceType, systemData, autoRenew, beneficiaryTenantId, billingFrequency, billingProfileId, billingPolicies, billingProfileDisplayName, billingProfileName, consumptionCostCenter, customerId, customerDisplayName, displayName, enrollmentAccountId, enrollmentAccountDisplayName, invoiceSectionId, invoiceSectionDisplayName, invoiceSectionName, lastMonthCharges, monthToDateCharges, nextBillingCycleBillingFrequency != null ? new NextBillingCycleDetails(nextBillingCycleBillingFrequency) : null, offerId, productCategory, productType, productTypeId, purchaseOn, quantity, reseller, renewalTermDetails, skuDescription, skuId, status, subscriptionId, suspensionReasons?.ToList(), termDuration, termStartOn, termEndOn, subscriptionEnrollmentAccountStatus, enrollmentAccountStartOn, billingSubscriptionId); + } + + /// Initializes a new instance of BillingPaymentMethodData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The family of payment method. + /// The type of payment method. + /// The account holder name for the payment method. This is only supported for payment methods with family CreditCard. + /// The expiration month and year of the payment method. This is only supported for payment methods with family CreditCard. + /// Last four digits of payment method. + /// The display name of the payment method. + /// The list of logos for the payment method. + /// Status of the payment method. + /// A new instance for mocking. + public static BillingPaymentMethodData BillingPaymentMethodData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PaymentMethodFamily? family = null, string paymentMethodType = null, string accountHolderName = null, string expiration = null, string lastFourDigits = null, string displayName = null, IEnumerable logos = null, PaymentMethodStatus? status = null) + { + logos ??= new List(); + + return new BillingPaymentMethodData(id, name, resourceType, systemData, family, paymentMethodType, accountHolderName, expiration, lastFourDigits, displayName, logos?.ToList(), status); + } + + /// Initializes a new instance of PaymentMethodLogo. + /// MIME type of the logo. + /// Public URL of image of the logo. + /// A new instance for mocking. + public static PaymentMethodLogo PaymentMethodLogo(string mimeType = null, Uri uri = null) + { + return new PaymentMethodLogo(mimeType, uri); + } + + /// Initializes a new instance of BillingPaymentMethodLinkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Projection of a payment method. + /// A new instance for mocking. + public static BillingPaymentMethodLinkData BillingPaymentMethodLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PaymentMethodProjectionProperties paymentMethod = null) + { + return new BillingPaymentMethodLinkData(id, name, resourceType, systemData, paymentMethod); + } + + /// Initializes a new instance of PaymentMethodProjectionProperties. + /// Id of payment method. + /// The family of payment method. + /// The type of payment method. + /// The account holder name for the payment method. This is only supported for payment methods with family CreditCard. + /// The expiration month and year of the payment method. This is only supported for payment methods with family CreditCard. + /// Last four digits of payment method. + /// The display name of the payment method. + /// The list of logos for the payment method. + /// Status of the payment method. + /// A new instance for mocking. + public static PaymentMethodProjectionProperties PaymentMethodProjectionProperties(ResourceIdentifier paymentMethodId = null, PaymentMethodFamily? family = null, string paymentMethodProjectionPropertiesType = null, string accountHolderName = null, string expiration = null, string lastFourDigits = null, string displayName = null, IEnumerable logos = null, PaymentMethodStatus? status = null) + { + logos ??= new List(); + + return new PaymentMethodProjectionProperties(paymentMethodId, family, paymentMethodProjectionPropertiesType, accountHolderName, expiration, lastFourDigits, displayName, logos?.ToList(), status); + } + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/autorest.md b/sdk/billing/Azure.ResourceManager.Billing/src/autorest.md index cf0ef8246d28..c4db57c596f4 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/autorest.md +++ b/sdk/billing/Azure.ResourceManager.Billing/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Billing namespace: Azure.ResourceManager.Billing