diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/CHANGELOG.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/CHANGELOG.md index 99ba760513d7..172f24d8cdd9 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/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 (2022-08-29) This release is the first stable release of the App Configuration Management client library. diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/api/Azure.ResourceManager.AppConfiguration.netstandard2.0.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/api/Azure.ResourceManager.AppConfiguration.netstandard2.0.cs index 2a8b45493a1d..645b9e8055a0 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/api/Azure.ResourceManager.AppConfiguration.netstandard2.0.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/api/Azure.ResourceManager.AppConfiguration.netstandard2.0.cs @@ -415,4 +415,16 @@ public AppConfigurationStorePatch() { } public string SkuName { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } + public static partial class ArmAppConfigurationModelFactory + { + public static Azure.ResourceManager.AppConfiguration.AppConfigurationKeyValueData AppConfigurationKeyValueData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string key = null, string label = null, string value = null, string contentType = null, Azure.ETag? eTag = default(Azure.ETag?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), bool? isLocked = default(bool?), System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.AppConfiguration.Models.AppConfigurationNameAvailabilityResult AppConfigurationNameAvailabilityResult(bool? isNameAvailable = default(bool?), string message = null, string reason = null) { throw null; } + public static Azure.ResourceManager.AppConfiguration.AppConfigurationPrivateEndpointConnectionData AppConfigurationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState?), Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateLinkServiceConnectionState connectionState = null) { throw null; } + public static Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateEndpointConnectionReference AppConfigurationPrivateEndpointConnectionReference(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState?), Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateLinkServiceConnectionState connectionState = null) { throw null; } + public static Azure.ResourceManager.AppConfiguration.AppConfigurationPrivateLinkResourceData AppConfigurationPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateLinkServiceConnectionState AppConfigurationPrivateLinkServiceConnectionState(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateLinkServiceConnectionStatus? status = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPrivateLinkServiceConnectionStatus?), string description = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationActionsRequired? actionsRequired = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationActionsRequired?)) { throw null; } + public static Azure.ResourceManager.AppConfiguration.Models.AppConfigurationStoreApiKey AppConfigurationStoreApiKey(string id = null, string name = null, string value = null, string connectionString = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } + public static Azure.ResourceManager.AppConfiguration.AppConfigurationStoreData AppConfigurationStoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string skuName = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState? provisioningState = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationProvisioningState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string endpoint = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationKeyVaultProperties encryptionKeyVaultProperties = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationPublicNetworkAccess?), bool? disableLocalAuth = default(bool?), int? softDeleteRetentionInDays = default(int?), bool? enablePurgeProtection = default(bool?), Azure.ResourceManager.AppConfiguration.Models.AppConfigurationCreateMode? createMode = default(Azure.ResourceManager.AppConfiguration.Models.AppConfigurationCreateMode?)) { throw null; } + public static Azure.ResourceManager.AppConfiguration.DeletedAppConfigurationStoreData DeletedAppConfigurationStoreData(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 configurationStoreId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledPurgeOn = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary tags = null, bool? isPurgeProtectionEnabled = default(bool?)) { throw null; } + } } diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ArmAppConfigurationModelFactory.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ArmAppConfigurationModelFactory.cs new file mode 100644 index 000000000000..06000854e35a --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ArmAppConfigurationModelFactory.cs @@ -0,0 +1,179 @@ +// 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.AppConfiguration; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.AppConfiguration.Models +{ + /// Model factory for models. + public static partial class ArmAppConfigurationModelFactory + { + /// Initializes a new instance of AppConfigurationStoreData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The managed identity information, if configured. + /// The sku of the configuration store. + /// The provisioning state of the configuration store. + /// The creation date of configuration store. + /// The DNS endpoint where the configuration store API will be available. + /// The encryption settings of the configuration store. + /// The list of private endpoint connections that are set up for this resource. + /// Control permission for data plane traffic coming from public networks while private endpoint is enabled. + /// Disables all authentication methods other than AAD authentication. + /// The amount of time in days that the configuration store will be retained when it is soft deleted. + /// Property specifying whether protection against purge is enabled for this configuration store. + /// Indicates whether the configuration store need to be recovered. + /// A new instance for mocking. + public static AppConfigurationStoreData AppConfigurationStoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string skuName = null, AppConfigurationProvisioningState? provisioningState = null, DateTimeOffset? createdOn = null, string endpoint = null, AppConfigurationKeyVaultProperties encryptionKeyVaultProperties = null, IEnumerable privateEndpointConnections = null, AppConfigurationPublicNetworkAccess? publicNetworkAccess = null, bool? disableLocalAuth = null, int? softDeleteRetentionInDays = null, bool? enablePurgeProtection = null, AppConfigurationCreateMode? createMode = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new AppConfigurationStoreData(id, name, resourceType, systemData, tags, location, identity, skuName != null ? new AppConfigurationSku(skuName) : null, provisioningState, createdOn, endpoint, encryptionKeyVaultProperties != null ? new AppConfigurationStoreEncryptionProperties(encryptionKeyVaultProperties) : null, privateEndpointConnections?.ToList(), publicNetworkAccess, disableLocalAuth, softDeleteRetentionInDays, enablePurgeProtection, createMode); + } + + /// Initializes a new instance of AppConfigurationPrivateEndpointConnectionReference. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning status of the private endpoint connection. + /// The resource of private endpoint. + /// A collection of information about the state of the connection between service consumer and provider. + /// A new instance for mocking. + public static AppConfigurationPrivateEndpointConnectionReference AppConfigurationPrivateEndpointConnectionReference(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppConfigurationProvisioningState? provisioningState = null, ResourceIdentifier privateEndpointId = null, AppConfigurationPrivateLinkServiceConnectionState connectionState = null) + { + return new AppConfigurationPrivateEndpointConnectionReference(id, name, resourceType, systemData, provisioningState, privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, connectionState); + } + + /// Initializes a new instance of AppConfigurationPrivateLinkServiceConnectionState. + /// 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 AppConfigurationPrivateLinkServiceConnectionState AppConfigurationPrivateLinkServiceConnectionState(AppConfigurationPrivateLinkServiceConnectionStatus? status = null, string description = null, AppConfigurationActionsRequired? actionsRequired = null) + { + return new AppConfigurationPrivateLinkServiceConnectionState(status, description, actionsRequired); + } + + /// Initializes a new instance of AppConfigurationNameAvailabilityResult. + /// The value indicating whether the resource name is available. + /// If any, the error message that provides more detail for the reason that the name is not available. + /// If any, the reason that the name is not available. + /// A new instance for mocking. + public static AppConfigurationNameAvailabilityResult AppConfigurationNameAvailabilityResult(bool? isNameAvailable = null, string message = null, string reason = null) + { + return new AppConfigurationNameAvailabilityResult(isNameAvailable, message, reason); + } + + /// Initializes a new instance of AppConfigurationStoreApiKey. + /// The key ID. + /// A name for the key describing its usage. + /// The value of the key that is used for authentication purposes. + /// A connection string that can be used by supporting clients for authentication. + /// The last time any of the key's properties were modified. + /// Whether this key can only be used for read operations. + /// A new instance for mocking. + public static AppConfigurationStoreApiKey AppConfigurationStoreApiKey(string id = null, string name = null, string value = null, string connectionString = null, DateTimeOffset? lastModifiedOn = null, bool? isReadOnly = null) + { + return new AppConfigurationStoreApiKey(id, name, value, connectionString, lastModifiedOn, isReadOnly); + } + + /// Initializes a new instance of AppConfigurationPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning status of the private endpoint connection. + /// The resource of private endpoint. + /// A collection of information about the state of the connection between service consumer and provider. + /// A new instance for mocking. + public static AppConfigurationPrivateEndpointConnectionData AppConfigurationPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppConfigurationProvisioningState? provisioningState = null, ResourceIdentifier privateEndpointId = null, AppConfigurationPrivateLinkServiceConnectionState connectionState = null) + { + return new AppConfigurationPrivateEndpointConnectionData(id, name, resourceType, systemData, provisioningState, privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, connectionState); + } + + /// Initializes a new instance of AppConfigurationPrivateLinkResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The private link resource group id. + /// The private link resource required member names. + /// The list of required DNS zone names of the private link resource. + /// A new instance for mocking. + public static AppConfigurationPrivateLinkResourceData AppConfigurationPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new AppConfigurationPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of AppConfigurationKeyValueData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The primary identifier of a key-value. + /// The key is used in unison with the label to uniquely identify a key-value. + /// + /// + /// A value used to group key-values. + /// The label is used in unison with the key to uniquely identify a key-value. + /// + /// The value of the key-value. + /// + /// The content type of the key-value's value. + /// Providing a proper content-type can enable transformations of values when they are retrieved by applications. + /// + /// An ETag indicating the state of a key-value within a configuration store. + /// The last time a modifying operation was performed on the given key-value. + /// + /// A value indicating whether the key-value is locked. + /// A locked key-value may not be modified until it is unlocked. + /// + /// A dictionary of tags that can help identify what a key-value may be applicable for. + /// A new instance for mocking. + public static AppConfigurationKeyValueData AppConfigurationKeyValueData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string key = null, string label = null, string value = null, string contentType = null, ETag? eTag = null, DateTimeOffset? lastModifiedOn = null, bool? isLocked = null, IDictionary tags = null) + { + tags ??= new Dictionary(); + + return new AppConfigurationKeyValueData(id, name, resourceType, systemData, key, label, value, contentType, eTag, lastModifiedOn, isLocked, tags); + } + + /// Initializes a new instance of DeletedAppConfigurationStoreData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource id of the original configuration store. + /// The location of the original configuration store. + /// The deleted date. + /// The scheduled purged date. + /// Tags of the original configuration store. + /// Purge protection status of the original configuration store. + /// A new instance for mocking. + public static DeletedAppConfigurationStoreData DeletedAppConfigurationStoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier configurationStoreId = null, AzureLocation? location = null, DateTimeOffset? deletedOn = null, DateTimeOffset? scheduledPurgeOn = null, IReadOnlyDictionary tags = null, bool? isPurgeProtectionEnabled = null) + { + tags ??= new Dictionary(); + + return new DeletedAppConfigurationStoreData(id, name, resourceType, systemData, configurationStoreId, location, deletedOn, scheduledPurgeOn, tags, isPurgeProtectionEnabled); + } + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md index b3e3e065a881..186fdc44f2b9 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md @@ -4,7 +4,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: AppConfiguration namespace: Azure.ResourceManager.AppConfiguration diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/CHANGELOG.md b/sdk/appplatform/Azure.ResourceManager.AppPlatform/CHANGELOG.md index 26a7b2a01d1b..89f846178634 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/CHANGELOG.md +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/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.2 (2023-03-28) ### Bugs Fixed diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/api/Azure.ResourceManager.AppPlatform.netstandard2.0.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/api/Azure.ResourceManager.AppPlatform.netstandard2.0.cs index bc727a07f3fa..207c57f3301b 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/api/Azure.ResourceManager.AppPlatform.netstandard2.0.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/api/Azure.ResourceManager.AppPlatform.netstandard2.0.cs @@ -2183,6 +2183,91 @@ public AppVnetAddons() { } public bool? IsPublicEndpoint { get { throw null; } set { } } public System.Uri PublicEndpointUri { get { throw null; } } } + public static partial class ArmAppPlatformModelFactory + { + public static Azure.ResourceManager.AppPlatform.Models.ApplicationRemoteDebuggingConfig ApplicationRemoteDebuggingConfig(int? port = default(int?), bool? isEnabled = default(bool?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPersistentDisk AppPersistentDisk(int? sizeInGB = default(int?), int? usedInGB = default(int?), string mountPath = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformApiPortalCustomDomainData AppPlatformApiPortalCustomDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string apiPortalCustomDomainThumbprint = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformApiPortalData AppPlatformApiPortalData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalProperties properties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSku sku = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalInstance AppPlatformApiPortalInstance(string name = null, string status = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalProperties AppPlatformApiPortalProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalProvisioningState?), bool? isPublic = default(bool?), System.Uri uri = null, bool? isHttpsOnly = default(bool?), System.Collections.Generic.IEnumerable gatewayIds = null, System.Collections.Generic.IEnumerable sourceUris = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSsoProperties ssoProperties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalResourceRequirements resourceRequests = null, System.Collections.Generic.IEnumerable instances = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformApiPortalResourceRequirements AppPlatformApiPortalResourceRequirements(string cpu = null, string memory = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformAppData AppPlatformAppData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformAppProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformAppProperties AppPlatformAppProperties(bool? isPublic = default(bool?), System.Uri uri = null, System.Collections.Generic.IDictionary> addonConfigs = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformAppProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformAppProvisioningState?), string fqdn = null, bool? isHttpsOnly = default(bool?), Azure.ResourceManager.AppPlatform.Models.AppTemporaryDisk temporaryDisk = null, Azure.ResourceManager.AppPlatform.Models.AppPersistentDisk persistentDisk = null, System.Collections.Generic.IEnumerable customPersistentDisks = null, bool? isEndToEndTlsEnabled = default(bool?), System.Collections.Generic.IEnumerable loadedCertificates = null, Azure.ResourceManager.AppPlatform.Models.AppVnetAddons vnetAddons = null, Azure.ResourceManager.AppPlatform.Models.AppIngressSettings ingressSettings = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBindingData AppPlatformBindingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBindingProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBindingProperties AppPlatformBindingProperties(string resourceName = null, string resourceType = null, Azure.Core.ResourceIdentifier resourceId = null, string key = null, System.Collections.Generic.IDictionary bindingParameters = null, string generatedProperties = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuildData AppPlatformBuildData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuilderData AppPlatformBuilderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuilderProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuilderProperties AppPlatformBuilderProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformBuilderProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformBuilderProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformClusterStackProperties stack = null, System.Collections.Generic.IEnumerable buildpackGroups = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuildpackBindingData AppPlatformBuildpackBindingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildpackBindingProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildpackBindingProperties AppPlatformBuildpackBindingProperties(Azure.ResourceManager.AppPlatform.Models.BuildpackBindingType? bindingType = default(Azure.ResourceManager.AppPlatform.Models.BuildpackBindingType?), Azure.ResourceManager.AppPlatform.Models.BuildpackBindingProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.BuildpackBindingProvisioningState?), Azure.ResourceManager.AppPlatform.Models.BuildpackBindingLaunchProperties launchProperties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildProperties AppPlatformBuildProperties(string relativePath = null, string builder = null, string agentPool = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildProvisioningState?), System.Collections.Generic.IDictionary env = null, Azure.Core.ResourceIdentifier triggeredBuildResultId = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResourceRequirements resourceRequests = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuildResultData AppPlatformBuildResultData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResultProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResultLog AppPlatformBuildResultLog(System.Uri blobUri = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResultProperties AppPlatformBuildResultProperties(string name = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResultProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildResultProvisioningState?), string buildPodName = null, System.Collections.Generic.IEnumerable buildStages = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData AppPlatformBuildServiceAgentPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceAgentPoolProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceAgentPoolProperties AppPlatformBuildServiceAgentPoolProperties(string provisioningState = null, Azure.ResourceManager.AppPlatform.Models.BuildServiceAgentPoolSizeProperties poolSize = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceData AppPlatformBuildServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceProperties AppPlatformBuildServiceProperties(string kPackVersion = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceResourceRequirements resourceRequests = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildServiceResourceRequirements AppPlatformBuildServiceResourceRequirements(string cpu = null, string memory = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformBuildStageProperties AppPlatformBuildStageProperties(string name = null, Azure.ResourceManager.AppPlatform.Models.KPackBuildStageProvisioningState? status = default(Azure.ResourceManager.AppPlatform.Models.KPackBuildStageProvisioningState?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformCertificateData AppPlatformCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProperties AppPlatformCertificateProperties(string certificatePropertiesType = null, string thumbprint = null, string issuer = null, System.DateTimeOffset? issuedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? activateOn = default(System.DateTimeOffset?), string subjectName = null, System.Collections.Generic.IEnumerable dnsNames = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformConfigServerData AppPlatformConfigServerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigServerProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigServerProperties AppPlatformConfigServerProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigServerState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigServerState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformErrorInfo error = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigServerGitProperty configServerGitProperty = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformConfigurationServiceData AppPlatformConfigurationServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceGitReposValidationMessages AppPlatformConfigurationServiceGitReposValidationMessages(string name = null, System.Collections.Generic.IEnumerable messages = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceGitValidateResult AppPlatformConfigurationServiceGitValidateResult(bool? isValid = default(bool?), System.Collections.Generic.IEnumerable gitReposValidationResult = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceInstance AppPlatformConfigurationServiceInstance(string name = null, string status = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceProperties AppPlatformConfigurationServiceProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceRequirements resourceRequests = null, System.Collections.Generic.IEnumerable instances = null, System.Collections.Generic.IEnumerable configurationServiceGitRepositories = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceRequirements AppPlatformConfigurationServiceRequirements(string cpu = null, string memory = null, int? instanceCount = default(int?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceSettingsValidateResult AppPlatformConfigurationServiceSettingsValidateResult(Azure.ResourceManager.AppPlatform.Models.AppPlatformConfigurationServiceGitValidateResult gitPropertyValidationResult = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformContentCertificateProperties AppPlatformContentCertificateProperties(string thumbprint = null, string issuer = null, System.DateTimeOffset? issuedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? activateOn = default(System.DateTimeOffset?), string subjectName = null, System.Collections.Generic.IEnumerable dnsNames = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState?), string content = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformCustomDomainData AppPlatformCustomDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCustomDomainProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformCustomDomainProperties AppPlatformCustomDomainProperties(string thumbprint = null, string appName = null, string certName = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCustomDomainProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformCustomDomainProvisioningState?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformCustomDomainValidateResult AppPlatformCustomDomainValidateResult(bool? isValid = default(bool?), string message = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformDeploymentData AppPlatformDeploymentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentProperties properties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSku sku = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentInstance AppPlatformDeploymentInstance(string name = null, string status = null, string reason = null, string discoveryStatus = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), string zone = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentProperties AppPlatformDeploymentProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformUserSourceInfo source = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentSettings deploymentSettings = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentStatus? status = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformDeploymentStatus?), bool? isActive = default(bool?), System.Collections.Generic.IEnumerable instances = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformGatewayCustomDomainData AppPlatformGatewayCustomDomainData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string gatewayCustomDomainThumbprint = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformGatewayData AppPlatformGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProperties properties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSku sku = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayInstance AppPlatformGatewayInstance(string name = null, string status = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayOperatorProperties AppPlatformGatewayOperatorProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayOperatorResourceRequirements resourceRequests = null, System.Collections.Generic.IEnumerable instances = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayOperatorResourceRequirements AppPlatformGatewayOperatorResourceRequirements(string cpu = null, string memory = null, int? instanceCount = default(int?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProperties AppPlatformGatewayProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProvisioningState?), bool? isPublic = default(bool?), System.Uri uri = null, bool? isHttpsOnly = default(bool?), Azure.ResourceManager.AppPlatform.Models.AppPlatformSsoProperties ssoProperties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayApiMetadataProperties apiMetadataProperties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayCorsProperties corsProperties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayResourceRequirements resourceRequests = null, System.Collections.Generic.IEnumerable instances = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayOperatorProperties operatorProperties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformGatewayRouteConfigData AppPlatformGatewayRouteConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayRouteConfigProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayRouteConfigProperties AppPlatformGatewayRouteConfigProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayProvisioningState?), Azure.Core.ResourceIdentifier appResourceId = null, System.Uri openApiUri = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayRouteConfigProtocol? protocol = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformGatewayRouteConfigProtocol?), System.Collections.Generic.IEnumerable routes = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformKeyVaultCertificateProperties AppPlatformKeyVaultCertificateProperties(string thumbprint = null, string issuer = null, System.DateTimeOffset? issuedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), System.DateTimeOffset? activateOn = default(System.DateTimeOffset?), string subjectName = null, System.Collections.Generic.IEnumerable dnsNames = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformCertificateProvisioningState?), System.Uri vaultUri = null, string keyVaultCertName = null, string certVersion = null, bool? isPrivateKeyExcluded = default(bool?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformLogFileUriResult AppPlatformLogFileUriResult(System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformMonitoringSettingData AppPlatformMonitoringSettingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingProperties AppPlatformMonitoringSettingProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformErrorInfo error = null, bool? isTraceEnabled = default(bool?), string appInsightsInstrumentationKey = null, double? appInsightsSamplingRate = default(double?), string appInsightsJavaAgentVersion = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult AppPlatformNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformResourceUploadResult AppPlatformResourceUploadResult(string relativePath = null, System.Uri uploadUri = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformServiceData AppPlatformServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceProperties properties = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSku sku = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceNetworkProfile AppPlatformServiceNetworkProfile(Azure.Core.ResourceIdentifier serviceRuntimeSubnetId = null, Azure.Core.ResourceIdentifier appSubnetId = null, string serviceCidr = null, string serviceRuntimeNetworkResourceGroup = null, string appNetworkResourceGroup = null, System.Collections.Generic.IEnumerable outboundPublicIPs = null, System.Collections.Generic.IEnumerable requiredTraffics = null, int? ingressConfigReadTimeoutInSeconds = default(int?), string outboundType = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceProperties AppPlatformServiceProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceNetworkProfile networkProfile = null, bool? isLogStreamPublicEndpoint = default(bool?), int? version = default(int?), string serviceInstanceId = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformServicePowerState? powerState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformServicePowerState?), bool? isZoneRedundant = default(bool?), string fqdn = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformServiceRegistryData AppPlatformServiceRegistryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryInstance AppPlatformServiceRegistryInstance(string name = null, string status = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryProperties AppPlatformServiceRegistryProperties(Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryProvisioningState? provisioningState = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryProvisioningState?), Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryResourceRequirements resourceRequests = null, System.Collections.Generic.IEnumerable instances = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRegistryResourceRequirements AppPlatformServiceRegistryResourceRequirements(string cpu = null, string memory = null, int? instanceCount = default(int?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRequiredTraffic AppPlatformServiceRequiredTraffic(string protocol = null, int? port = default(int?), System.Collections.Generic.IEnumerable ips = null, System.Collections.Generic.IEnumerable fqdns = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceTrafficDirection? direction = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceTrafficDirection?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceTestKeys AppPlatformServiceTestKeys(string primaryKey = null, string secondaryKey = null, string primaryTestEndpoint = null, string secondaryTestEndpoint = null, bool? isEnabled = default(bool?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuCapabilities AppPlatformSkuCapabilities(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuCapacity AppPlatformSkuCapacity(int minimum = 0, int? maximum = default(int?), int? @default = default(int?), Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuScaleType? scaleType = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuScaleType?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuLocationInfo AppPlatformSkuLocationInfo(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable zones = null, System.Collections.Generic.IEnumerable zoneDetails = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionInfo AppPlatformSkuRestrictionInfo(System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable zones = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictions AppPlatformSkuRestrictions(Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsType? restrictionsType = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsType?), System.Collections.Generic.IEnumerable values = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionInfo restrictionInfo = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsReasonCode? reasonCode = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuRestrictionsReasonCode?)) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuZoneDetails AppPlatformSkuZoneDetails(System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformStorageData AppPlatformStorageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformStorageProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformSupportedBuildpackData AppPlatformSupportedBuildpackData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string supportedBuildpackId = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedRuntimeVersion AppPlatformSupportedRuntimeVersion(Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedRuntimeValue? value = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedRuntimeValue?), Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedRuntimePlatform? platform = default(Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedRuntimePlatform?), string version = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackData AppPlatformSupportedStackData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSupportedStackProperties properties = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AppVnetAddons AppVnetAddons(bool? isPublicEndpoint = default(bool?), System.Uri publicEndpointUri = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.AvailableAppPlatformSku AvailableAppPlatformSku(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string name = null, string tier = null, Azure.ResourceManager.AppPlatform.Models.AppPlatformSkuCapacity capacity = null, System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable locationInfo = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.BuildServiceAgentPoolSizeProperties BuildServiceAgentPoolSizeProperties(string name = null, string cpu = null, string memory = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.ConfigServerSettingsErrorRecord ConfigServerSettingsErrorRecord(string name = null, System.Uri uri = null, System.Collections.Generic.IEnumerable messages = null) { throw null; } + public static Azure.ResourceManager.AppPlatform.Models.ConfigServerSettingsValidateResult ConfigServerSettingsValidateResult(bool? isValid = default(bool?), System.Collections.Generic.IEnumerable details = null) { throw null; } + } public partial class AvailableAppPlatformSku { internal AvailableAppPlatformSku() { } diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/ArmAppPlatformModelFactory.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/ArmAppPlatformModelFactory.cs new file mode 100644 index 000000000000..1984e6c9460b --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/ArmAppPlatformModelFactory.cs @@ -0,0 +1,1056 @@ +// 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.AppPlatform; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.AppPlatform.Models +{ + /// Model factory for models. + public static partial class ArmAppPlatformModelFactory + { + /// Initializes a new instance of AppPlatformServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of the Service resource. + /// Sku of the Service resource. + /// A new instance for mocking. + public static AppPlatformServiceData AppPlatformServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppPlatformServiceProperties properties = null, AppPlatformSku sku = null) + { + tags ??= new Dictionary(); + + return new AppPlatformServiceData(id, name, resourceType, systemData, tags, location, properties, sku); + } + + /// Initializes a new instance of AppPlatformServiceProperties. + /// Provisioning state of the Service. + /// Network profile of the Service. + /// Additional Service settings in vnet injection instance. + /// Version of the Service. + /// ServiceInstanceEntity GUID which uniquely identifies a created resource. + /// Power state of the Service. + /// + /// Fully qualified dns name of the service instance. + /// A new instance for mocking. + public static AppPlatformServiceProperties AppPlatformServiceProperties(AppPlatformServiceProvisioningState? provisioningState = null, AppPlatformServiceNetworkProfile networkProfile = null, bool? isLogStreamPublicEndpoint = null, int? version = null, string serviceInstanceId = null, AppPlatformServicePowerState? powerState = null, bool? isZoneRedundant = null, string fqdn = null) + { + return new AppPlatformServiceProperties(provisioningState, networkProfile, isLogStreamPublicEndpoint != null ? new ServiceVnetAddons(isLogStreamPublicEndpoint) : null, version, serviceInstanceId, powerState, isZoneRedundant, fqdn); + } + + /// Initializes a new instance of AppPlatformServiceNetworkProfile. + /// Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime. + /// Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps. + /// Azure Spring Apps service reserved CIDR. + /// Name of the resource group containing network resources of Azure Spring Apps Service Runtime. + /// Name of the resource group containing network resources for customer apps in Azure Spring Apps. + /// Desired outbound IP resources for Azure Spring Apps resource. + /// Required inbound or outbound traffics for Azure Spring Apps resource. + /// Ingress configuration payload for Azure Spring Apps resource. + /// The egress traffic type of Azure Spring Apps VNet instances. + /// A new instance for mocking. + public static AppPlatformServiceNetworkProfile AppPlatformServiceNetworkProfile(ResourceIdentifier serviceRuntimeSubnetId = null, ResourceIdentifier appSubnetId = null, string serviceCidr = null, string serviceRuntimeNetworkResourceGroup = null, string appNetworkResourceGroup = null, IEnumerable outboundPublicIPs = null, IEnumerable requiredTraffics = null, int? ingressConfigReadTimeoutInSeconds = null, string outboundType = null) + { + outboundPublicIPs ??= new List(); + requiredTraffics ??= new List(); + + return new AppPlatformServiceNetworkProfile(serviceRuntimeSubnetId, appSubnetId, serviceCidr, serviceRuntimeNetworkResourceGroup, appNetworkResourceGroup, outboundPublicIPs != null ? new NetworkProfileOutboundIPs(outboundPublicIPs?.ToList()) : null, requiredTraffics?.ToList(), ingressConfigReadTimeoutInSeconds != null ? new IngressConfig(ingressConfigReadTimeoutInSeconds) : null, outboundType); + } + + /// Initializes a new instance of AppPlatformServiceRequiredTraffic. + /// The protocol of required traffic. + /// The port of required traffic. + /// The ip list of required traffic. + /// The FQDN list of required traffic. + /// The direction of required traffic. + /// A new instance for mocking. + public static AppPlatformServiceRequiredTraffic AppPlatformServiceRequiredTraffic(string protocol = null, int? port = null, IEnumerable ips = null, IEnumerable fqdns = null, AppPlatformServiceTrafficDirection? direction = null) + { + ips ??= new List(); + fqdns ??= new List(); + + return new AppPlatformServiceRequiredTraffic(protocol, port, ips?.ToList(), fqdns?.ToList(), direction); + } + + /// Initializes a new instance of AppPlatformServiceTestKeys. + /// Primary key. + /// Secondary key. + /// Primary test endpoint. + /// Secondary test endpoint. + /// Indicates whether the test endpoint feature enabled or not. + /// A new instance for mocking. + public static AppPlatformServiceTestKeys AppPlatformServiceTestKeys(string primaryKey = null, string secondaryKey = null, string primaryTestEndpoint = null, string secondaryTestEndpoint = null, bool? isEnabled = null) + { + return new AppPlatformServiceTestKeys(primaryKey, secondaryKey, primaryTestEndpoint, secondaryTestEndpoint, isEnabled); + } + + /// Initializes a new instance of AppPlatformConfigServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the Config Server resource. + /// A new instance for mocking. + public static AppPlatformConfigServerData AppPlatformConfigServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformConfigServerProperties properties = null) + { + return new AppPlatformConfigServerData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformConfigServerProperties. + /// State of the config server. + /// Error when apply config server settings. + /// Settings of config server. + /// A new instance for mocking. + public static AppPlatformConfigServerProperties AppPlatformConfigServerProperties(AppPlatformConfigServerState? provisioningState = null, AppPlatformErrorInfo error = null, AppPlatformConfigServerGitProperty configServerGitProperty = null) + { + return new AppPlatformConfigServerProperties(provisioningState, error, configServerGitProperty != null ? new ConfigServerSettings(configServerGitProperty) : null); + } + + /// Initializes a new instance of ConfigServerSettingsValidateResult. + /// Indicate if the config server settings are valid. + /// The detail validation results. + /// A new instance for mocking. + public static ConfigServerSettingsValidateResult ConfigServerSettingsValidateResult(bool? isValid = null, IEnumerable details = null) + { + details ??= new List(); + + return new ConfigServerSettingsValidateResult(isValid, details?.ToList()); + } + + /// Initializes a new instance of ConfigServerSettingsErrorRecord. + /// The name of the config server settings error record. + /// The uri of the config server settings error record. + /// The detail error messages of the record. + /// A new instance for mocking. + public static ConfigServerSettingsErrorRecord ConfigServerSettingsErrorRecord(string name = null, Uri uri = null, IEnumerable messages = null) + { + messages ??= new List(); + + return new ConfigServerSettingsErrorRecord(name, uri, messages?.ToList()); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Application Configuration Service properties payload. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceData AppPlatformConfigurationServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformConfigurationServiceProperties properties = null) + { + return new AppPlatformConfigurationServiceData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceProperties. + /// State of the Application Configuration Service. + /// The requested resource quantity for required CPU and Memory. + /// Collection of instances belong to Application Configuration Service. + /// The settings of Application Configuration Service. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceProperties AppPlatformConfigurationServiceProperties(AppPlatformConfigurationServiceProvisioningState? provisioningState = null, AppPlatformConfigurationServiceRequirements resourceRequests = null, IEnumerable instances = null, IEnumerable configurationServiceGitRepositories = null) + { + instances ??= new List(); + configurationServiceGitRepositories ??= new List(); + + return new AppPlatformConfigurationServiceProperties(provisioningState, resourceRequests, instances?.ToList(), configurationServiceGitRepositories != null ? new AppPlatformConfigurationServiceSettings(new ConfigurationServiceGitProperty(configurationServiceGitRepositories?.ToList())) : null); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceRequirements. + /// Cpu allocated to each Application Configuration Service instance. + /// Memory allocated to each Application Configuration Service instance. + /// Instance count of the Application Configuration Service. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceRequirements AppPlatformConfigurationServiceRequirements(string cpu = null, string memory = null, int? instanceCount = null) + { + return new AppPlatformConfigurationServiceRequirements(cpu, memory, instanceCount); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceInstance. + /// Name of the Application Configuration Service instance. + /// Status of the Application Configuration Service instance. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceInstance AppPlatformConfigurationServiceInstance(string name = null, string status = null) + { + return new AppPlatformConfigurationServiceInstance(name, status); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceSettingsValidateResult. + /// Validation result for configuration service settings. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceSettingsValidateResult AppPlatformConfigurationServiceSettingsValidateResult(AppPlatformConfigurationServiceGitValidateResult gitPropertyValidationResult = null) + { + return new AppPlatformConfigurationServiceSettingsValidateResult(gitPropertyValidationResult); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceGitValidateResult. + /// Indicate if the configuration service settings are valid. + /// The detail validation results. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceGitValidateResult AppPlatformConfigurationServiceGitValidateResult(bool? isValid = null, IEnumerable gitReposValidationResult = null) + { + gitReposValidationResult ??= new List(); + + return new AppPlatformConfigurationServiceGitValidateResult(isValid, gitReposValidationResult?.ToList()); + } + + /// Initializes a new instance of AppPlatformConfigurationServiceGitReposValidationMessages. + /// The name of the configuration service git repository. + /// Detailed validation messages. + /// A new instance for mocking. + public static AppPlatformConfigurationServiceGitReposValidationMessages AppPlatformConfigurationServiceGitReposValidationMessages(string name = null, IEnumerable messages = null) + { + messages ??= new List(); + + return new AppPlatformConfigurationServiceGitReposValidationMessages(name, messages?.ToList()); + } + + /// Initializes a new instance of AppPlatformServiceRegistryData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Service Registry properties payload. + /// A new instance for mocking. + public static AppPlatformServiceRegistryData AppPlatformServiceRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformServiceRegistryProperties properties = null) + { + return new AppPlatformServiceRegistryData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformServiceRegistryProperties. + /// State of the Service Registry. + /// The requested resource quantity for required CPU and Memory. + /// Collection of instances belong to Service Registry. + /// A new instance for mocking. + public static AppPlatformServiceRegistryProperties AppPlatformServiceRegistryProperties(AppPlatformServiceRegistryProvisioningState? provisioningState = null, AppPlatformServiceRegistryResourceRequirements resourceRequests = null, IEnumerable instances = null) + { + instances ??= new List(); + + return new AppPlatformServiceRegistryProperties(provisioningState, resourceRequests, instances?.ToList()); + } + + /// Initializes a new instance of AppPlatformServiceRegistryResourceRequirements. + /// Cpu allocated to each Service Registry instance. + /// Memory allocated to each Service Registry instance. + /// Instance count of the Service Registry. + /// A new instance for mocking. + public static AppPlatformServiceRegistryResourceRequirements AppPlatformServiceRegistryResourceRequirements(string cpu = null, string memory = null, int? instanceCount = null) + { + return new AppPlatformServiceRegistryResourceRequirements(cpu, memory, instanceCount); + } + + /// Initializes a new instance of AppPlatformServiceRegistryInstance. + /// Name of the Service Registry instance. + /// Status of the Service Registry instance. + /// A new instance for mocking. + public static AppPlatformServiceRegistryInstance AppPlatformServiceRegistryInstance(string name = null, string status = null) + { + return new AppPlatformServiceRegistryInstance(name, status); + } + + /// Initializes a new instance of AppPlatformBuildServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the build resource. + /// A new instance for mocking. + public static AppPlatformBuildServiceData AppPlatformBuildServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuildServiceProperties properties = null) + { + return new AppPlatformBuildServiceData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildServiceProperties. + /// The installed KPack version in this build service. + /// Provisioning state of the KPack build result. + /// The runtime resource configuration of this build service. + /// A new instance for mocking. + public static AppPlatformBuildServiceProperties AppPlatformBuildServiceProperties(string kPackVersion = null, AppPlatformBuildServiceProvisioningState? provisioningState = null, AppPlatformBuildServiceResourceRequirements resourceRequests = null) + { + return new AppPlatformBuildServiceProperties(kPackVersion, provisioningState, resourceRequests); + } + + /// Initializes a new instance of AppPlatformBuildServiceResourceRequirements. + /// vCPU allocated to the entire build service node pool. + /// Memory allocated to the entire build service node pool. + /// A new instance for mocking. + public static AppPlatformBuildServiceResourceRequirements AppPlatformBuildServiceResourceRequirements(string cpu = null, string memory = null) + { + return new AppPlatformBuildServiceResourceRequirements(cpu, memory); + } + + /// Initializes a new instance of AppPlatformBuildData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the build resource. + /// A new instance for mocking. + public static AppPlatformBuildData AppPlatformBuildData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuildProperties properties = null) + { + return new AppPlatformBuildData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildProperties. + /// The relative path of source code. + /// The resource id of builder to build the source code. + /// The resource id of agent pool. + /// Provisioning state of the KPack build result. + /// The environment variables for this build. + /// The build result triggered by this build. + /// The customized build resource for this build. + /// A new instance for mocking. + public static AppPlatformBuildProperties AppPlatformBuildProperties(string relativePath = null, string builder = null, string agentPool = null, AppPlatformBuildProvisioningState? provisioningState = null, IDictionary env = null, ResourceIdentifier triggeredBuildResultId = null, AppPlatformBuildResourceRequirements resourceRequests = null) + { + env ??= new Dictionary(); + + return new AppPlatformBuildProperties(relativePath, builder, agentPool, provisioningState, env, triggeredBuildResultId != null ? ResourceManagerModelFactory.SubResource(triggeredBuildResultId) : null, resourceRequests); + } + + /// Initializes a new instance of AppPlatformBuildpackBindingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of a buildpack binding. + /// A new instance for mocking. + public static AppPlatformBuildpackBindingData AppPlatformBuildpackBindingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuildpackBindingProperties properties = null) + { + return new AppPlatformBuildpackBindingData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildpackBindingProperties. + /// Buildpack Binding Type. + /// State of the Buildpack Binding. + /// The object describes the buildpack binding launch properties. + /// A new instance for mocking. + public static AppPlatformBuildpackBindingProperties AppPlatformBuildpackBindingProperties(BuildpackBindingType? bindingType = null, BuildpackBindingProvisioningState? provisioningState = null, BuildpackBindingLaunchProperties launchProperties = null) + { + return new AppPlatformBuildpackBindingProperties(bindingType, provisioningState, launchProperties); + } + + /// Initializes a new instance of AppPlatformBuildResultData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the build result resource. + /// A new instance for mocking. + public static AppPlatformBuildResultData AppPlatformBuildResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuildResultProperties properties = null) + { + return new AppPlatformBuildResultData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildResultProperties. + /// The name of this build result. + /// Provisioning state of the KPack build result. + /// The build pod name which can be used to get the build log streaming. + /// All of the build stage (init-container and container) resources in build pod. + /// A new instance for mocking. + public static AppPlatformBuildResultProperties AppPlatformBuildResultProperties(string name = null, AppPlatformBuildResultProvisioningState? provisioningState = null, string buildPodName = null, IEnumerable buildStages = null) + { + buildStages ??= new List(); + + return new AppPlatformBuildResultProperties(name, provisioningState, buildPodName, buildStages?.ToList()); + } + + /// Initializes a new instance of AppPlatformBuildStageProperties. + /// The name of this build stage resource. + /// The provisioning state of this build stage resource. + /// A new instance for mocking. + public static AppPlatformBuildStageProperties AppPlatformBuildStageProperties(string name = null, KPackBuildStageProvisioningState? status = null) + { + return new AppPlatformBuildStageProperties(name, status); + } + + /// Initializes a new instance of AppPlatformBuildResultLog. + /// The public download URL of this build result log. + /// A new instance for mocking. + public static AppPlatformBuildResultLog AppPlatformBuildResultLog(Uri blobUri = null) + { + return new AppPlatformBuildResultLog(blobUri); + } + + /// Initializes a new instance of AppPlatformBuilderData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Property of the Builder resource. + /// A new instance for mocking. + public static AppPlatformBuilderData AppPlatformBuilderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuilderProperties properties = null) + { + return new AppPlatformBuilderData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuilderProperties. + /// Builder provision status. + /// Builder cluster stack property. + /// Builder buildpack groups. + /// A new instance for mocking. + public static AppPlatformBuilderProperties AppPlatformBuilderProperties(AppPlatformBuilderProvisioningState? provisioningState = null, AppPlatformClusterStackProperties stack = null, IEnumerable buildpackGroups = null) + { + buildpackGroups ??= new List(); + + return new AppPlatformBuilderProperties(provisioningState, stack, buildpackGroups?.ToList()); + } + + /// Initializes a new instance of AppPlatformResourceUploadResult. + /// Source relative path. + /// Upload URL. + /// A new instance for mocking. + public static AppPlatformResourceUploadResult AppPlatformResourceUploadResult(string relativePath = null, Uri uploadUri = null) + { + return new AppPlatformResourceUploadResult(relativePath, uploadUri); + } + + /// Initializes a new instance of AppPlatformSupportedBuildpackData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Supported buildpack resource properties. + /// A new instance for mocking. + public static AppPlatformSupportedBuildpackData AppPlatformSupportedBuildpackData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string supportedBuildpackId = null) + { + return new AppPlatformSupportedBuildpackData(id, name, resourceType, systemData, supportedBuildpackId != null ? new SupportedBuildpackResourceProperties(supportedBuildpackId) : null); + } + + /// Initializes a new instance of AppPlatformSupportedStackData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Supported stack resource properties. + /// A new instance for mocking. + public static AppPlatformSupportedStackData AppPlatformSupportedStackData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformSupportedStackProperties properties = null) + { + return new AppPlatformSupportedStackData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildServiceAgentPoolData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// build service agent pool properties. + /// A new instance for mocking. + public static AppPlatformBuildServiceAgentPoolData AppPlatformBuildServiceAgentPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBuildServiceAgentPoolProperties properties = null) + { + return new AppPlatformBuildServiceAgentPoolData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBuildServiceAgentPoolProperties. + /// Provisioning state of the build service agent pool. + /// build service agent pool size properties. + /// A new instance for mocking. + public static AppPlatformBuildServiceAgentPoolProperties AppPlatformBuildServiceAgentPoolProperties(string provisioningState = null, BuildServiceAgentPoolSizeProperties poolSize = null) + { + return new AppPlatformBuildServiceAgentPoolProperties(provisioningState, poolSize); + } + + /// Initializes a new instance of BuildServiceAgentPoolSizeProperties. + /// The name of build service agent pool size. + /// The cpu property of build service agent pool size. + /// The memory property of build service agent pool size. + /// A new instance for mocking. + public static BuildServiceAgentPoolSizeProperties BuildServiceAgentPoolSizeProperties(string name = null, string cpu = null, string memory = null) + { + return new BuildServiceAgentPoolSizeProperties(name, cpu, memory); + } + + /// Initializes a new instance of AppPlatformMonitoringSettingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the Monitoring Setting resource. + /// A new instance for mocking. + public static AppPlatformMonitoringSettingData AppPlatformMonitoringSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformMonitoringSettingProperties properties = null) + { + return new AppPlatformMonitoringSettingData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformMonitoringSettingProperties. + /// State of the Monitoring Setting. + /// Error when apply Monitoring Setting changes. + /// Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not. + /// Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings. + /// Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]. + /// Indicates the versions of application insight agent. + /// A new instance for mocking. + public static AppPlatformMonitoringSettingProperties AppPlatformMonitoringSettingProperties(AppPlatformMonitoringSettingState? provisioningState = null, AppPlatformErrorInfo error = null, bool? isTraceEnabled = null, string appInsightsInstrumentationKey = null, double? appInsightsSamplingRate = null, string appInsightsJavaAgentVersion = null) + { + return new AppPlatformMonitoringSettingProperties(provisioningState, error, isTraceEnabled, appInsightsInstrumentationKey, appInsightsSamplingRate, appInsightsJavaAgentVersion != null ? new ApplicationInsightsAgentVersions(appInsightsJavaAgentVersion) : null); + } + + /// Initializes a new instance of AppPlatformAppData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the App resource. + /// The Managed Identity type of the app resource. + /// The GEO location of the application, always the same with its parent resource. + /// A new instance for mocking. + public static AppPlatformAppData AppPlatformAppData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformAppProperties properties = null, ManagedServiceIdentity identity = null, AzureLocation? location = null) + { + return new AppPlatformAppData(id, name, resourceType, systemData, properties, identity, location); + } + + /// Initializes a new instance of AppPlatformAppProperties. + /// Indicates whether the App exposes public endpoint. + /// URL of the App. + /// Collection of addons. + /// Provisioning state of the App. + /// Fully qualified dns Name. + /// Indicate if only https is allowed. + /// Temporary disk settings. + /// Persistent disk settings. + /// List of custom persistent disks. + /// Indicate if end to end TLS is enabled. + /// Collection of loaded certificates. + /// Additional App settings in vnet injection instance. + /// App ingress settings payload. + /// A new instance for mocking. + public static AppPlatformAppProperties AppPlatformAppProperties(bool? isPublic = null, Uri uri = null, IDictionary> addonConfigs = null, AppPlatformAppProvisioningState? provisioningState = null, string fqdn = null, bool? isHttpsOnly = null, AppTemporaryDisk temporaryDisk = null, AppPersistentDisk persistentDisk = null, IEnumerable customPersistentDisks = null, bool? isEndToEndTlsEnabled = null, IEnumerable loadedCertificates = null, AppVnetAddons vnetAddons = null, AppIngressSettings ingressSettings = null) + { + addonConfigs ??= new Dictionary>(); + customPersistentDisks ??= new List(); + loadedCertificates ??= new List(); + + return new AppPlatformAppProperties(isPublic, uri, addonConfigs, provisioningState, fqdn, isHttpsOnly, temporaryDisk, persistentDisk, customPersistentDisks?.ToList(), isEndToEndTlsEnabled, loadedCertificates?.ToList(), vnetAddons, ingressSettings); + } + + /// Initializes a new instance of AppPersistentDisk. + /// Size of the persistent disk in GB. + /// Size of the used persistent disk in GB. + /// Mount path of the persistent disk. + /// A new instance for mocking. + public static AppPersistentDisk AppPersistentDisk(int? sizeInGB = null, int? usedInGB = null, string mountPath = null) + { + return new AppPersistentDisk(sizeInGB, usedInGB, mountPath); + } + + /// Initializes a new instance of AppVnetAddons. + /// Indicates whether the App in vnet injection instance exposes endpoint which could be accessed from internet. + /// URL of the App in vnet injection instance which could be accessed from internet. + /// A new instance for mocking. + public static AppVnetAddons AppVnetAddons(bool? isPublicEndpoint = null, Uri publicEndpointUri = null) + { + return new AppVnetAddons(isPublicEndpoint, publicEndpointUri); + } + + /// Initializes a new instance of AppPlatformBindingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the Binding resource. + /// A new instance for mocking. + public static AppPlatformBindingData AppPlatformBindingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformBindingProperties properties = null) + { + return new AppPlatformBindingData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformBindingProperties. + /// The name of the bound resource. + /// The standard Azure resource type of the bound resource. + /// The Azure resource id of the bound resource. + /// The key of the bound resource. + /// Binding parameters of the Binding resource. + /// The generated Spring Boot property file for this binding. The secret will be deducted. + /// Creation time of the Binding resource. + /// Update time of the Binding resource. + /// A new instance for mocking. + public static AppPlatformBindingProperties AppPlatformBindingProperties(string resourceName = null, string resourceType = null, ResourceIdentifier resourceId = null, string key = null, IDictionary bindingParameters = null, string generatedProperties = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null) + { + bindingParameters ??= new Dictionary(); + + return new AppPlatformBindingProperties(resourceName, resourceType, resourceId, key, bindingParameters, generatedProperties, createdOn, updatedOn); + } + + /// Initializes a new instance of AppPlatformStorageData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Properties of the storage resource payload. + /// 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 . + /// + /// A new instance for mocking. + public static AppPlatformStorageData AppPlatformStorageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformStorageProperties properties = null) + { + return new AppPlatformStorageData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformCertificateData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Properties of the certificate resource payload. + /// 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 AppPlatformCertificateData AppPlatformCertificateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformCertificateProperties properties = null) + { + return new AppPlatformCertificateData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformCertificateProperties. + /// The type of the certificate source. + /// The thumbprint of certificate. + /// The issuer of certificate. + /// The issue date of certificate. + /// The expiration date of certificate. + /// The activate date of certificate. + /// The subject name of certificate. + /// The domain list of certificate. + /// Provisioning state of the Certificate. + /// A new instance for mocking. + public static AppPlatformCertificateProperties AppPlatformCertificateProperties(string certificatePropertiesType = null, string thumbprint = null, string issuer = null, DateTimeOffset? issuedOn = null, DateTimeOffset? expireOn = null, DateTimeOffset? activateOn = null, string subjectName = null, IEnumerable dnsNames = null, AppPlatformCertificateProvisioningState? provisioningState = null) + { + dnsNames ??= new List(); + + return new UnknownCertificateProperties(certificatePropertiesType, thumbprint, issuer, issuedOn, expireOn, activateOn, subjectName, dnsNames?.ToList(), provisioningState); + } + + /// Initializes a new instance of AppPlatformNameAvailabilityResult. + /// Indicates whether the name is available. + /// Reason why the name is not available. + /// Message why the name is not available. + /// A new instance for mocking. + public static AppPlatformNameAvailabilityResult AppPlatformNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) + { + return new AppPlatformNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of AppPlatformCustomDomainData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the custom domain resource. + /// A new instance for mocking. + public static AppPlatformCustomDomainData AppPlatformCustomDomainData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformCustomDomainProperties properties = null) + { + return new AppPlatformCustomDomainData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformCustomDomainProperties. + /// The thumbprint of bound certificate. + /// The app name of domain. + /// The bound certificate name of domain. + /// Provisioning state of the Domain. + /// A new instance for mocking. + public static AppPlatformCustomDomainProperties AppPlatformCustomDomainProperties(string thumbprint = null, string appName = null, string certName = null, AppPlatformCustomDomainProvisioningState? provisioningState = null) + { + return new AppPlatformCustomDomainProperties(thumbprint, appName, certName, provisioningState); + } + + /// Initializes a new instance of AppPlatformCustomDomainValidateResult. + /// Indicates if domain name is valid. + /// Message of why domain name is invalid. + /// A new instance for mocking. + public static AppPlatformCustomDomainValidateResult AppPlatformCustomDomainValidateResult(bool? isValid = null, string message = null) + { + return new AppPlatformCustomDomainValidateResult(isValid, message); + } + + /// Initializes a new instance of AppPlatformDeploymentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of the Deployment resource. + /// Sku of the Deployment resource. + /// A new instance for mocking. + public static AppPlatformDeploymentData AppPlatformDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformDeploymentProperties properties = null, AppPlatformSku sku = null) + { + return new AppPlatformDeploymentData(id, name, resourceType, systemData, properties, sku); + } + + /// Initializes a new instance of AppPlatformDeploymentProperties. + /// + /// Uploaded source information of the deployment. + /// 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 . + /// + /// Deployment settings of the Deployment. + /// Provisioning state of the Deployment. + /// Status of the Deployment. + /// Indicates whether the Deployment is active. + /// Collection of instances belong to the Deployment. + /// A new instance for mocking. + public static AppPlatformDeploymentProperties AppPlatformDeploymentProperties(AppPlatformUserSourceInfo source = null, AppPlatformDeploymentSettings deploymentSettings = null, AppPlatformDeploymentProvisioningState? provisioningState = null, AppPlatformDeploymentStatus? status = null, bool? isActive = null, IEnumerable instances = null) + { + instances ??= new List(); + + return new AppPlatformDeploymentProperties(source, deploymentSettings, provisioningState, status, isActive, instances?.ToList()); + } + + /// Initializes a new instance of AppPlatformDeploymentInstance. + /// Name of the deployment instance. + /// Status of the deployment instance. + /// Failed reason of the deployment instance. + /// Discovery status of the deployment instance. + /// Start time of the deployment instance. + /// Availability zone information of the deployment instance. + /// A new instance for mocking. + public static AppPlatformDeploymentInstance AppPlatformDeploymentInstance(string name = null, string status = null, string reason = null, string discoveryStatus = null, DateTimeOffset? startedOn = null, string zone = null) + { + return new AppPlatformDeploymentInstance(name, status, reason, discoveryStatus, startedOn, zone); + } + + /// Initializes a new instance of ApplicationRemoteDebuggingConfig. + /// Application debugging port. + /// Indicate if remote debugging is enabled. + /// A new instance for mocking. + public static ApplicationRemoteDebuggingConfig ApplicationRemoteDebuggingConfig(int? port = null, bool? isEnabled = null) + { + return new ApplicationRemoteDebuggingConfig(port, isEnabled); + } + + /// Initializes a new instance of AppPlatformLogFileUriResult. + /// URL of the log file. + /// is null. + /// A new instance for mocking. + public static AppPlatformLogFileUriResult AppPlatformLogFileUriResult(Uri uri = null) + { + if (uri == null) + { + throw new ArgumentNullException(nameof(uri)); + } + + return new AppPlatformLogFileUriResult(uri); + } + + /// Initializes a new instance of AppPlatformSupportedRuntimeVersion. + /// The raw value which could be passed to deployment CRUD operations. + /// The platform of this runtime version (possible values: "Java" or ".NET"). + /// The detailed version (major.minor) of the platform. + /// A new instance for mocking. + public static AppPlatformSupportedRuntimeVersion AppPlatformSupportedRuntimeVersion(AppPlatformSupportedRuntimeValue? value = null, AppPlatformSupportedRuntimePlatform? platform = null, string version = null) + { + return new AppPlatformSupportedRuntimeVersion(value, platform, version); + } + + /// Initializes a new instance of AvailableAppPlatformSku. + /// Gets the type of resource the SKU applies to. + /// Gets the name of SKU. + /// Gets the tier of SKU. + /// Gets the capacity of SKU. + /// Gets the set of locations that the SKU is available. + /// Gets a list of locations and availability zones in those locations where the SKU is available. + /// + /// Gets the restrictions because of which SKU cannot be used. This is + /// empty if there are no restrictions. + /// + /// A new instance for mocking. + public static AvailableAppPlatformSku AvailableAppPlatformSku(ResourceType? resourceType = null, string name = null, string tier = null, AppPlatformSkuCapacity capacity = null, IEnumerable locations = null, IEnumerable locationInfo = null, IEnumerable restrictions = null) + { + locations ??= new List(); + locationInfo ??= new List(); + restrictions ??= new List(); + + return new AvailableAppPlatformSku(resourceType, name, tier, capacity, locations?.ToList(), locationInfo?.ToList(), restrictions?.ToList()); + } + + /// Initializes a new instance of AppPlatformSkuCapacity. + /// Gets or sets the minimum. + /// Gets or sets the maximum. + /// Gets or sets the default. + /// Gets or sets the type of the scale. + /// A new instance for mocking. + public static AppPlatformSkuCapacity AppPlatformSkuCapacity(int minimum = default, int? maximum = null, int? @default = null, AppPlatformSkuScaleType? scaleType = null) + { + return new AppPlatformSkuCapacity(minimum, maximum, @default, scaleType); + } + + /// Initializes a new instance of AppPlatformSkuLocationInfo. + /// Gets location of the SKU. + /// Gets list of availability zones where the SKU is supported. + /// Gets details of capabilities available to a SKU in specific zones. + /// A new instance for mocking. + public static AppPlatformSkuLocationInfo AppPlatformSkuLocationInfo(AzureLocation? location = null, IEnumerable zones = null, IEnumerable zoneDetails = null) + { + zones ??= new List(); + zoneDetails ??= new List(); + + return new AppPlatformSkuLocationInfo(location, zones?.ToList(), zoneDetails?.ToList()); + } + + /// Initializes a new instance of AppPlatformSkuZoneDetails. + /// + /// Gets the set of zones that the SKU is available in with the + /// specified capabilities. + /// + /// + /// Gets a list of capabilities that are available for the SKU in the + /// specified list of zones. + /// + /// A new instance for mocking. + public static AppPlatformSkuZoneDetails AppPlatformSkuZoneDetails(IEnumerable name = null, IEnumerable capabilities = null) + { + name ??= new List(); + capabilities ??= new List(); + + return new AppPlatformSkuZoneDetails(name?.ToList(), capabilities?.ToList()); + } + + /// Initializes a new instance of AppPlatformSkuCapabilities. + /// Gets an invariant to describe the feature. + /// Gets an invariant if the feature is measured by quantity. + /// A new instance for mocking. + public static AppPlatformSkuCapabilities AppPlatformSkuCapabilities(string name = null, string value = null) + { + return new AppPlatformSkuCapabilities(name, value); + } + + /// Initializes a new instance of AppPlatformSkuRestrictions. + /// Gets the type of restrictions. Possible values include: 'Location', 'Zone'. + /// + /// Gets the value of restrictions. If the restriction type is set to + /// location. This would be different locations where the SKU is restricted. + /// + /// Gets the information about the restriction where the SKU cannot be used. + /// Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + /// A new instance for mocking. + public static AppPlatformSkuRestrictions AppPlatformSkuRestrictions(AppPlatformSkuRestrictionsType? restrictionsType = null, IEnumerable values = null, AppPlatformSkuRestrictionInfo restrictionInfo = null, AppPlatformSkuRestrictionsReasonCode? reasonCode = null) + { + values ??= new List(); + + return new AppPlatformSkuRestrictions(restrictionsType, values?.ToList(), restrictionInfo, reasonCode); + } + + /// Initializes a new instance of AppPlatformSkuRestrictionInfo. + /// Gets locations where the SKU is restricted. + /// Gets list of availability zones where the SKU is restricted. + /// A new instance for mocking. + public static AppPlatformSkuRestrictionInfo AppPlatformSkuRestrictionInfo(IEnumerable locations = null, IEnumerable zones = null) + { + locations ??= new List(); + zones ??= new List(); + + return new AppPlatformSkuRestrictionInfo(locations?.ToList(), zones?.ToList()); + } + + /// Initializes a new instance of AppPlatformGatewayData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Spring Cloud Gateway properties payload. + /// Sku of the Spring Cloud Gateway resource. + /// A new instance for mocking. + public static AppPlatformGatewayData AppPlatformGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformGatewayProperties properties = null, AppPlatformSku sku = null) + { + return new AppPlatformGatewayData(id, name, resourceType, systemData, properties, sku); + } + + /// Initializes a new instance of AppPlatformGatewayProperties. + /// State of the Spring Cloud Gateway. + /// Indicates whether the Spring Cloud Gateway exposes endpoint. + /// URL of the Spring Cloud Gateway, exposed when 'public' is true. + /// Indicate if only https is allowed. + /// Single sign-on related configuration. + /// API metadata property for Spring Cloud Gateway. + /// Cross-Origin Resource Sharing property. + /// The requested resource quantity for required CPU and Memory. + /// Collection of instances belong to Spring Cloud Gateway. + /// Properties of the Spring Cloud Gateway Operator. + /// A new instance for mocking. + public static AppPlatformGatewayProperties AppPlatformGatewayProperties(AppPlatformGatewayProvisioningState? provisioningState = null, bool? isPublic = null, Uri uri = null, bool? isHttpsOnly = null, AppPlatformSsoProperties ssoProperties = null, AppPlatformGatewayApiMetadataProperties apiMetadataProperties = null, AppPlatformGatewayCorsProperties corsProperties = null, AppPlatformGatewayResourceRequirements resourceRequests = null, IEnumerable instances = null, AppPlatformGatewayOperatorProperties operatorProperties = null) + { + instances ??= new List(); + + return new AppPlatformGatewayProperties(provisioningState, isPublic, uri, isHttpsOnly, ssoProperties, apiMetadataProperties, corsProperties, resourceRequests, instances?.ToList(), operatorProperties); + } + + /// Initializes a new instance of AppPlatformGatewayInstance. + /// Name of the Spring Cloud Gateway instance. + /// Status of the Spring Cloud Gateway instance. + /// A new instance for mocking. + public static AppPlatformGatewayInstance AppPlatformGatewayInstance(string name = null, string status = null) + { + return new AppPlatformGatewayInstance(name, status); + } + + /// Initializes a new instance of AppPlatformGatewayOperatorProperties. + /// The requested resource quantity for required CPU and Memory. + /// Collection of instances belong to Spring Cloud Gateway operator. + /// A new instance for mocking. + public static AppPlatformGatewayOperatorProperties AppPlatformGatewayOperatorProperties(AppPlatformGatewayOperatorResourceRequirements resourceRequests = null, IEnumerable instances = null) + { + instances ??= new List(); + + return new AppPlatformGatewayOperatorProperties(resourceRequests, instances?.ToList()); + } + + /// Initializes a new instance of AppPlatformGatewayOperatorResourceRequirements. + /// Cpu allocated to each Spring Cloud Gateway Operator instance. + /// Memory allocated to each Spring Cloud Gateway Operator instance. + /// Instance count of the Spring Cloud Gateway Operator. + /// A new instance for mocking. + public static AppPlatformGatewayOperatorResourceRequirements AppPlatformGatewayOperatorResourceRequirements(string cpu = null, string memory = null, int? instanceCount = null) + { + return new AppPlatformGatewayOperatorResourceRequirements(cpu, memory, instanceCount); + } + + /// Initializes a new instance of AppPlatformGatewayRouteConfigData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// API route config of the Spring Cloud Gateway. + /// A new instance for mocking. + public static AppPlatformGatewayRouteConfigData AppPlatformGatewayRouteConfigData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformGatewayRouteConfigProperties properties = null) + { + return new AppPlatformGatewayRouteConfigData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of AppPlatformGatewayRouteConfigProperties. + /// State of the Spring Cloud Gateway route config. + /// The resource Id of the Azure Spring Apps app, required unless route defines `uri`. + /// OpenAPI properties of Spring Cloud Gateway route config. + /// Protocol of routed Azure Spring Apps applications. + /// Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`. + /// A new instance for mocking. + public static AppPlatformGatewayRouteConfigProperties AppPlatformGatewayRouteConfigProperties(AppPlatformGatewayProvisioningState? provisioningState = null, ResourceIdentifier appResourceId = null, Uri openApiUri = null, AppPlatformGatewayRouteConfigProtocol? protocol = null, IEnumerable routes = null) + { + routes ??= new List(); + + return new AppPlatformGatewayRouteConfigProperties(provisioningState, appResourceId, openApiUri != null ? new GatewayRouteConfigOpenApiProperties(openApiUri) : null, protocol, routes?.ToList()); + } + + /// Initializes a new instance of AppPlatformGatewayCustomDomainData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The properties of custom domain for Spring Cloud Gateway. + /// A new instance for mocking. + public static AppPlatformGatewayCustomDomainData AppPlatformGatewayCustomDomainData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string gatewayCustomDomainThumbprint = null) + { + return new AppPlatformGatewayCustomDomainData(id, name, resourceType, systemData, gatewayCustomDomainThumbprint != null ? new GatewayCustomDomainProperties(gatewayCustomDomainThumbprint) : null); + } + + /// Initializes a new instance of AppPlatformApiPortalData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// API portal properties payload. + /// Sku of the API portal resource. + /// A new instance for mocking. + public static AppPlatformApiPortalData AppPlatformApiPortalData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppPlatformApiPortalProperties properties = null, AppPlatformSku sku = null) + { + return new AppPlatformApiPortalData(id, name, resourceType, systemData, properties, sku); + } + + /// Initializes a new instance of AppPlatformApiPortalProperties. + /// State of the API portal. + /// Indicates whether the API portal exposes endpoint. + /// URL of the API portal, exposed when 'public' is true. + /// Indicate if only https is allowed. + /// The array of resource Ids of gateway to integrate with API portal. + /// Collection of OpenAPI source URL locations. + /// Single sign-on related configuration. + /// The requested resource quantity for required CPU and Memory. + /// Collection of instances belong to API portal. + /// A new instance for mocking. + public static AppPlatformApiPortalProperties AppPlatformApiPortalProperties(AppPlatformApiPortalProvisioningState? provisioningState = null, bool? isPublic = null, Uri uri = null, bool? isHttpsOnly = null, IEnumerable gatewayIds = null, IEnumerable sourceUris = null, AppPlatformSsoProperties ssoProperties = null, AppPlatformApiPortalResourceRequirements resourceRequests = null, IEnumerable instances = null) + { + gatewayIds ??= new List(); + sourceUris ??= new List(); + instances ??= new List(); + + return new AppPlatformApiPortalProperties(provisioningState, isPublic, uri, isHttpsOnly, gatewayIds?.ToList(), sourceUris?.ToList(), ssoProperties, resourceRequests, instances?.ToList()); + } + + /// Initializes a new instance of AppPlatformApiPortalResourceRequirements. + /// Cpu allocated to each API portal instance. + /// Memory allocated to each API portal instance. + /// A new instance for mocking. + public static AppPlatformApiPortalResourceRequirements AppPlatformApiPortalResourceRequirements(string cpu = null, string memory = null) + { + return new AppPlatformApiPortalResourceRequirements(cpu, memory); + } + + /// Initializes a new instance of AppPlatformApiPortalInstance. + /// Name of the API portal instance. + /// Status of the API portal instance. + /// A new instance for mocking. + public static AppPlatformApiPortalInstance AppPlatformApiPortalInstance(string name = null, string status = null) + { + return new AppPlatformApiPortalInstance(name, status); + } + + /// Initializes a new instance of AppPlatformApiPortalCustomDomainData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The properties of custom domain for API portal. + /// A new instance for mocking. + public static AppPlatformApiPortalCustomDomainData AppPlatformApiPortalCustomDomainData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string apiPortalCustomDomainThumbprint = null) + { + return new AppPlatformApiPortalCustomDomainData(id, name, resourceType, systemData, apiPortalCustomDomainThumbprint != null ? new ApiPortalCustomDomainProperties(apiPortalCustomDomainThumbprint) : null); + } + + /// Initializes a new instance of AppPlatformKeyVaultCertificateProperties. + /// The thumbprint of certificate. + /// The issuer of certificate. + /// The issue date of certificate. + /// The expiration date of certificate. + /// The activate date of certificate. + /// The subject name of certificate. + /// The domain list of certificate. + /// Provisioning state of the Certificate. + /// The vault uri of user key vault. + /// The certificate name of key vault. + /// The certificate version of key vault. + /// Optional. If set to true, it will not import private key from key vault. + /// A new instance for mocking. + public static AppPlatformKeyVaultCertificateProperties AppPlatformKeyVaultCertificateProperties(string thumbprint = null, string issuer = null, DateTimeOffset? issuedOn = null, DateTimeOffset? expireOn = null, DateTimeOffset? activateOn = null, string subjectName = null, IEnumerable dnsNames = null, AppPlatformCertificateProvisioningState? provisioningState = null, Uri vaultUri = null, string keyVaultCertName = null, string certVersion = null, bool? isPrivateKeyExcluded = null) + { + dnsNames ??= new List(); + + return new AppPlatformKeyVaultCertificateProperties("KeyVaultCertificate", thumbprint, issuer, issuedOn, expireOn, activateOn, subjectName, dnsNames?.ToList(), provisioningState, vaultUri, keyVaultCertName, certVersion, isPrivateKeyExcluded); + } + + /// Initializes a new instance of AppPlatformContentCertificateProperties. + /// The thumbprint of certificate. + /// The issuer of certificate. + /// The issue date of certificate. + /// The expiration date of certificate. + /// The activate date of certificate. + /// The subject name of certificate. + /// The domain list of certificate. + /// Provisioning state of the Certificate. + /// The content of uploaded certificate. + /// A new instance for mocking. + public static AppPlatformContentCertificateProperties AppPlatformContentCertificateProperties(string thumbprint = null, string issuer = null, DateTimeOffset? issuedOn = null, DateTimeOffset? expireOn = null, DateTimeOffset? activateOn = null, string subjectName = null, IEnumerable dnsNames = null, AppPlatformCertificateProvisioningState? provisioningState = null, string content = null) + { + dnsNames ??= new List(); + + return new AppPlatformContentCertificateProperties("ContentCertificate", thumbprint, issuer, issuedOn, expireOn, activateOn, subjectName, dnsNames?.ToList(), provisioningState, content); + } + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md index e31fb87997d2..3fd48b12ec3f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/autorest.md +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/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: AppPlatform namespace: Azure.ResourceManager.AppPlatform diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/CHANGELOG.md b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/CHANGELOG.md index 07b21aad1675..6922ca499583 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/CHANGELOG.md +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (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-beta.2 (2023-02-16) ### Other Changes diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/api/Azure.ResourceManager.ArcScVmm.netstandard2.0.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/api/Azure.ResourceManager.ArcScVmm.netstandard2.0.cs index 18b4ccc7ccec..26b0373cb818 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/api/Azure.ResourceManager.ArcScVmm.netstandard2.0.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/api/Azure.ResourceManager.ArcScVmm.netstandard2.0.cs @@ -411,6 +411,20 @@ namespace Azure.ResourceManager.ArcScVmm.Models public static bool operator !=(Azure.ResourceManager.ArcScVmm.Models.AllocationMethod left, Azure.ResourceManager.ArcScVmm.Models.AllocationMethod right) { throw null; } public override string ToString() { throw null; } } + public static partial class ArmArcScVmmModelFactory + { + public static Azure.ResourceManager.ArcScVmm.Models.CloudCapacity CloudCapacity(long? cpuCount = default(long?), long? memoryMB = default(long?), long? vmCount = default(long?)) { throw null; } + public static Azure.ResourceManager.ArcScVmm.Models.NetworkInterfaces NetworkInterfaces(string name = null, string displayName = null, System.Collections.Generic.IEnumerable ipv4Addresses = null, System.Collections.Generic.IEnumerable ipv6Addresses = null, string macAddress = null, string virtualNetworkId = null, string networkName = null, Azure.ResourceManager.ArcScVmm.Models.AllocationMethod? ipv4AddressType = default(Azure.ResourceManager.ArcScVmm.Models.AllocationMethod?), Azure.ResourceManager.ArcScVmm.Models.AllocationMethod? ipv6AddressType = default(Azure.ResourceManager.ArcScVmm.Models.AllocationMethod?), Azure.ResourceManager.ArcScVmm.Models.AllocationMethod? macAddressType = default(Azure.ResourceManager.ArcScVmm.Models.AllocationMethod?), string nicId = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.Models.OSProfile OSProfile(string adminPassword = null, string computerName = null, Azure.ResourceManager.ArcScVmm.Models.OSType? osType = default(Azure.ResourceManager.ArcScVmm.Models.OSType?), string osName = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmAvailabilitySetData ScVmmAvailabilitySetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string availabilitySetName = null, string vmmServerId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmCloudData ScVmmCloudData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, string cloudName = null, Azure.ResourceManager.ArcScVmm.Models.CloudCapacity cloudCapacity = null, System.Collections.Generic.IEnumerable storageQoSPolicies = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmServerData ScVmmServerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, Azure.ResourceManager.ArcScVmm.Models.VmmServerPropertiesCredentials credentials = null, string fqdn = null, int? port = default(int?), string connectionStatus = null, string errorMessage = null, string uuid = null, string version = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmVirtualMachineData ScVmmVirtualMachineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string inventoryItemId = null, string vmmServerId = null, string cloudId = null, string templateId = null, string checkpointType = null, System.Collections.Generic.IEnumerable checkpoints = null, System.Collections.Generic.IEnumerable availabilitySets = null, Azure.ResourceManager.ArcScVmm.Models.OSProfile osProfile = null, Azure.ResourceManager.ArcScVmm.Models.HardwareProfile hardwareProfile = null, System.Collections.Generic.IEnumerable networkInterfaces = null, System.Collections.Generic.IEnumerable storageDisks = null, string vmName = null, string uuid = null, int? generation = default(int?), string powerState = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmVirtualMachineTemplateData ScVmmVirtualMachineTemplateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, Azure.ResourceManager.ArcScVmm.Models.OSType? osType = default(Azure.ResourceManager.ArcScVmm.Models.OSType?), string osName = null, string computerName = null, int? memoryMB = default(int?), int? cpuCount = default(int?), Azure.ResourceManager.ArcScVmm.Models.LimitCpuForMigration? limitCpuForMigration = default(Azure.ResourceManager.ArcScVmm.Models.LimitCpuForMigration?), Azure.ResourceManager.ArcScVmm.Models.DynamicMemoryEnabled? dynamicMemoryEnabled = default(Azure.ResourceManager.ArcScVmm.Models.DynamicMemoryEnabled?), Azure.ResourceManager.ArcScVmm.Models.IsCustomizable? isCustomizable = default(Azure.ResourceManager.ArcScVmm.Models.IsCustomizable?), int? dynamicMemoryMaxMB = default(int?), int? dynamicMemoryMinMB = default(int?), string isHighlyAvailable = null, int? generation = default(int?), System.Collections.Generic.IEnumerable networkInterfaces = null, System.Collections.Generic.IEnumerable disks = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.ScVmmVirtualNetworkData ScVmmVirtualNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, string networkName = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.Models.StorageQoSPolicy StorageQoSPolicy(string name = null, string id = null, long? iopsMaximum = default(long?), long? iopsMinimum = default(long?), long? bandwidthLimit = default(long?), string policyId = null) { throw null; } + public static Azure.ResourceManager.ArcScVmm.Models.VirtualDisk VirtualDisk(string name = null, string displayName = null, string diskId = null, int? diskSizeGB = default(int?), int? maxDiskSizeGB = default(int?), int? bus = default(int?), int? lun = default(int?), string busType = null, string vhdType = null, string volumeType = null, string vhdFormatType = null, string templateDiskId = null, Azure.ResourceManager.ArcScVmm.Models.StorageQoSPolicyDetails storageQoSPolicy = null, Azure.ResourceManager.ArcScVmm.Models.CreateDiffDisk? createDiffDisk = default(Azure.ResourceManager.ArcScVmm.Models.CreateDiffDisk?)) { throw null; } + } public partial class AvailabilitySetListItem { public AvailabilitySetListItem() { } diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/ArmArcScVmmModelFactory.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/ArmArcScVmmModelFactory.cs new file mode 100644 index 000000000000..c814f5f66dd9 --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/ArmArcScVmmModelFactory.cs @@ -0,0 +1,257 @@ +// 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.ArcScVmm; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.ArcScVmm.Models +{ + /// Model factory for models. + public static partial class ArmArcScVmmModelFactory + { + /// Initializes a new instance of ScVmmServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Credentials to connect to VMMServer. + /// Fqdn is the hostname/ip of the vmmServer. + /// Port is the port on which the vmmServer is listening. + /// Gets or sets the connection status to the vmmServer. + /// Gets or sets any error message if connection to vmmServer is having any issue. + /// Unique ID of vmmServer. + /// Version is the version of the vmmSever. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmServerData ScVmmServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, VmmServerPropertiesCredentials credentials = null, string fqdn = null, int? port = null, string connectionStatus = null, string errorMessage = null, string uuid = null, string version = null, string provisioningState = null) + { + tags ??= new Dictionary(); + + return new ScVmmServerData(id, name, resourceType, systemData, tags, location, extendedLocation, credentials, fqdn, port, connectionStatus, errorMessage, uuid, version, provisioningState); + } + + /// Initializes a new instance of ScVmmCloudData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Gets or sets the inventory Item ID for the resource. + /// Unique ID of the cloud. + /// ARM Id of the vmmServer resource in which this resource resides. + /// Name of the cloud in VMMServer. + /// Capacity of the cloud. + /// List of QoS policies available for the cloud. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmCloudData ScVmmCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, string cloudName = null, CloudCapacity cloudCapacity = null, IEnumerable storageQoSPolicies = null, string provisioningState = null) + { + tags ??= new Dictionary(); + storageQoSPolicies ??= new List(); + + return new ScVmmCloudData(id, name, resourceType, systemData, tags, location, extendedLocation, inventoryItemId, uuid, vmmServerId, cloudName, cloudCapacity, storageQoSPolicies?.ToList(), provisioningState); + } + + /// Initializes a new instance of CloudCapacity. + /// CPUCount specifies the maximum number of CPUs that can be allocated in the cloud. + /// MemoryMB specifies a memory usage limit in megabytes. + /// VMCount gives the max number of VMs that can be deployed in the cloud. + /// A new instance for mocking. + public static CloudCapacity CloudCapacity(long? cpuCount = null, long? memoryMB = null, long? vmCount = null) + { + return new CloudCapacity(cpuCount, memoryMB, vmCount); + } + + /// Initializes a new instance of StorageQoSPolicy. + /// The name of the policy. + /// The ID of the QoS policy. + /// The maximum IO operations per second. + /// The minimum IO operations per second. + /// The Bandwidth Limit for internet traffic. + /// The underlying policy. + /// A new instance for mocking. + public static StorageQoSPolicy StorageQoSPolicy(string name = null, string id = null, long? iopsMaximum = null, long? iopsMinimum = null, long? bandwidthLimit = null, string policyId = null) + { + return new StorageQoSPolicy(name, id, iopsMaximum, iopsMinimum, bandwidthLimit, policyId); + } + + /// Initializes a new instance of ScVmmVirtualNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Gets or sets the inventory Item ID for the resource. + /// Unique ID of the virtual network. + /// ARM Id of the vmmServer resource in which this resource resides. + /// Name of the virtual network in vmmServer. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmVirtualNetworkData ScVmmVirtualNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, string networkName = null, string provisioningState = null) + { + tags ??= new Dictionary(); + + return new ScVmmVirtualNetworkData(id, name, resourceType, systemData, tags, location, extendedLocation, inventoryItemId, uuid, vmmServerId, networkName, provisioningState); + } + + /// Initializes a new instance of ScVmmVirtualMachineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Gets or sets the inventory Item ID for the resource. + /// ARM Id of the vmmServer resource in which this resource resides. + /// ARM Id of the cloud resource to use for deploying the vm. + /// ARM Id of the template resource to use for deploying the vm. + /// Type of checkpoint supported for the vm. + /// Checkpoints in the vm. + /// Availability Sets in vm. + /// OS properties. + /// Hardware properties. + /// Network properties. + /// Storage properties. + /// VMName is the name of VM on the SCVMM server. + /// Unique ID of the virtual machine. + /// Gets or sets the generation for the vm. + /// Gets the power state of the virtual machine. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmVirtualMachineData ScVmmVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, string inventoryItemId = null, string vmmServerId = null, string cloudId = null, string templateId = null, string checkpointType = null, IEnumerable checkpoints = null, IEnumerable availabilitySets = null, OSProfile osProfile = null, HardwareProfile hardwareProfile = null, IEnumerable networkInterfaces = null, IEnumerable storageDisks = null, string vmName = null, string uuid = null, int? generation = null, string powerState = null, string provisioningState = null) + { + tags ??= new Dictionary(); + checkpoints ??= new List(); + availabilitySets ??= new List(); + networkInterfaces ??= new List(); + storageDisks ??= new List(); + + return new ScVmmVirtualMachineData(id, name, resourceType, systemData, tags, location, extendedLocation, inventoryItemId, vmmServerId, cloudId, templateId, checkpointType, checkpoints?.ToList(), availabilitySets?.ToList(), osProfile, hardwareProfile, networkInterfaces != null ? new NetworkProfile(networkInterfaces?.ToList()) : null, storageDisks != null ? new StorageProfile(storageDisks?.ToList()) : null, vmName, uuid, generation, powerState, provisioningState); + } + + /// Initializes a new instance of OSProfile. + /// Admin password of the virtual machine. + /// Gets or sets computer name. + /// Gets or sets the type of the os. + /// Gets or sets os name. + /// A new instance for mocking. + public static OSProfile OSProfile(string adminPassword = null, string computerName = null, OSType? osType = null, string osName = null) + { + return new OSProfile(adminPassword, computerName, osType, osName); + } + + /// Initializes a new instance of NetworkInterfaces. + /// Gets or sets the name of the network interface. + /// Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set. + /// Gets or sets the nic ipv4 addresses. + /// Gets or sets the nic ipv6 addresses. + /// Gets or sets the nic MAC address. + /// Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic. + /// Gets or sets the name of the virtual network in vmmServer that the nic is connected to. + /// Gets or sets the ipv4 address type. + /// Gets or sets the ipv6 address type. + /// Gets or sets the mac address type. + /// Gets or sets the nic id. + /// A new instance for mocking. + public static NetworkInterfaces NetworkInterfaces(string name = null, string displayName = null, IEnumerable ipv4Addresses = null, IEnumerable ipv6Addresses = null, string macAddress = null, string virtualNetworkId = null, string networkName = null, AllocationMethod? ipv4AddressType = null, AllocationMethod? ipv6AddressType = null, AllocationMethod? macAddressType = null, string nicId = null) + { + ipv4Addresses ??= new List(); + ipv6Addresses ??= new List(); + + return new NetworkInterfaces(name, displayName, ipv4Addresses?.ToList(), ipv6Addresses?.ToList(), macAddress, virtualNetworkId, networkName, ipv4AddressType, ipv6AddressType, macAddressType, nicId); + } + + /// Initializes a new instance of VirtualDisk. + /// Gets or sets the name of the disk. + /// Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set. + /// Gets or sets the disk id. + /// Gets or sets the disk total size. + /// Gets or sets the max disk size. + /// Gets or sets the disk bus. + /// Gets or sets the disk lun. + /// Gets or sets the disk bus type. + /// Gets or sets the disk vhd type. + /// Gets or sets the disk volume type. + /// Gets the disk vhd format type. + /// Gets or sets the disk id in the template. + /// The QoS policy for the disk. + /// Gets or sets a value indicating diff disk. + /// A new instance for mocking. + public static VirtualDisk VirtualDisk(string name = null, string displayName = null, string diskId = null, int? diskSizeGB = null, int? maxDiskSizeGB = null, int? bus = null, int? lun = null, string busType = null, string vhdType = null, string volumeType = null, string vhdFormatType = null, string templateDiskId = null, StorageQoSPolicyDetails storageQoSPolicy = null, CreateDiffDisk? createDiffDisk = null) + { + return new VirtualDisk(name, displayName, diskId, diskSizeGB, maxDiskSizeGB, bus, lun, busType, vhdType, volumeType, vhdFormatType, templateDiskId, storageQoSPolicy, createDiffDisk); + } + + /// Initializes a new instance of ScVmmVirtualMachineTemplateData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Gets or sets the inventory Item ID for the resource. + /// Unique ID of the virtual machine template. + /// ARM Id of the vmmServer resource in which this resource resides. + /// Gets or sets the type of the os. + /// Gets or sets os name. + /// Gets or sets computer name. + /// MemoryMB is the desired size of a virtual machine's memory, in MB. + /// Gets or sets the desired number of vCPUs for the vm. + /// Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs. + /// Gets or sets a value indicating whether to enable dynamic memory or not. + /// Gets or sets a value indicating whether the vm template is customizable or not. + /// Gets or sets the max dynamic memory for the vm. + /// Gets or sets the min dynamic memory for the vm. + /// Gets highly available property. + /// Gets or sets the generation for the vm. + /// Gets or sets the network interfaces of the template. + /// Gets or sets the disks of the template. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmVirtualMachineTemplateData ScVmmVirtualMachineTemplateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, string inventoryItemId = null, string uuid = null, string vmmServerId = null, OSType? osType = null, string osName = null, string computerName = null, int? memoryMB = null, int? cpuCount = null, LimitCpuForMigration? limitCpuForMigration = null, DynamicMemoryEnabled? dynamicMemoryEnabled = null, IsCustomizable? isCustomizable = null, int? dynamicMemoryMaxMB = null, int? dynamicMemoryMinMB = null, string isHighlyAvailable = null, int? generation = null, IEnumerable networkInterfaces = null, IEnumerable disks = null, string provisioningState = null) + { + tags ??= new Dictionary(); + networkInterfaces ??= new List(); + disks ??= new List(); + + return new ScVmmVirtualMachineTemplateData(id, name, resourceType, systemData, tags, location, extendedLocation, inventoryItemId, uuid, vmmServerId, osType, osName, computerName, memoryMB, cpuCount, limitCpuForMigration, dynamicMemoryEnabled, isCustomizable, dynamicMemoryMaxMB, dynamicMemoryMinMB, isHighlyAvailable, generation, networkInterfaces?.ToList(), disks?.ToList(), provisioningState); + } + + /// Initializes a new instance of ScVmmAvailabilitySetData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The extended location. + /// Name of the availability set. + /// ARM Id of the vmmServer resource in which this resource resides. + /// Gets or sets the provisioning state. + /// A new instance for mocking. + public static ScVmmAvailabilitySetData ScVmmAvailabilitySetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ExtendedLocation extendedLocation = null, string availabilitySetName = null, string vmmServerId = null, string provisioningState = null) + { + tags ??= new Dictionary(); + + return new ScVmmAvailabilitySetData(id, name, resourceType, systemData, tags, location, extendedLocation, availabilitySetName, vmmServerId, provisioningState); + } + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/autorest.md b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/autorest.md index 9345f8d068cf..2271096ffd39 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/autorest.md +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/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: ArcScVmm namespace: Azure.ResourceManager.ArcScVmm diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/CHANGELOG.md b/sdk/attestation/Azure.ResourceManager.Attestation/CHANGELOG.md index 3e3cd21e5937..d81cfba4a772 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/CHANGELOG.md +++ b/sdk/attestation/Azure.ResourceManager.Attestation/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (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-beta.2 (2023-02-16) ### Other Changes diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs index 9a443b2043a5..72f9659a5ecd 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs @@ -102,6 +102,12 @@ protected AttestationProviderResource() { } } namespace Azure.ResourceManager.Attestation.Models { + public static partial class ArmAttestationModelFactory + { + public static Azure.ResourceManager.Attestation.AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkResource AttestationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AttestationPrivateEndpointConnectionProvisioningState : System.IEquatable { diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs new file mode 100644 index 000000000000..83754e9284f8 --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs @@ -0,0 +1,73 @@ +// 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.Attestation; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Attestation.Models +{ + /// Model factory for models. + public static partial class ArmAttestationModelFactory + { + + /// Initializes a new instance of AttestationProviderData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Trust model for the attestation provider. + /// Status of attestation service. + /// Gets the uri of attestation service. + /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. + /// List of private endpoint connections associated with the attestation provider. + /// A new instance for mocking. + public static AttestationProviderData AttestationProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string trustModel = null, AttestationServiceStatus? status = null, Uri attestUri = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new AttestationProviderData(id, name, resourceType, systemData, tags, location, trustModel, status, attestUri, publicNetworkAccess, privateEndpointConnections?.ToList()); + } + + /// Initializes a new instance of AttestationPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + public static AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, AttestationPrivateLinkServiceConnectionState connectionState = null, AttestationPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + return new AttestationPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of AttestationPrivateLinkResource. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource Private link DNS zone name. + /// A new instance for mocking. + public static AttestationPrivateLinkResource AttestationPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new AttestationPrivateLinkResource(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + } +} diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md index 8ce9956adff6..ec1021272284 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md +++ b/sdk/attestation/Azure.ResourceManager.Attestation/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: Attestation namespace: Azure.ResourceManager.Attestation @@ -48,4 +47,4 @@ rename-rules: URI: Uri Etag: ETag|etag -``` \ No newline at end of file +``` diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md b/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md index c7a1998477d8..474677ecfb15 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md +++ b/sdk/authorization/Azure.ResourceManager.Authorization/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-20) ### Other Changes diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs index 76b83a57fb1c..c215d3d6e2ae 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/api/Azure.ResourceManager.Authorization.netstandard2.0.cs @@ -598,6 +598,30 @@ protected RoleManagementPolicyResource() { } } namespace Azure.ResourceManager.Authorization.Models { + public static partial class ArmAuthorizationModelFactory + { + public static Azure.ResourceManager.Authorization.Models.AuthorizationClassicAdministrator AuthorizationClassicAdministrator(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string emailAddress = null, string role = null) { throw null; } + public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderOperationInfo AuthorizationProviderOperationInfo(string name = null, string displayName = null, string description = null, string origin = null, System.BinaryData properties = null, bool? isDataAction = default(bool?)) { throw null; } + public static Azure.ResourceManager.Authorization.AuthorizationProviderOperationsMetadataData AuthorizationProviderOperationsMetadataData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } + public static Azure.ResourceManager.Authorization.Models.AuthorizationProviderResourceType AuthorizationProviderResourceType(string name = null, string displayName = null, System.Collections.Generic.IEnumerable operations = null) { throw null; } + public static Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string roleName = null, string description = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), System.Collections.Generic.IEnumerable permissions = null, System.Collections.Generic.IEnumerable assignableScopes = null) { throw null; } + public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string denyAssignmentName = null, string description = null, System.Collections.Generic.IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = default(bool?), System.Collections.Generic.IEnumerable principals = null, System.Collections.Generic.IEnumerable excludePrincipals = null, bool? isSystemProtected = default(bool?)) { throw null; } + public static Azure.ResourceManager.Authorization.Models.DenyAssignmentPermission DenyAssignmentPermission(System.Collections.Generic.IEnumerable actions = null, System.Collections.Generic.IEnumerable notActions = null, System.Collections.Generic.IEnumerable dataActions = null, System.Collections.Generic.IEnumerable notDataActions = null, string condition = null, string conditionVersion = null) { throw null; } + public static Azure.ResourceManager.Authorization.Models.EligibleChildResource EligibleChildResource(string id = null, string name = null, string resourceType = null) { throw null; } + public static Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties PolicyAssignmentProperties(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier policyId = null, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), Azure.Core.ResourceIdentifier scopeId = null, string scopeDisplayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScopeType?)) { throw null; } + public static Azure.ResourceManager.Authorization.RoleAssignmentData RoleAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), string description = null, string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), string createdBy = null, string updatedBy = null, Azure.Core.ResourceIdentifier delegatedManagedIdentityResourceId = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleAssignmentScheduleData RoleAssignmentScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.Core.ResourceIdentifier roleAssignmentScheduleRequestId = null, Azure.Core.ResourceIdentifier linkedRoleEligibilityScheduleId = null, Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleAssignmentType? assignmentType = default(Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleAssignmentType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleAssignmentScheduleInstanceData RoleAssignmentScheduleInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.Core.ResourceIdentifier roleAssignmentScheduleId = null, Azure.Core.ResourceIdentifier originRoleAssignmentId = null, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier linkedRoleEligibilityScheduleId = null, Azure.Core.ResourceIdentifier linkedRoleEligibilityScheduleInstanceId = null, Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleAssignmentType? assignmentType = default(Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleAssignmentType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData RoleAssignmentScheduleRequestData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType? requestType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), string approvalId = null, Azure.Core.ResourceIdentifier targetRoleAssignmentScheduleId = null, Azure.Core.ResourceIdentifier targetRoleAssignmentScheduleInstanceId = null, Azure.Core.ResourceIdentifier linkedRoleEligibilityScheduleId = null, string justification = null, Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleTicketInfo ticketInfo = null, string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Guid? requestorId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType? expirationType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?)) { throw null; } + public static Azure.ResourceManager.Authorization.RoleEligibilityScheduleData RoleEligibilityScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.Core.ResourceIdentifier roleEligibilityScheduleRequestId = null, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? updatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleEligibilityScheduleInstanceData RoleEligibilityScheduleInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.Core.ResourceIdentifier roleEligibilityScheduleId = null, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType?), string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleEligibilityScheduleRequestData RoleEligibilityScheduleRequestData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, System.Guid? principalId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType? requestType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus?), string approvalId = null, Azure.Core.ResourceIdentifier targetRoleEligibilityScheduleId = null, Azure.Core.ResourceIdentifier targetRoleEligibilityScheduleInstanceId = null, string justification = null, Azure.ResourceManager.Authorization.Models.RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo = null, string condition = null, string conditionVersion = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Guid? requestorId = default(System.Guid?), Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType? expirationType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.TimeSpan? duration = default(System.TimeSpan?)) { throw null; } + public static Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties RoleManagementExpandedProperties(System.Guid? principalId = default(System.Guid?), string principalDisplayName = null, string email = null, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), Azure.Core.ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default(Azure.ResourceManager.Authorization.Models.AuthorizationRoleType?), Azure.Core.ResourceIdentifier scopeId = null, string scopeDisplayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScopeType?)) { throw null; } + public static Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData RoleManagementPolicyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, Azure.Core.ResourceIdentifier roleDefinitionId = null, Azure.Core.ResourceIdentifier policyId = null, System.Collections.Generic.IEnumerable effectiveRules = null, Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties policyAssignmentProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.RoleManagementPolicyData RoleManagementPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string scope = null, string displayName = null, string description = null, bool? isOrganizationDefault = default(bool?), Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable rules = null, System.Collections.Generic.IEnumerable effectiveRules = null, Azure.ResourceManager.Authorization.Models.RoleManagementPolicyProperties policyProperties = null) { throw null; } + public static Azure.ResourceManager.Authorization.Models.RoleManagementPolicyProperties RoleManagementPolicyProperties(Azure.Core.ResourceIdentifier scopeId = null, string scopeDisplayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default(Azure.ResourceManager.Authorization.Models.RoleManagementScopeType?)) { throw null; } + public static Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal RoleManagementPrincipal(string id = null, string displayName = null, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default(Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType?), string email = null) { throw null; } + } public partial class AuthorizationClassicAdministrator : Azure.ResourceManager.Models.ResourceData { internal AuthorizationClassicAdministrator() { } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs new file mode 100644 index 000000000000..a808d94ba243 --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/ArmAuthorizationModelFactory.cs @@ -0,0 +1,446 @@ +// 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.Authorization; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Authorization.Models +{ + /// Model factory for models. + public static partial class ArmAuthorizationModelFactory + { + /// Initializes a new instance of AuthorizationClassicAdministrator. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The email address of the administrator. + /// The role of the administrator. + /// A new instance for mocking. + public static AuthorizationClassicAdministrator AuthorizationClassicAdministrator(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string emailAddress = null, string role = null) + { + return new AuthorizationClassicAdministrator(id, name, resourceType, systemData, emailAddress, role); + } + + /// Initializes a new instance of DenyAssignmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The display name of the deny assignment. + /// The description of the deny assignment. + /// An array of permissions that are denied by the deny assignment. + /// The deny assignment scope. + /// Determines if the deny assignment applies to child scopes. Default value is false. + /// Array of principals to which the deny assignment applies. + /// Array of principals to which the deny assignment does not apply. + /// Specifies whether this deny assignment was created by Azure and cannot be edited or deleted. + /// A new instance for mocking. + public static DenyAssignmentData DenyAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string denyAssignmentName = null, string description = null, IEnumerable permissions = null, string scope = null, bool? isAppliedToChildScopes = null, IEnumerable principals = null, IEnumerable excludePrincipals = null, bool? isSystemProtected = null) + { + permissions ??= new List(); + principals ??= new List(); + excludePrincipals ??= new List(); + + return new DenyAssignmentData(id, name, resourceType, systemData, denyAssignmentName, description, permissions?.ToList(), scope, isAppliedToChildScopes, principals?.ToList(), excludePrincipals?.ToList(), isSystemProtected); + } + + /// Initializes a new instance of DenyAssignmentPermission. + /// Actions to which the deny assignment does not grant access. + /// Actions to exclude from that the deny assignment does not grant access. + /// Data actions to which the deny assignment does not grant access. + /// Data actions to exclude from that the deny assignment does not grant access. + /// The conditions on the Deny assignment permission. This limits the resources it applies to. + /// Version of the condition. + /// A new instance for mocking. + public static DenyAssignmentPermission DenyAssignmentPermission(IEnumerable actions = null, IEnumerable notActions = null, IEnumerable dataActions = null, IEnumerable notDataActions = null, string condition = null, string conditionVersion = null) + { + actions ??= new List(); + notActions ??= new List(); + dataActions ??= new List(); + notDataActions ??= new List(); + + return new DenyAssignmentPermission(actions?.ToList(), notActions?.ToList(), dataActions?.ToList(), notDataActions?.ToList(), condition, conditionVersion); + } + + /// Initializes a new instance of RoleManagementPrincipal. + /// The id of the principal made changes. + /// The name of the principal made changes. + /// Type of the principal. + /// Email of principal. + /// A new instance for mocking. + public static RoleManagementPrincipal RoleManagementPrincipal(string id = null, string displayName = null, RoleManagementPrincipalType? principalType = null, string email = null) + { + return new RoleManagementPrincipal(id, displayName, principalType, email); + } + + /// Initializes a new instance of AuthorizationProviderOperationsMetadataData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provider display name. + /// The provider resource types. + /// The provider operations. + /// A new instance for mocking. + public static AuthorizationProviderOperationsMetadataData AuthorizationProviderOperationsMetadataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable resourceTypes = null, IEnumerable operations = null) + { + resourceTypes ??= new List(); + operations ??= new List(); + + return new AuthorizationProviderOperationsMetadataData(id, name, resourceType, systemData, displayName, resourceTypes?.ToList(), operations?.ToList()); + } + + /// Initializes a new instance of AuthorizationProviderResourceType. + /// The resource type name. + /// The resource type display name. + /// The resource type operations. + /// A new instance for mocking. + public static AuthorizationProviderResourceType AuthorizationProviderResourceType(string name = null, string displayName = null, IEnumerable operations = null) + { + operations ??= new List(); + + return new AuthorizationProviderResourceType(name, displayName, operations?.ToList()); + } + + /// Initializes a new instance of AuthorizationProviderOperationInfo. + /// The operation name. + /// The operation display name. + /// The operation description. + /// The operation origin. + /// The operation properties. + /// The dataAction flag to specify the operation type. + /// A new instance for mocking. + public static AuthorizationProviderOperationInfo AuthorizationProviderOperationInfo(string name = null, string displayName = null, string description = null, string origin = null, BinaryData properties = null, bool? isDataAction = null) + { + return new AuthorizationProviderOperationInfo(name, displayName, description, origin, properties, isDataAction); + } + + /// Initializes a new instance of RoleAssignmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role assignment scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// Description of role assignment. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently the only accepted value is '2.0'. + /// Time it was created. + /// Time it was updated. + /// Id of the user who created the assignment. + /// Id of the user who updated the assignment. + /// Id of the delegated managed identity resource. + /// A new instance for mocking. + public static RoleAssignmentData RoleAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, string description = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, string createdBy = null, string updatedBy = null, ResourceIdentifier delegatedManagedIdentityResourceId = null) + { + return new RoleAssignmentData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, description, condition, conditionVersion, createdOn, updatedOn, createdBy, updatedBy, delegatedManagedIdentityResourceId); + } + + /// Initializes a new instance of AuthorizationRoleDefinitionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role name. + /// The role definition description. + /// The role type. + /// Role definition permissions. + /// Role definition assignable scopes. + /// A new instance for mocking. + public static AuthorizationRoleDefinitionData AuthorizationRoleDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string roleName = null, string description = null, AuthorizationRoleType? roleType = null, IEnumerable permissions = null, IEnumerable assignableScopes = null) + { + permissions ??= new List(); + assignableScopes ??= new List(); + + return new AuthorizationRoleDefinitionData(id, name, resourceType, systemData, roleName, description, roleType, permissions?.ToList(), assignableScopes?.ToList()); + } + + /// Initializes a new instance of EligibleChildResource. + /// The resource scope Id. + /// The resource name. + /// The resource type. + /// A new instance for mocking. + public static EligibleChildResource EligibleChildResource(string id = null, string name = null, string resourceType = null) + { + return new EligibleChildResource(id, name, resourceType); + } + + /// Initializes a new instance of RoleAssignmentScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role assignment schedule scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule. + /// The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule. + /// Assignment type of the role assignment schedule. + /// Membership type of the role assignment schedule. + /// The status of the role assignment schedule. + /// Start DateTime when role assignment schedule. + /// End DateTime when role assignment schedule. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role assignment schedule was created. + /// DateTime when role assignment schedule was modified. + /// Additional properties of principal, scope and role definition. + /// A new instance for mocking. + public static RoleAssignmentScheduleData RoleAssignmentScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, ResourceIdentifier roleAssignmentScheduleRequestId = null, ResourceIdentifier linkedRoleEligibilityScheduleId = null, RoleAssignmentScheduleAssignmentType? assignmentType = null, RoleManagementScheduleMemberType? memberType = null, RoleManagementScheduleStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, RoleManagementExpandedProperties expandedProperties = null) + { + return new RoleAssignmentScheduleData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, roleAssignmentScheduleRequestId, linkedRoleEligibilityScheduleId, assignmentType, memberType, status, startOn, endOn, condition, conditionVersion, createdOn, updatedOn, expandedProperties); + } + + /// Initializes a new instance of RoleManagementExpandedProperties. + /// Id of the principal. + /// Display name of the principal. + /// Email id of the principal. + /// Type of the principal. + /// Id of the role definition. + /// Display name of the role definition. + /// The role type. + /// Scope id of the resource. + /// Display name of the resource. + /// Type of the scope. + /// A new instance for mocking. + public static RoleManagementExpandedProperties RoleManagementExpandedProperties(Guid? principalId = null, string principalDisplayName = null, string email = null, RoleManagementPrincipalType? principalType = null, ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, AuthorizationRoleType? roleType = null, ResourceIdentifier scopeId = null, string scopeDisplayName = null, RoleManagementScopeType? scopeType = null) + { + return new RoleManagementExpandedProperties(principalId, principalDisplayName, email, principalType, roleDefinitionId, roleDefinitionDisplayName, roleType, scopeId, scopeDisplayName, scopeType); + } + + /// Initializes a new instance of RoleAssignmentScheduleInstanceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role assignment schedule scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// Id of the master role assignment schedule. + /// Role Assignment Id in external system. + /// The status of the role assignment schedule instance. + /// The startDateTime of the role assignment schedule instance. + /// The endDateTime of the role assignment schedule instance. + /// roleEligibilityScheduleId used to activate. + /// roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance. + /// Assignment type of the role assignment schedule. + /// Membership type of the role assignment schedule. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role assignment schedule was created. + /// Additional properties of principal, scope and role definition. + /// A new instance for mocking. + public static RoleAssignmentScheduleInstanceData RoleAssignmentScheduleInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, ResourceIdentifier roleAssignmentScheduleId = null, ResourceIdentifier originRoleAssignmentId = null, RoleManagementScheduleStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, ResourceIdentifier linkedRoleEligibilityScheduleId = null, ResourceIdentifier linkedRoleEligibilityScheduleInstanceId = null, RoleAssignmentScheduleAssignmentType? assignmentType = null, RoleManagementScheduleMemberType? memberType = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, RoleManagementExpandedProperties expandedProperties = null) + { + return new RoleAssignmentScheduleInstanceData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, roleAssignmentScheduleId, originRoleAssignmentId, status, startOn, endOn, linkedRoleEligibilityScheduleId, linkedRoleEligibilityScheduleInstanceId, assignmentType, memberType, condition, conditionVersion, createdOn, expandedProperties); + } + + /// Initializes a new instance of RoleAssignmentScheduleRequestData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role assignment schedule request scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc. + /// The status of the role assignment schedule request. + /// The approvalId of the role assignment schedule request. + /// The resultant role assignment schedule id or the role assignment schedule id being updated. + /// The role assignment schedule instance id being updated. + /// The linked role eligibility schedule id - to activate an eligibility. + /// Justification for the role assignment. + /// Ticket Info of the role assignment. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role assignment schedule request was created. + /// Id of the user who created this request. + /// Additional properties of principal, scope and role definition. + /// Start DateTime of the role assignment schedule. + /// Type of the role assignment schedule expiration. + /// End DateTime of the role assignment schedule. + /// Duration of the role assignment schedule in TimeSpan. + /// A new instance for mocking. + public static RoleAssignmentScheduleRequestData RoleAssignmentScheduleRequestData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, RoleManagementScheduleRequestType? requestType = null, RoleManagementScheduleStatus? status = null, string approvalId = null, ResourceIdentifier targetRoleAssignmentScheduleId = null, ResourceIdentifier targetRoleAssignmentScheduleInstanceId = null, ResourceIdentifier linkedRoleEligibilityScheduleId = null, string justification = null, RoleAssignmentScheduleTicketInfo ticketInfo = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, Guid? requestorId = null, RoleManagementExpandedProperties expandedProperties = null, DateTimeOffset? startOn = null, RoleManagementScheduleExpirationType? expirationType = null, DateTimeOffset? endOn = null, TimeSpan? duration = null) + { + return new RoleAssignmentScheduleRequestData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, requestType, status, approvalId, targetRoleAssignmentScheduleId, targetRoleAssignmentScheduleInstanceId, linkedRoleEligibilityScheduleId, justification, ticketInfo, condition, conditionVersion, createdOn, requestorId, expandedProperties, startOn, expirationType, endOn, duration); + } + + /// Initializes a new instance of RoleEligibilityScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role eligibility schedule scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// The id of roleEligibilityScheduleRequest used to create this roleAssignmentSchedule. + /// Membership type of the role eligibility schedule. + /// The status of the role eligibility schedule. + /// Start DateTime when role eligibility schedule. + /// End DateTime when role eligibility schedule. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role eligibility schedule was created. + /// DateTime when role eligibility schedule was modified. + /// Additional properties of principal, scope and role definition. + /// A new instance for mocking. + public static RoleEligibilityScheduleData RoleEligibilityScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, ResourceIdentifier roleEligibilityScheduleRequestId = null, RoleManagementScheduleMemberType? memberType = null, RoleManagementScheduleStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, RoleManagementExpandedProperties expandedProperties = null) + { + return new RoleEligibilityScheduleData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, roleEligibilityScheduleRequestId, memberType, status, startOn, endOn, condition, conditionVersion, createdOn, updatedOn, expandedProperties); + } + + /// Initializes a new instance of RoleEligibilityScheduleInstanceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role eligibility schedule scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// Id of the master role eligibility schedule. + /// The status of the role eligibility schedule instance. + /// The startDateTime of the role eligibility schedule instance. + /// The endDateTime of the role eligibility schedule instance. + /// Membership type of the role eligibility schedule. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role eligibility schedule was created. + /// Additional properties of principal, scope and role definition. + /// A new instance for mocking. + public static RoleEligibilityScheduleInstanceData RoleEligibilityScheduleInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, ResourceIdentifier roleEligibilityScheduleId = null, RoleManagementScheduleStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, RoleManagementScheduleMemberType? memberType = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, RoleManagementExpandedProperties expandedProperties = null) + { + return new RoleEligibilityScheduleInstanceData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, roleEligibilityScheduleId, status, startOn, endOn, memberType, condition, conditionVersion, createdOn, expandedProperties); + } + + /// Initializes a new instance of RoleEligibilityScheduleRequestData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role eligibility schedule request scope. + /// The role definition ID. + /// The principal ID. + /// The principal type of the assigned principal ID. + /// The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc. + /// The status of the role eligibility schedule request. + /// The approvalId of the role eligibility schedule request. + /// The resultant role eligibility schedule id or the role eligibility schedule id being updated. + /// The role eligibility schedule instance id being updated. + /// Justification for the role eligibility. + /// Ticket Info of the role eligibility. + /// The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'. + /// Version of the condition. Currently accepted value is '2.0'. + /// DateTime when role eligibility schedule request was created. + /// Id of the user who created this request. + /// Additional properties of principal, scope and role definition. + /// Start DateTime of the role eligibility schedule. + /// Type of the role eligibility schedule expiration. + /// End DateTime of the role eligibility schedule. + /// Duration of the role eligibility schedule in TimeSpan. + /// A new instance for mocking. + public static RoleEligibilityScheduleRequestData RoleEligibilityScheduleRequestData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, Guid? principalId = null, RoleManagementPrincipalType? principalType = null, RoleManagementScheduleRequestType? requestType = null, RoleManagementScheduleStatus? status = null, string approvalId = null, ResourceIdentifier targetRoleEligibilityScheduleId = null, ResourceIdentifier targetRoleEligibilityScheduleInstanceId = null, string justification = null, RoleEligibilityScheduleRequestPropertiesTicketInfo ticketInfo = null, string condition = null, string conditionVersion = null, DateTimeOffset? createdOn = null, Guid? requestorId = null, RoleManagementExpandedProperties expandedProperties = null, DateTimeOffset? startOn = null, RoleManagementScheduleExpirationType? expirationType = null, DateTimeOffset? endOn = null, TimeSpan? duration = null) + { + return new RoleEligibilityScheduleRequestData(id, name, resourceType, systemData, scope, roleDefinitionId, principalId, principalType, requestType, status, approvalId, targetRoleEligibilityScheduleId, targetRoleEligibilityScheduleInstanceId, justification, ticketInfo, condition, conditionVersion, createdOn, requestorId, expandedProperties, startOn, expirationType, endOn, duration); + } + + /// Initializes a new instance of RoleManagementPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role management policy scope. + /// The role management policy display name. + /// The role management policy description. + /// The role management policy is default policy. + /// The name of the entity last modified it. + /// The last modified date time. + /// + /// The rule applied to the policy. + /// 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 . + /// + /// + /// The readonly computed rule applied to the policy. + /// 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 . + /// + /// Additional properties of scope. + /// A new instance for mocking. + public static RoleManagementPolicyData RoleManagementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, string displayName = null, string description = null, bool? isOrganizationDefault = null, RoleManagementPrincipal lastModifiedBy = null, DateTimeOffset? lastModifiedOn = null, IEnumerable rules = null, IEnumerable effectiveRules = null, RoleManagementPolicyProperties policyProperties = null) + { + rules ??= new List(); + effectiveRules ??= new List(); + + return new RoleManagementPolicyData(id, name, resourceType, systemData, scope, displayName, description, isOrganizationDefault, lastModifiedBy, lastModifiedOn, rules?.ToList(), effectiveRules?.ToList(), policyProperties); + } + + /// Initializes a new instance of RoleManagementPolicyProperties. + /// Scope id of the resource. + /// Display name of the resource. + /// Type of the scope. + /// A new instance for mocking. + public static RoleManagementPolicyProperties RoleManagementPolicyProperties(ResourceIdentifier scopeId = null, string scopeDisplayName = null, RoleManagementScopeType? scopeType = null) + { + return new RoleManagementPolicyProperties(scopeId, scopeDisplayName, scopeType); + } + + /// Initializes a new instance of RoleManagementPolicyAssignmentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The role management policy scope. + /// The role definition of management policy assignment. + /// The policy id role management policy assignment. + /// + /// The readonly computed rule applied to the policy. + /// 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 . + /// + /// Additional properties of scope, role definition and policy. + /// A new instance for mocking. + public static RoleManagementPolicyAssignmentData RoleManagementPolicyAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scope = null, ResourceIdentifier roleDefinitionId = null, ResourceIdentifier policyId = null, IEnumerable effectiveRules = null, PolicyAssignmentProperties policyAssignmentProperties = null) + { + effectiveRules ??= new List(); + + return new RoleManagementPolicyAssignmentData(id, name, resourceType, systemData, scope, roleDefinitionId, policyId, effectiveRules?.ToList(), policyAssignmentProperties); + } + + /// Initializes a new instance of PolicyAssignmentProperties. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Id of the policy. + /// The name of the entity last modified it. + /// The last modified date time. + /// Id of the role definition. + /// Display name of the role definition. + /// The role type. + /// Scope id of the resource. + /// Display name of the resource. + /// Type of the scope. + /// A new instance for mocking. + public static PolicyAssignmentProperties PolicyAssignmentProperties(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier policyId = null, RoleManagementPrincipal lastModifiedBy = null, DateTimeOffset? lastModifiedOn = null, ResourceIdentifier roleDefinitionId = null, string roleDefinitionDisplayName = null, AuthorizationRoleType? roleType = null, ResourceIdentifier scopeId = null, string scopeDisplayName = null, RoleManagementScopeType? scopeType = null) + { + return new PolicyAssignmentProperties(id, name, resourceType, systemData, policyId, lastModifiedBy, lastModifiedOn, roleDefinitionId, roleDefinitionDisplayName, roleType, scopeId, scopeDisplayName, scopeType); + } + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md b/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md index fe85c59a3d64..236e9d020c30 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/autorest.md +++ b/sdk/authorization/Azure.ResourceManager.Authorization/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: Authorization namespace: Azure.ResourceManager.Authorization