azure.mgmt.computefleet package

Submodules

Module contents

class azure.mgmt.computefleet.ComputeFleetMgmtClient(credential: TokenCredential, subscription_id: str, base_url: str = 'https://management.azure.com', **kwargs: Any)[source]

Bases: object

ComputeFleetMgmtClient.

Variables:
Parameters:
  • credential (TokenCredential) – Credential used to authenticate requests to the service. Required.

  • subscription_id (str) – The ID of the target subscription. The value must be an UUID. Required.

  • base_url (str) – Service host. Default value is “https://management.azure.com”.

Keyword Arguments:
  • api_version (str) – The API version to use for this operation. Default value is “2024-05-01-preview”. Note that overriding this default value may result in unsupported behavior.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

close() None[source]
send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) HttpResponse[source]

Runs the network request through the client’s chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

Parameters:

request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments:

stream (bool) – Whether the response payload will be streamed. Defaults to False.

Returns:

The response of your network call. Does not do error handling on your response.

Return type:

HttpResponse