Skip to content

Commit

Permalink
remove rest/api urls
Browse files Browse the repository at this point in the history
  • Loading branch information
vilit1 committed Dec 13, 2024
1 parent 0802578 commit 9ff929a
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion azext_iot/central/services/destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/1.1-previewdataplane/destinations
from typing import List, Union
from knack.log import get_logger

Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/devices

from typing import List
import requests
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/device_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/deviceGroups

from typing import List
import requests
Expand Down
5 changes: 0 additions & 5 deletions azext_iot/central/services/device_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/devicetemplates

import requests
from typing import List
Expand Down Expand Up @@ -138,8 +137,6 @@ def create_device_template(
device_template_id: case sensitive device template id,
payload: see example payload available in
<repo-root>/azext_iot/tests/central/json/device_template_int_test.json
or check here for more information
https://learn.microsoft.com/en-us/rest/api/iotcentral/devicetemplates
token: (OPTIONAL) authorization token to fetch device details from IoTC.
MUST INCLUDE type (e.g. 'SharedAccessToken ...', 'Bearer ...')
central_dns_suffix: {centralDnsSuffixInPath} as found in docs
Expand Down Expand Up @@ -181,8 +178,6 @@ def update_device_template(
device_template_id: case sensitive device template id,
payload: see example payload available in
<repo-root>/azext_iot/tests/central/json/device_template_int_test.json
or check here for more information
https://learn.microsoft.com/en-us/rest/api/iotcentral/devicetemplates
token: (OPTIONAL) authorization token to fetch device details from IoTC.
MUST INCLUDE type (e.g. 'SharedAccessToken ...', 'Bearer ...')
central_dns_suffix: {centralDnsSuffixInPath} as found in docs
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/enrollment_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/deviceGroups

from typing import List
import requests
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/1.1-previewdataplane/exports
from typing import List, Union
from knack.log import get_logger

Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/fileuploads

import requests
from typing import Union
Expand Down
3 changes: 0 additions & 3 deletions azext_iot/central/services/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/jobs

import requests
from typing import List, Union
Expand Down Expand Up @@ -358,8 +357,6 @@ def create_job(
group_id: The ID of the device group on which to execute the job.
content: see example payload available in
<repo-root>/azext_iot/tests/central/json/job_int_test.json
or check here for more information
https://learn.microsoft.com/en-us/rest/api/iotcentral/1.1-preview/jobs/create#cloudpropertyjobdata
job_name: (OPTIONAL)(non-unique) human readable name for the job
description: (OPTIONAL) Detailed description of the job.
token: (OPTIONAL) authorization token to fetch job details from IoTC.
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/roles

import requests
from knack.log import get_logger
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/roles

from typing import List
import requests
Expand Down
1 change: 0 additions & 1 deletion azext_iot/central/services/scheduled_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# This is largely derived from https://learn.microsoft.com/en-us/rest/api/iotcentral/deviceGroups

from typing import List
import requests
Expand Down
2 changes: 0 additions & 2 deletions azext_iot/dps/services/global_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ def get_registration_state(id_scope: str, key: str, device_id: str):
Gets device registration state from global dps endpoint
Usefule for when dps name is unknown
https://learn.microsoft.com/en-us/rest/api/iot-dps/getdeviceregistrationstate/getdeviceregistrationstate
Params:
id_scope: dps id_scope
key: either primary or secondary symmetric key
Expand Down
2 changes: 0 additions & 2 deletions azext_iot/sdk/iothub/service/operations/devices_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def get_devices(
"""Gets the identities of multiple devices from the IoT Hub identity
registry. Not recommended. Use the IoT Hub query API to retrieve device
twin and device identity information. See
https://learn.microsoft.com/en-us/rest/api/iothub/service/queryiothub
and
https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-query-language
for more information.
Expand Down

0 comments on commit 9ff929a

Please sign in to comment.