Skip to content

Commit 581fac8

Browse files
authored
33604: Update docstring for sphinx (#34874)
1 parent 62e1b79 commit 581fac8

File tree

5 files changed

+41
-42
lines changed

5 files changed

+41
-42
lines changed

sdk/maps/azure-maps-search/azure/maps/search/_generated/models/_models_py3.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class GeoJsonFeatureData(msrest.serialization.Model):
574574
All required parameters must be populated in order to send to Azure.
575575
576576
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
577-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
577+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
578578
:type geometry: ~azure.maps.search.models.GeoJsonObject
579579
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
580580
can be any JSON object or a JSON null value.
@@ -614,7 +614,7 @@ def __init__(
614614

615615

616616
class GeoJsonObject(msrest.serialization.Model):
617-
"""A valid ``GeoJSON`` object. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
617+
"""A valid ``GeoJSON`` object. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
618618
619619
You probably want to use the sub-classes and not this class directly. Known
620620
sub-classes are: GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonGeometry, GeoJsonGeometryCollection, GeoJsonLineString, GeoJsonMultiLineString, GeoJsonMultiPoint, GeoJsonMultiPolygon, GeoJsonPoint, GeoJsonPolygon.
@@ -650,12 +650,12 @@ def __init__(
650650

651651

652652
class GeoJsonFeature(GeoJsonObject, GeoJsonFeatureData):
653-
"""A valid ``GeoJSON Feature`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`_ for details.
653+
"""A valid ``GeoJSON Feature`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`__ for details.
654654
655655
All required parameters must be populated in order to send to Azure.
656656
657657
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
658-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
658+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
659659
:type geometry: ~azure.maps.search.models.GeoJsonObject
660660
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
661661
can be any JSON object or a JSON null value.
@@ -732,7 +732,7 @@ def __init__(
732732

733733

734734
class GeoJsonFeatureCollection(GeoJsonObject, GeoJsonFeatureCollectionData):
735-
"""A valid ``GeoJSON FeatureCollection`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`_ for details.
735+
"""A valid ``GeoJSON FeatureCollection`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`__ for details.
736736
737737
All required parameters must be populated in order to send to Azure.
738738
@@ -769,7 +769,7 @@ def __init__(
769769

770770

771771
class GeoJsonGeometry(GeoJsonObject):
772-
"""A valid ``GeoJSON`` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`_ for details.
772+
"""A valid ``GeoJSON`` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`__ for details.
773773
774774
All required parameters must be populated in order to send to Azure.
775775
@@ -826,7 +826,7 @@ def __init__(
826826

827827

828828
class GeoJsonGeometryCollection(GeoJsonObject, GeoJsonGeometryCollectionData):
829-
"""A valid ``GeoJSON GeometryCollection`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`_ for details.
829+
"""A valid ``GeoJSON GeometryCollection`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`__ for details.
830830
831831
All required parameters must be populated in order to send to Azure.
832832
@@ -891,7 +891,7 @@ def __init__(
891891

892892

893893
class GeoJsonLineString(GeoJsonObject, GeoJsonLineStringData):
894-
"""A valid ``GeoJSON LineString`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`_ for details.
894+
"""A valid ``GeoJSON LineString`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`__ for details.
895895
896896
All required parameters must be populated in order to send to Azure.
897897
@@ -955,7 +955,7 @@ def __init__(
955955

956956

957957
class GeoJsonMultiLineString(GeoJsonObject, GeoJsonMultiLineStringData):
958-
"""A valid ``GeoJSON MultiLineString`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`_ for details.
958+
"""A valid ``GeoJSON MultiLineString`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`__ for details.
959959
960960
All required parameters must be populated in order to send to Azure.
961961
@@ -1019,7 +1019,7 @@ def __init__(
10191019

10201020

10211021
class GeoJsonMultiPoint(GeoJsonObject, GeoJsonMultiPointData):
1022-
"""A valid ``GeoJSON MultiPoint`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`_ for details.
1022+
"""A valid ``GeoJSON MultiPoint`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`__ for details.
10231023
10241024
All required parameters must be populated in order to send to Azure.
10251025
@@ -1084,7 +1084,7 @@ def __init__(
10841084

10851085

10861086
class GeoJsonMultiPolygon(GeoJsonObject, GeoJsonMultiPolygonData):
1087-
"""A valid ``GeoJSON MultiPolygon`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`_ for details.
1087+
"""A valid ``GeoJSON MultiPolygon`` object type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`__ for details.
10881088
10891089
All required parameters must be populated in order to send to Azure.
10901090
@@ -1129,7 +1129,7 @@ class GeoJsonPointData(msrest.serialization.Model):
11291129
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
11301130
The first two elements are *longitude* and *latitude*\ , precisely in that order.
11311131
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
1132-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
1132+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
11331133
:type coordinates: list[float]
11341134
"""
11351135

@@ -1152,14 +1152,14 @@ def __init__(
11521152

11531153

11541154
class GeoJsonPoint(GeoJsonObject, GeoJsonPointData):
1155-
"""A valid ``GeoJSON Point`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`_ for details.
1155+
"""A valid ``GeoJSON Point`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`__ for details.
11561156
11571157
All required parameters must be populated in order to send to Azure.
11581158
11591159
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
11601160
The first two elements are *longitude* and *latitude*\ , precisely in that order.
11611161
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
1162-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
1162+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
11631163
:type coordinates: list[float]
11641164
:param type: Required. Specifies the ``GeoJSON`` type. Must be one of the nine valid GeoJSON
11651165
object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon,
@@ -1219,7 +1219,7 @@ def __init__(
12191219

12201220

12211221
class GeoJsonPolygon(GeoJsonObject, GeoJsonPolygonData):
1222-
"""A valid ``GeoJSON Polygon`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`_ for details.
1222+
"""A valid ``GeoJSON Polygon`` geometry type. Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`__ for details.
12231223
12241224
All required parameters must be populated in order to send to Azure.
12251225
@@ -1558,7 +1558,7 @@ class Polygon(msrest.serialization.Model):
15581558
:ivar provider_id: ID of the returned entity.
15591559
:vartype provider_id: str
15601560
:param geometry_data: Geometry data in GeoJSON format. Please refer to `RFC 7946
1561-
<https://tools.ietf.org/html/rfc7946>`_ for details. Present only if "error" is not present.
1561+
<https://tools.ietf.org/html/rfc7946>`__ for details. Present only if "error" is not present.
15621562
:type geometry_data: ~azure.maps.search.models.GeoJsonObject
15631563
"""
15641564

@@ -2095,7 +2095,7 @@ class SearchAlongRouteRequest(msrest.serialization.Model):
20952095
"""This type represents the request body for the Search Along Route service.
20962096
20972097
:param route: A valid ``GeoJSON LineString`` geometry type. Please refer to `RFC 7946
2098-
<https://tools.ietf.org/html/rfc7946#section-3.1.4>`_ for details.
2098+
<https://tools.ietf.org/html/rfc7946#section-3.1.4>`__ for details.
20992099
:type route: ~azure.maps.search.models.GeoJsonLineString
21002100
"""
21012101

@@ -2117,7 +2117,7 @@ class SearchInsideGeometryRequest(msrest.serialization.Model):
21172117
"""This type represents the request body for the Search Inside Geometry service.
21182118
21192119
:param geometry: A valid ``GeoJSON`` object. Please refer to `RFC 7946
2120-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
2120+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
21212121
:type geometry: ~azure.maps.search.models.GeoJsonObject
21222122
"""
21232123

sdk/maps/azure-maps-search/azure/maps/search/_search_client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,7 @@ def search_along_route(
401401
:type route:
402402
~azure.maps.search.models.SearchAlongRouteOptions
403403
:keyword int top:
404-
Maximum number of responses that will be returned. Default value is 10. Max value
405-
is 20.
404+
Maximum number of responses that will be returned. Default value is 10. Max value is 20.
406405
:keyword list[str] brand_filter:
407406
A comma-separated list of brand names which could be used to restrict the
408407
result to specific brands. Item order does not matter. When multiple brands are provided, only
@@ -622,9 +621,9 @@ def search_nearby_point_of_interest(
622621
coordinates: LatLon,
623622
**kwargs: Any
624623
) -> SearchAddressResult:
625-
"""**Search Nearby Point of Interest **
624+
"""**Search Nearby Point of Interest**
626625
627-
If you have a use case for only retrieving POI results around a specific location, the nearby
626+
If you have a use case for only retrieving POI results around a specific location, the nearby
628627
search method may be the right choice. This endpoint will only return POI results, and does not
629628
take in a search query parameter.
630629

sdk/maps/azure-maps-search/azure/maps/search/aio/_search_client_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,7 @@ async def search_along_route(
406406
:type route:
407407
~azure.maps.search.models.SearchAlongRouteOptions
408408
:keyword int top:
409-
Maximum number of responses that will be returned. Default value is 10. Max value
410-
is 20.
409+
Maximum number of responses that will be returned. Default value is 10. Max value is 20.
411410
:keyword list[str] brand_filter:
412411
A comma-separated list of brand names which could be used to restrict the
413412
result to specific brands. Item order does not matter. When multiple brands are provided, only
@@ -628,7 +627,7 @@ async def search_nearby_point_of_interest(
628627
coordinates: LatLon,
629628
**kwargs: Any
630629
) -> SearchAddressResult:
631-
"""**Search Nearby Point of Interest **
630+
"""**Search Nearby Point of Interest**
632631
633632
If you have a use case for only retrieving POI results around a specific location, the nearby
634633
search method may be the right choice. This endpoint will only return POI results, and does not

sdk/maps/azure-maps-search/azure/maps/search/models/_models.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@ def __init__(
509509

510510
class GeoJsonObject(msrest.serialization.Model):
511511
"""A valid ``GeoJSON`` object.
512-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
512+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
513513
514514
You probably want to use the sub-classes and not this class directly. Known
515515
sub-classes are: GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonGeometry,
516-
GeoJsonGeometryCollection, GeoJsonLineString, GeoJsonMultiLineString,
517-
GeoJsonMultiPoint, GeoJsonMultiPolygon, GeoJsonPoint, GeoJsonPolygon.
516+
GeoJsonGeometryCollection, GeoJsonLineString, GeoJsonMultiLineString,
517+
GeoJsonMultiPoint, GeoJsonMultiPolygon, GeoJsonPoint, GeoJsonPolygon.
518518
519519
All required parameters must be populated in order to send to Azure.
520520
@@ -557,7 +557,7 @@ class GeoJsonFeatureData(msrest.serialization.Model):
557557
All required parameters must be populated in order to send to Azure.
558558
559559
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
560-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
560+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
561561
:type geometry: ~azure.maps.search.models.GeoJsonObject
562562
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
563563
can be any JSON object or a JSON null value.
@@ -592,12 +592,12 @@ def __init__(
592592

593593
class GeoJsonFeature(GeoJsonObject, GeoJsonFeatureData):
594594
"""A valid ``GeoJSON Feature`` object type.
595-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`_ for details.
595+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`__ for details.
596596
597597
All required parameters must be populated in order to send to Azure.
598598
599599
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
600-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
600+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
601601
:type geometry: ~azure.maps.search.models.GeoJsonObject
602602
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
603603
can be any JSON object or a JSON null value.
@@ -659,7 +659,7 @@ def __init__(
659659

660660
class GeoJsonFeatureCollection(GeoJsonObject, GeoJsonFeatureCollectionData):
661661
"""A valid ``GeoJSON FeatureCollection`` object type.
662-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`_ for details.
662+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`__ for details.
663663
664664
All required parameters must be populated in order to send to Azure.
665665
@@ -699,7 +699,7 @@ class GeoJsonGeometry(GeoJsonObject):
699699
"""A valid ``GeoJSON`` geometry object.
700700
The type must be one of the seven valid GeoJSON geometry types -
701701
Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.
702-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`_ for details.
702+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`__ for details.
703703
704704
All required parameters must be populated in order to send to Azure.
705705
@@ -757,7 +757,7 @@ def __init__(
757757

758758
class GeoJsonGeometryCollection(GeoJsonObject, GeoJsonGeometryCollectionData):
759759
"""A valid ``GeoJSON GeometryCollection`` object type.
760-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`_ for details.
760+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`__ for details.
761761
762762
All required parameters must be populated in order to send to Azure.
763763
@@ -822,7 +822,7 @@ def __init__(
822822

823823
class GeoJsonLineString(GeoJsonObject, GeoJsonLineStringData):
824824
"""A valid ``GeoJSON LineString`` geometry type.
825-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`_ for details.
825+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`__ for details.
826826
827827
All required parameters must be populated in order to send to Azure.
828828
@@ -887,7 +887,7 @@ def __init__(
887887

888888
class GeoJsonMultiLineString(GeoJsonObject, GeoJsonMultiLineStringData):
889889
"""A valid ``GeoJSON MultiLineString`` geometry type.
890-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`_ for details.
890+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`__ for details.
891891
892892
All required parameters must be populated in order to send to Azure.
893893
@@ -952,7 +952,7 @@ def __init__(
952952

953953
class GeoJsonMultiPoint(GeoJsonObject, GeoJsonMultiPointData):
954954
"""A valid ``GeoJSON MultiPoint`` geometry type.
955-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`_ for details.
955+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`__ for details.
956956
957957
All required parameters must be populated in order to send to Azure.
958958
@@ -1018,7 +1018,7 @@ def __init__(
10181018

10191019
class GeoJsonMultiPolygon(GeoJsonObject, GeoJsonMultiPolygonData):
10201020
"""A valid ``GeoJSON MultiPolygon`` object type.
1021-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`_ for details.
1021+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`__ for details.
10221022
10231023
All required parameters must be populated in order to send to Azure.
10241024
@@ -1063,7 +1063,7 @@ class GeoJsonPointData(msrest.serialization.Model):
10631063
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
10641064
The first two elements are *longitude* and *latitude*, precisely in that order.
10651065
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
1066-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
1066+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
10671067
:type coordinates: LatLon
10681068
"""
10691069

@@ -1087,14 +1087,14 @@ def __init__(
10871087

10881088
class GeoJsonPoint(GeoJsonObject, GeoJsonPointData):
10891089
"""A valid ``GeoJSON Point`` geometry type.
1090-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`_ for details.
1090+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`__ for details.
10911091
10921092
All required parameters must be populated in order to send to Azure.
10931093
10941094
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
10951095
The first two elements are *longitude* and *latitude*, precisely in that order.
10961096
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
1097-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
1097+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
10981098
:type coordinates: LatLon
10991099
:param type: Required. Specifies the ``GeoJSON`` type. Must be one of the nine valid GeoJSON
11001100
object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon,
@@ -1153,7 +1153,7 @@ def __init__(
11531153

11541154
class GeoJsonPolygon(GeoJsonObject, GeoJsonPolygonData):
11551155
"""A valid ``GeoJSON Polygon`` geometry type.
1156-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`_ for details.
1156+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`__ for details.
11571157
11581158
All required parameters must be populated in order to send to Azure.
11591159

sdk/maps/azure-maps-search/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pyright = false
33
type_check_samples = false
44
verifytypes = false
55
ci_enabled = false
6+
strict_sphinx = true

0 commit comments

Comments
 (0)