Skip to content

Commit e457f31

Browse files
author
SDKAuto
committed
CodeGen from PR 32282 in Azure/azure-rest-api-specs
Merge 3f8b2c6b438fc8bfb90100e29a602e69d8319bd5 into e0ef299f475a972c2856175014bf4f1e9873dda0
1 parent 7656cf2 commit e457f31

File tree

51 files changed

+1600
-840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1600
-840
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.DevOpsInfrastructure",
3+
"CrossLanguageDefinitionId": {
4+
"microsoft.devopsinfrastructure.models.AgentProfile": "Microsoft.DevOpsInfrastructure.AgentProfile",
5+
"microsoft.devopsinfrastructure.models.ResourcePredictionsProfile": "Microsoft.DevOpsInfrastructure.ResourcePredictionsProfile",
6+
"microsoft.devopsinfrastructure.models.AutomaticResourcePredictionsProfile": "Microsoft.DevOpsInfrastructure.AutomaticResourcePredictionsProfile",
7+
"microsoft.devopsinfrastructure.models.OrganizationProfile": "Microsoft.DevOpsInfrastructure.OrganizationProfile",
8+
"microsoft.devopsinfrastructure.models.AzureDevOpsOrganizationProfile": "Microsoft.DevOpsInfrastructure.AzureDevOpsOrganizationProfile",
9+
"microsoft.devopsinfrastructure.models.AzureDevOpsPermissionProfile": "Microsoft.DevOpsInfrastructure.AzureDevOpsPermissionProfile",
10+
"microsoft.devopsinfrastructure.models.CheckNameAvailability": "Microsoft.DevOpsInfrastructure.CheckNameAvailability",
11+
"microsoft.devopsinfrastructure.models.CheckNameAvailabilityResult": "Microsoft.DevOpsInfrastructure.CheckNameAvailabilityResult",
12+
"microsoft.devopsinfrastructure.models.DataDisk": "Microsoft.DevOpsInfrastructure.DataDisk",
13+
"microsoft.devopsinfrastructure.models.DevOpsAzureSku": "Microsoft.DevOpsInfrastructure.DevOpsAzureSku",
14+
"microsoft.devopsinfrastructure.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
15+
"microsoft.devopsinfrastructure.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
16+
"microsoft.devopsinfrastructure.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
17+
"microsoft.devopsinfrastructure.models.FabricProfile": "Microsoft.DevOpsInfrastructure.FabricProfile",
18+
"microsoft.devopsinfrastructure.models.GitHubOrganization": "Microsoft.DevOpsInfrastructure.GitHubOrganization",
19+
"microsoft.devopsinfrastructure.models.GitHubOrganizationProfile": "Microsoft.DevOpsInfrastructure.GitHubOrganizationProfile",
20+
"microsoft.devopsinfrastructure.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
21+
"microsoft.devopsinfrastructure.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
22+
"microsoft.devopsinfrastructure.models.ImageVersion": "Microsoft.DevOpsInfrastructure.ImageVersion",
23+
"microsoft.devopsinfrastructure.models.ImageVersionProperties": "Microsoft.DevOpsInfrastructure.ImageVersionProperties",
24+
"microsoft.devopsinfrastructure.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
25+
"microsoft.devopsinfrastructure.models.ManualResourcePredictionsProfile": "Microsoft.DevOpsInfrastructure.ManualResourcePredictionsProfile",
26+
"microsoft.devopsinfrastructure.models.NetworkProfile": "Microsoft.DevOpsInfrastructure.NetworkProfile",
27+
"microsoft.devopsinfrastructure.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
28+
"microsoft.devopsinfrastructure.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
29+
"microsoft.devopsinfrastructure.models.Organization": "Microsoft.DevOpsInfrastructure.Organization",
30+
"microsoft.devopsinfrastructure.models.OsProfile": "Microsoft.DevOpsInfrastructure.OsProfile",
31+
"microsoft.devopsinfrastructure.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
32+
"microsoft.devopsinfrastructure.models.Pool": "Microsoft.DevOpsInfrastructure.Pool",
33+
"microsoft.devopsinfrastructure.models.PoolImage": "Microsoft.DevOpsInfrastructure.PoolImage",
34+
"microsoft.devopsinfrastructure.models.PoolProperties": "Microsoft.DevOpsInfrastructure.PoolProperties",
35+
"microsoft.devopsinfrastructure.models.PoolUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
36+
"microsoft.devopsinfrastructure.models.PoolUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
37+
"microsoft.devopsinfrastructure.models.Quota": "Microsoft.DevOpsInfrastructure.Quota",
38+
"microsoft.devopsinfrastructure.models.QuotaName": "Microsoft.DevOpsInfrastructure.QuotaName",
39+
"microsoft.devopsinfrastructure.models.ResourceDetailsObject": "Microsoft.DevOpsInfrastructure.ResourceDetailsObject",
40+
"microsoft.devopsinfrastructure.models.ResourceDetailsObjectProperties": "Microsoft.DevOpsInfrastructure.ResourceDetailsObjectProperties",
41+
"microsoft.devopsinfrastructure.models.ResourcePredictions": "Microsoft.DevOpsInfrastructure.ResourcePredictions",
42+
"microsoft.devopsinfrastructure.models.ResourceSku": "Microsoft.DevOpsInfrastructure.ResourceSku",
43+
"microsoft.devopsinfrastructure.models.ResourceSkuCapabilities": "Microsoft.DevOpsInfrastructure.ResourceSkuCapabilities",
44+
"microsoft.devopsinfrastructure.models.ResourceSkuLocationInfo": "Microsoft.DevOpsInfrastructure.ResourceSkuLocationInfo",
45+
"microsoft.devopsinfrastructure.models.ResourceSkuProperties": "Microsoft.DevOpsInfrastructure.ResourceSkuProperties",
46+
"microsoft.devopsinfrastructure.models.ResourceSkuRestrictionInfo": "Microsoft.DevOpsInfrastructure.ResourceSkuRestrictionInfo",
47+
"microsoft.devopsinfrastructure.models.ResourceSkuRestrictions": "Microsoft.DevOpsInfrastructure.ResourceSkuRestrictions",
48+
"microsoft.devopsinfrastructure.models.ResourceSkuZoneDetails": "Microsoft.DevOpsInfrastructure.ResourceSkuZoneDetails",
49+
"microsoft.devopsinfrastructure.models.SecretsManagementSettings": "Microsoft.DevOpsInfrastructure.SecretsManagementSettings",
50+
"microsoft.devopsinfrastructure.models.Stateful": "Microsoft.DevOpsInfrastructure.Stateful",
51+
"microsoft.devopsinfrastructure.models.StatelessAgentProfile": "Microsoft.DevOpsInfrastructure.StatelessAgentProfile",
52+
"microsoft.devopsinfrastructure.models.StorageProfile": "Microsoft.DevOpsInfrastructure.StorageProfile",
53+
"microsoft.devopsinfrastructure.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
54+
"microsoft.devopsinfrastructure.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
55+
"microsoft.devopsinfrastructure.models.VmssFabricProfile": "Microsoft.DevOpsInfrastructure.VmssFabricProfile",
56+
"microsoft.devopsinfrastructure.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
57+
"microsoft.devopsinfrastructure.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
58+
"microsoft.devopsinfrastructure.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
59+
"microsoft.devopsinfrastructure.models.ProvisioningState": "Microsoft.DevOpsInfrastructure.ProvisioningState",
60+
"microsoft.devopsinfrastructure.models.AzureDevOpsPermissionType": "Microsoft.DevOpsInfrastructure.AzureDevOpsPermissionType",
61+
"microsoft.devopsinfrastructure.models.ResourcePredictionsProfileType": "Microsoft.DevOpsInfrastructure.ResourcePredictionsProfileType",
62+
"microsoft.devopsinfrastructure.models.PredictionPreference": "Microsoft.DevOpsInfrastructure.PredictionPreference",
63+
"microsoft.devopsinfrastructure.models.EphemeralType": "Microsoft.DevOpsInfrastructure.EphemeralType",
64+
"microsoft.devopsinfrastructure.models.CertificateStoreNameOption": "Microsoft.DevOpsInfrastructure.CertificateStoreNameOption",
65+
"microsoft.devopsinfrastructure.models.LogonType": "Microsoft.DevOpsInfrastructure.LogonType",
66+
"microsoft.devopsinfrastructure.models.OsDiskStorageAccountType": "Microsoft.DevOpsInfrastructure.OsDiskStorageAccountType",
67+
"microsoft.devopsinfrastructure.models.CachingType": "Microsoft.DevOpsInfrastructure.CachingType",
68+
"microsoft.devopsinfrastructure.models.StorageAccountType": "Microsoft.DevOpsInfrastructure.StorageAccountType",
69+
"microsoft.devopsinfrastructure.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
70+
"microsoft.devopsinfrastructure.models.AvailabilityStatus": "Microsoft.DevOpsInfrastructure.AvailabilityStatus",
71+
"microsoft.devopsinfrastructure.models.CheckNameAvailabilityReason": "Microsoft.DevOpsInfrastructure.CheckNameAvailabilityReason",
72+
"microsoft.devopsinfrastructure.models.DevOpsInfrastructureResourceType": "Microsoft.DevOpsInfrastructure.DevOpsInfrastructureResourceType",
73+
"microsoft.devopsinfrastructure.models.ResourceStatus": "Microsoft.DevOpsInfrastructure.ResourceStatus",
74+
"microsoft.devopsinfrastructure.models.ResourceSkuRestrictionsType": "Microsoft.DevOpsInfrastructure.ResourceSkuRestrictionsType",
75+
"microsoft.devopsinfrastructure.models.ResourceSkuRestrictionsReasonCode": "Microsoft.DevOpsInfrastructure.ResourceSkuRestrictionsReasonCode",
76+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
77+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.get": "Microsoft.DevOpsInfrastructure.Pools.get",
78+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.begin_create_or_update": "Microsoft.DevOpsInfrastructure.Pools.createOrUpdate",
79+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.begin_update": "Microsoft.DevOpsInfrastructure.Pools.update",
80+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.begin_delete": "Microsoft.DevOpsInfrastructure.Pools.delete",
81+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.list_by_resource_group": "Microsoft.DevOpsInfrastructure.Pools.listByResourceGroup",
82+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.list_by_subscription": "Microsoft.DevOpsInfrastructure.Pools.listBySubscription",
83+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.pools.check_name_availability": "Microsoft.DevOpsInfrastructure.Pools.checkNameAvailability",
84+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.resource_details.list_by_pool": "Microsoft.DevOpsInfrastructure.ResourceDetails.listByPool",
85+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.sku.list_by_location": "Microsoft.DevOpsInfrastructure.Sku.listByLocation",
86+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.subscription_usages.usages": "Microsoft.DevOpsInfrastructure.SubscriptionUsages.usages",
87+
"microsoft.devopsinfrastructure.DevOpsInfrastructureMgmtClient.image_versions.list_by_image": "Microsoft.DevOpsInfrastructure.ImageVersions.listByImage"
88+
}
89+
}

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/azure/mgmt/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/azure/mgmt/devopsinfrastructure/models/__init__.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/generated_samples/create_or_update_pool.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=line-too-long,useless-suppression
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,12 +9,12 @@
89

910
from azure.identity import DefaultAzureCredential
1011

11-
from azure.mgmt.devopsinfrastructure import DevOpsInfrastructureMgmtClient
12+
from microsoft.devopsinfrastructure import DevOpsInfrastructureMgmtClient
1213

1314
"""
1415
# PREREQUISITES
1516
pip install azure-identity
16-
pip install azure-mgmt-devopsinfrastructure
17+
pip install microsoft-devopsinfrastructure
1718
# USAGE
1819
python create_or_update_pool.py
1920
@@ -39,14 +40,26 @@ def main():
3940
"agentProfile": {"kind": "Stateless"},
4041
"devCenterProjectResourceId": "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
4142
"fabricProfile": {
42-
"images": [{"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"}],
43+
"images": [
44+
{
45+
"ephemeralType": "Automatic",
46+
"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest",
47+
}
48+
],
4349
"kind": "Vmss",
50+
"osProfile": {
51+
"secretsManagementSettings": {
52+
"certificateStoreName": "Root",
53+
"keyExportable": False,
54+
"observedCertificates": ["https://abc.vault.azure.net/secrets/one"],
55+
}
56+
},
4457
"sku": {"name": "Standard_D4ads_v5"},
4558
},
4659
"maximumConcurrency": 10,
4760
"organizationProfile": {
4861
"kind": "AzureDevOps",
49-
"organizations": [{"url": "https://mseng.visualstudio.com"}],
62+
"organizations": [{"openAccess": True, "url": "https://mseng.visualstudio.com"}],
5063
},
5164
"provisioningState": "Succeeded",
5265
},
@@ -55,6 +68,6 @@ def main():
5568
print(response)
5669

5770

58-
# x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json
71+
# x-ms-original-file: 2025-01-21/CreateOrUpdatePool.json
5972
if __name__ == "__main__":
6073
main()

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/generated_samples/delete_pool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
from azure.identity import DefaultAzureCredential
1010

11-
from azure.mgmt.devopsinfrastructure import DevOpsInfrastructureMgmtClient
11+
from microsoft.devopsinfrastructure import DevOpsInfrastructureMgmtClient
1212

1313
"""
1414
# PREREQUISITES
1515
pip install azure-identity
16-
pip install azure-mgmt-devopsinfrastructure
16+
pip install microsoft-devopsinfrastructure
1717
# USAGE
1818
python delete_pool.py
1919
@@ -36,6 +36,6 @@ def main():
3636
).result()
3737

3838

39-
# x-ms-original-file: 2024-10-19/DeletePool.json
39+
# x-ms-original-file: 2025-01-21/DeletePool.json
4040
if __name__ == "__main__":
4141
main()

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/generated_samples/get_pool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
from azure.identity import DefaultAzureCredential
1010

11-
from azure.mgmt.devopsinfrastructure import DevOpsInfrastructureMgmtClient
11+
from microsoft.devopsinfrastructure import DevOpsInfrastructureMgmtClient
1212

1313
"""
1414
# PREREQUISITES
1515
pip install azure-identity
16-
pip install azure-mgmt-devopsinfrastructure
16+
pip install microsoft-devopsinfrastructure
1717
# USAGE
1818
python get_pool.py
1919
@@ -37,6 +37,6 @@ def main():
3737
print(response)
3838

3939

40-
# x-ms-original-file: 2024-10-19/GetPool.json
40+
# x-ms-original-file: 2025-01-21/GetPool.json
4141
if __name__ == "__main__":
4242
main()

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/generated_samples/image_versions_list_by_image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
from azure.identity import DefaultAzureCredential
1010

11-
from azure.mgmt.devopsinfrastructure import DevOpsInfrastructureMgmtClient
11+
from microsoft.devopsinfrastructure import DevOpsInfrastructureMgmtClient
1212

1313
"""
1414
# PREREQUISITES
1515
pip install azure-identity
16-
pip install azure-mgmt-devopsinfrastructure
16+
pip install microsoft-devopsinfrastructure
1717
# USAGE
1818
python image_versions_list_by_image.py
1919
@@ -38,6 +38,6 @@ def main():
3838
print(item)
3939

4040

41-
# x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json
41+
# x-ms-original-file: 2025-01-21/ImageVersions_ListByImage.json
4242
if __name__ == "__main__":
4343
main()

0 commit comments

Comments
 (0)