forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArmComputeModelFactory.CloudService.cs
More file actions
105 lines (90 loc) · 7.74 KB
/
Copy pathArmComputeModelFactory.CloudService.cs
File metadata and controls
105 lines (90 loc) · 7.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Azure.Core;
using Azure.ResourceManager.Compute.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Compute.Models
{
// ---------------------------------------------------------------------
// Hand-authored back-compat ModelFactory shims for the deprecated
// CloudService API surface. CloudService (classic) was removed from the
// TypeSpec spec, so the generator does not emit factory methods for these
// types. The types themselves are kept under src/Customize/CloudService/
// as obsolete stubs that throw NotSupportedException for any runtime
// operation; these factory methods follow the same pattern to preserve
// API surface for back-compat without implying the operations still work.
// ---------------------------------------------------------------------
public static partial class ArmComputeModelFactory
{
private const string CloudServiceNotSupported = "CloudService operations are no longer supported.";
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceData CloudServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, IEnumerable<string> zones = null, Uri packageUri = null, string configuration = null, Uri configurationUri = null, bool? startCloudService = default, bool? allowModelOverride = default, CloudServiceUpgradeMode? upgradeMode = default, IEnumerable<CloudServiceRoleProfileProperties> roles = null, IEnumerable<CloudServiceVaultSecretGroup> osSecrets = null, CloudServiceNetworkProfile networkProfile = null, IEnumerable<CloudServiceExtension> extensions = null, string provisioningState = null, string uniqueId = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceOSFamilyData CloudServiceOSFamilyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string resourceName = null, AzureLocation? location = default, string osFamilyName = null, string label = null, IEnumerable<OSVersionPropertiesBase> versions = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceOSVersionData CloudServiceOSVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = default, string family = null, string familyLabel = null, string version = null, string label = null, bool? isDefault = default, bool? isActive = default)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceRoleData CloudServiceRoleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = default, CloudServiceRoleSku sku = null, string uniqueId = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceRoleInstanceData CloudServiceRoleInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = default, IReadOnlyDictionary<string, string> tags = null, InstanceSku sku = null, IEnumerable<WritableSubResource> networkInterfaces = null, RoleInstanceView instanceView = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceExtension CloudServiceExtension(string name = null, string publisher = null, string cloudServiceExtensionPropertiesType = null, string typeHandlerVersion = null, bool? autoUpgradeMinorVersion = default, BinaryData settings = null, BinaryData protectedSettings = null, CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault = null, string forceUpdateTag = null, string provisioningState = null, IEnumerable<string> rolesAppliedTo = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static CloudServiceInstanceView CloudServiceInstanceView(IEnumerable<StatusCodeCount> roleInstanceStatusesSummary = null, string sdkVersion = null, IEnumerable<string> privateIds = null, IEnumerable<ResourceInstanceViewStatus> statuses = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static InstanceSku InstanceSku(string name = null, string tier = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static OSVersionPropertiesBase OSVersionPropertiesBase(string version = null, string label = null, bool? isDefault = default, bool? isActive = default)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static ResourceInstanceViewStatus ResourceInstanceViewStatus(string code = null, string displayStatus = null, string message = null, DateTimeOffset? time = default, ComputeStatusLevelType? level = default)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static RoleInstanceView RoleInstanceView(int? platformUpdateDomain = default, int? platformFaultDomain = default, string privateId = null, IEnumerable<ResourceInstanceViewStatus> statuses = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static StatusCodeCount StatusCodeCount(string code = null, int? count = default)
=> throw new NotSupportedException(CloudServiceNotSupported);
/// <summary> Not supported. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(CloudServiceNotSupported)]
public static UpdateDomainIdentifier UpdateDomainIdentifier(ResourceIdentifier id = null, string name = null)
=> throw new NotSupportedException(CloudServiceNotSupported);
}
}