RecordSetsOperations Class
RecordSetsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectRecordSetsOperations
Constructor
RecordSetsOperations(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
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Creates or updates a record set within a Private DNS zone. |
| delete |
Deletes a record set from a Private DNS zone. This operation cannot be undone. |
| get |
Gets a record set. |
| list |
Lists all record sets in a Private DNS zone. |
| list_by_type |
Lists the record sets of a specified type in a Private DNS zone. |
| update |
Updates a record set within a Private DNS zone. |
create_or_update
Creates or updates a record set within a Private DNS zone.
async create_or_update(resource_group_name: str, private_zone_name: str, record_type: Union[str, azure.mgmt.privatedns.models._private_dns_management_client_enums.RecordType], relative_record_set_name: str, parameters: azure.mgmt.privatedns.models._models_py3.RecordSet, if_match: Optional[str] = None, if_none_match: Optional[str] = None, **kwargs) -> azure.mgmt.privatedns.models._models_py3.RecordSet
Parameters
- record_type
- str or RecordType
The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the Private DNS zone is created).
- if_match
- str
The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- if_none_match
- str
Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RecordSet, or the result of cls(response)
Return type
Exceptions
delete
Deletes a record set from a Private DNS zone. This operation cannot be undone.
async delete(resource_group_name: str, private_zone_name: str, record_type: Union[str, azure.mgmt.privatedns.models._private_dns_management_client_enums.RecordType], relative_record_set_name: str, if_match: Optional[str] = None, **kwargs) -> None
Parameters
- record_type
- str or RecordType
The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the Private DNS zone is deleted).
- if_match
- str
The ETag of the record set. Omit this value to always delete the current record set. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Gets a record set.
async get(resource_group_name: str, private_zone_name: str, record_type: Union[str, azure.mgmt.privatedns.models._private_dns_management_client_enums.RecordType], relative_record_set_name: str, **kwargs) -> azure.mgmt.privatedns.models._models_py3.RecordSet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RecordSet, or the result of cls(response)
Return type
Exceptions
list
Lists all record sets in a Private DNS zone.
list(resource_group_name: str, private_zone_name: str, top: Optional[int] = None, recordsetnamesuffix: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.privatedns.models._models_py3.RecordSetListResult]
Parameters
- top
- int
The maximum number of record sets to return. If not specified, returns up to 100 record sets.
- recordsetnamesuffix
- str
The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with ".:code:".
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RecordSetListResult or the result of cls(response)
Return type
Exceptions
list_by_type
Lists the record sets of a specified type in a Private DNS zone.
list_by_type(resource_group_name: str, private_zone_name: str, record_type: Union[str, azure.mgmt.privatedns.models._private_dns_management_client_enums.RecordType], top: Optional[int] = None, recordsetnamesuffix: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.privatedns.models._models_py3.RecordSetListResult]
Parameters
- top
- int
The maximum number of record sets to return. If not specified, returns up to 100 record sets.
- recordsetnamesuffix
- str
The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with ".:code:".
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RecordSetListResult or the result of cls(response)
Return type
Exceptions
update
Updates a record set within a Private DNS zone.
async update(resource_group_name: str, private_zone_name: str, record_type: Union[str, azure.mgmt.privatedns.models._private_dns_management_client_enums.RecordType], relative_record_set_name: str, parameters: azure.mgmt.privatedns.models._models_py3.RecordSet, if_match: Optional[str] = None, **kwargs) -> azure.mgmt.privatedns.models._models_py3.RecordSet
Parameters
- if_match
- str
The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RecordSet, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.privatedns.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\privatedns\\models\\__init__.py'>
Feedback
Submit and view feedback for