SharesOperations Class
SharesOperations operations.
- Inheritance
-
builtins.objectSharesOperations
Constructor
SharesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- api_version
The API version. Constant value: "2019-03-01".
Methods
| create_or_update |
Creates a new share or updates an existing share on the device. |
| delete |
Deletes the share on the data box edge/gateway device. |
| get |
Gets a share by name. |
| list_by_data_box_edge_device |
Lists all the shares in a data box edge/gateway device. |
| refresh |
Refreshes the share metadata with the data from the cloud. |
create_or_update
Creates a new share or updates an existing share on the device.
create_or_update(device_name, name, share, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config)
Parameters
- raw
- bool
The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns
An instance of LROPoller that returns Share or ClientRawResponse if raw==True
Return type
Exceptions
delete
Deletes the share on the data box edge/gateway device.
delete(device_name, name, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config)
Parameters
- raw
- bool
The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns
An instance of LROPoller that returns None or ClientRawResponse if raw==True
Return type
Exceptions
get
Gets a share by name.
get(device_name, name, resource_group_name, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
Share or ClientRawResponse if raw=true
Return type
Exceptions
list_by_data_box_edge_device
Lists all the shares in a data box edge/gateway device.
list_by_data_box_edge_device(device_name, resource_group_name, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
An iterator like instance of Share
Return type
Exceptions
refresh
Refreshes the share metadata with the data from the cloud.
refresh(device_name, name, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config)
Parameters
- raw
- bool
The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns
An instance of LROPoller that returns None or ClientRawResponse if raw==True
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.edgegateway.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\edgegateway\\models\\__init__.py'>
Feedback
Submit and view feedback for