Skip to content

Commit

Permalink
CodeGen from PR 30637 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 114c216f8e6877725b5187e7d82b8d8e9aa67224 into 1b9c5dafba0f4b5185279197f82b350a46fe43ba
  • Loading branch information
SDKAuto committed Sep 30, 2024
1 parent b7fe65c commit 80a9bf5
Show file tree
Hide file tree
Showing 200 changed files with 25,488 additions and 5,277 deletions.
6 changes: 3 additions & 3 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
"commit": "71c6d575b514f2640f5165d7b5199ad697a8cb5a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md"
"autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/azurestackhci/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@
DeploymentSettingsOperations,
EdgeDevicesOperations,
ExtensionsOperations,
GalleryImagesOperations,
GuestAgentOperations,
GuestAgentsOperations,
HybridIdentityMetadataOperations,
LogicalNetworksOperations,
MarketplaceGalleryImagesOperations,
NetworkInterfacesOperations,
OffersOperations,
Operations,
PublishersOperations,
SecuritySettingsOperations,
SkusOperations,
StorageContainersOperations,
UpdateRunsOperations,
UpdateSummariesOperations,
UpdatesOperations,
VirtualHardDisksOperations,
VirtualMachineInstancesOperations,
)

if TYPE_CHECKING:
Expand All @@ -52,6 +62,15 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.azurestackhci.operations.GalleryImagesOperations
:ivar logical_networks: LogicalNetworksOperations operations
:vartype logical_networks: azure.mgmt.azurestackhci.operations.LogicalNetworksOperations
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
:vartype marketplace_gallery_images:
azure.mgmt.azurestackhci.operations.MarketplaceGalleryImagesOperations
:ivar network_interfaces: NetworkInterfacesOperations operations
:vartype network_interfaces: azure.mgmt.azurestackhci.operations.NetworkInterfacesOperations
:ivar offers: OffersOperations operations
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
:ivar operations: Operations operations
Expand All @@ -62,19 +81,33 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype security_settings: azure.mgmt.azurestackhci.operations.SecuritySettingsOperations
:ivar skus: SkusOperations operations
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
:ivar storage_containers: StorageContainersOperations operations
:vartype storage_containers: azure.mgmt.azurestackhci.operations.StorageContainersOperations
:ivar update_runs: UpdateRunsOperations operations
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
:ivar update_summaries: UpdateSummariesOperations operations
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
:ivar updates: UpdatesOperations operations
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.operations.VirtualHardDisksOperations
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
:vartype virtual_machine_instances:
azure.mgmt.azurestackhci.operations.VirtualMachineInstancesOperations
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
:ivar guest_agent: GuestAgentOperations operations
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
:ivar guest_agents: GuestAgentsOperations operations
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down Expand Up @@ -122,18 +155,42 @@ def __init__(
)
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.logical_networks = LogicalNetworksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_interfaces = NetworkInterfacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
self.security_settings = SecuritySettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.storage_containers = StorageContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
self.update_summaries = UpdateSummariesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_hard_disks = VirtualHardDisksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.virtual_machine_instances = VirtualMachineInstancesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-att
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2024-01-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "8.0.0b4"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@
DeploymentSettingsOperations,
EdgeDevicesOperations,
ExtensionsOperations,
GalleryImagesOperations,
GuestAgentOperations,
GuestAgentsOperations,
HybridIdentityMetadataOperations,
LogicalNetworksOperations,
MarketplaceGalleryImagesOperations,
NetworkInterfacesOperations,
OffersOperations,
Operations,
PublishersOperations,
SecuritySettingsOperations,
SkusOperations,
StorageContainersOperations,
UpdateRunsOperations,
UpdateSummariesOperations,
UpdatesOperations,
VirtualHardDisksOperations,
VirtualMachineInstancesOperations,
)

if TYPE_CHECKING:
Expand All @@ -53,6 +63,16 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype edge_devices: azure.mgmt.azurestackhci.aio.operations.EdgeDevicesOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure.mgmt.azurestackhci.aio.operations.ExtensionsOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.azurestackhci.aio.operations.GalleryImagesOperations
:ivar logical_networks: LogicalNetworksOperations operations
:vartype logical_networks: azure.mgmt.azurestackhci.aio.operations.LogicalNetworksOperations
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
:vartype marketplace_gallery_images:
azure.mgmt.azurestackhci.aio.operations.MarketplaceGalleryImagesOperations
:ivar network_interfaces: NetworkInterfacesOperations operations
:vartype network_interfaces:
azure.mgmt.azurestackhci.aio.operations.NetworkInterfacesOperations
:ivar offers: OffersOperations operations
:vartype offers: azure.mgmt.azurestackhci.aio.operations.OffersOperations
:ivar operations: Operations operations
Expand All @@ -63,19 +83,34 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype security_settings: azure.mgmt.azurestackhci.aio.operations.SecuritySettingsOperations
:ivar skus: SkusOperations operations
:vartype skus: azure.mgmt.azurestackhci.aio.operations.SkusOperations
:ivar storage_containers: StorageContainersOperations operations
:vartype storage_containers:
azure.mgmt.azurestackhci.aio.operations.StorageContainersOperations
:ivar update_runs: UpdateRunsOperations operations
:vartype update_runs: azure.mgmt.azurestackhci.aio.operations.UpdateRunsOperations
:ivar update_summaries: UpdateSummariesOperations operations
:vartype update_summaries: azure.mgmt.azurestackhci.aio.operations.UpdateSummariesOperations
:ivar updates: UpdatesOperations operations
:vartype updates: azure.mgmt.azurestackhci.aio.operations.UpdatesOperations
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.aio.operations.VirtualHardDisksOperations
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
:vartype virtual_machine_instances:
azure.mgmt.azurestackhci.aio.operations.VirtualMachineInstancesOperations
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.azurestackhci.aio.operations.HybridIdentityMetadataOperations
:ivar guest_agent: GuestAgentOperations operations
:vartype guest_agent: azure.mgmt.azurestackhci.aio.operations.GuestAgentOperations
:ivar guest_agents: GuestAgentsOperations operations
:vartype guest_agents: azure.mgmt.azurestackhci.aio.operations.GuestAgentsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down Expand Up @@ -123,18 +158,42 @@ def __init__(
)
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.logical_networks = LogicalNetworksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_interfaces = NetworkInterfacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
self.security_settings = SecuritySettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.storage_containers = StorageContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
self.update_summaries = UpdateSummariesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_hard_disks = VirtualHardDisksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.virtual_machine_instances = VirtualMachineInstancesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-att
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2024-01-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading

0 comments on commit 80a9bf5

Please sign in to comment.