1212Do not edit the class manually.
1313""" # noqa: E501
1414
15+ import warnings
1516from typing import Any, Dict, List, Optional, Tuple, Union
1617
1718from pydantic import (
@@ -363,9 +364,9 @@ def create_label(
363364 _headers: Optional[Dict[StrictStr, Any]] = None,
364365 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
365366 ) -> CreateLabelResponse:
366- """Create or update label
367+ """(Deprecated) Create or update label [DEPRECATED]
367368
368- Create or update label
369+ Create or update label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
369370
370371 :param project_id: project id (required)
371372 :type project_id: str
@@ -394,6 +395,7 @@ def create_label(
394395 :type _host_index: int, optional
395396 :return: Returns the result object.
396397 """ # noqa: E501
398+ warnings.warn("PUT /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
397399
398400 _param = self._create_label_serialize(
399401 project_id=project_id,
@@ -435,9 +437,9 @@ def create_label_with_http_info(
435437 _headers: Optional[Dict[StrictStr, Any]] = None,
436438 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
437439 ) -> ApiResponse[CreateLabelResponse]:
438- """Create or update label
440+ """(Deprecated) Create or update label [DEPRECATED]
439441
440- Create or update label
442+ Create or update label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
441443
442444 :param project_id: project id (required)
443445 :type project_id: str
@@ -466,6 +468,7 @@ def create_label_with_http_info(
466468 :type _host_index: int, optional
467469 :return: Returns the result object.
468470 """ # noqa: E501
471+ warnings.warn("PUT /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
469472
470473 _param = self._create_label_serialize(
471474 project_id=project_id,
@@ -507,9 +510,9 @@ def create_label_without_preload_content(
507510 _headers: Optional[Dict[StrictStr, Any]] = None,
508511 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
509512 ) -> RESTResponseType:
510- """Create or update label
513+ """(Deprecated) Create or update label [DEPRECATED]
511514
512- Create or update label
515+ Create or update label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
513516
514517 :param project_id: project id (required)
515518 :type project_id: str
@@ -538,6 +541,7 @@ def create_label_without_preload_content(
538541 :type _host_index: int, optional
539542 :return: Returns the result object.
540543 """ # noqa: E501
544+ warnings.warn("PUT /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
541545
542546 _param = self._create_label_serialize(
543547 project_id=project_id,
@@ -1464,9 +1468,9 @@ def delete_label(
14641468 _headers: Optional[Dict[StrictStr, Any]] = None,
14651469 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
14661470 ) -> DeleteLabelResponse:
1467- """Delete a label
1471+ """(Deprecated) Delete a label [DEPRECATED]
14681472
1469- Delete a label
1473+ Delete a label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
14701474
14711475 :param project_id: project id (required)
14721476 :type project_id: str
@@ -1495,6 +1499,7 @@ def delete_label(
14951499 :type _host_index: int, optional
14961500 :return: Returns the result object.
14971501 """ # noqa: E501
1502+ warnings.warn("DELETE /v1/projects/{projectId}/zones/{zoneId}/labels/{key} is deprecated.", DeprecationWarning)
14981503
14991504 _param = self._delete_label_serialize(
15001505 project_id=project_id,
@@ -1537,9 +1542,9 @@ def delete_label_with_http_info(
15371542 _headers: Optional[Dict[StrictStr, Any]] = None,
15381543 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
15391544 ) -> ApiResponse[DeleteLabelResponse]:
1540- """Delete a label
1545+ """(Deprecated) Delete a label [DEPRECATED]
15411546
1542- Delete a label
1547+ Delete a label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
15431548
15441549 :param project_id: project id (required)
15451550 :type project_id: str
@@ -1568,6 +1573,7 @@ def delete_label_with_http_info(
15681573 :type _host_index: int, optional
15691574 :return: Returns the result object.
15701575 """ # noqa: E501
1576+ warnings.warn("DELETE /v1/projects/{projectId}/zones/{zoneId}/labels/{key} is deprecated.", DeprecationWarning)
15711577
15721578 _param = self._delete_label_serialize(
15731579 project_id=project_id,
@@ -1610,9 +1616,9 @@ def delete_label_without_preload_content(
16101616 _headers: Optional[Dict[StrictStr, Any]] = None,
16111617 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
16121618 ) -> RESTResponseType:
1613- """Delete a label
1619+ """(Deprecated) Delete a label [DEPRECATED]
16141620
1615- Delete a label
1621+ Delete a label DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
16161622
16171623 :param project_id: project id (required)
16181624 :type project_id: str
@@ -1641,6 +1647,7 @@ def delete_label_without_preload_content(
16411647 :type _host_index: int, optional
16421648 :return: Returns the result object.
16431649 """ # noqa: E501
1650+ warnings.warn("DELETE /v1/projects/{projectId}/zones/{zoneId}/labels/{key} is deprecated.", DeprecationWarning)
16441651
16451652 _param = self._delete_label_serialize(
16461653 project_id=project_id,
@@ -3622,9 +3629,9 @@ def list_labels(
36223629 _headers: Optional[Dict[StrictStr, Any]] = None,
36233630 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
36243631 ) -> ListLabelsResponse:
3625- """Get all labels
3632+ """(Deprecated) Get all labels [DEPRECATED]
36263633
3627- All Labels
3634+ All Labels DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
36283635
36293636 :param project_id: project id (required)
36303637 :type project_id: str
@@ -3651,6 +3658,7 @@ def list_labels(
36513658 :type _host_index: int, optional
36523659 :return: Returns the result object.
36533660 """ # noqa: E501
3661+ warnings.warn("GET /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
36543662
36553663 _param = self._list_labels_serialize(
36563664 project_id=project_id,
@@ -3691,9 +3699,9 @@ def list_labels_with_http_info(
36913699 _headers: Optional[Dict[StrictStr, Any]] = None,
36923700 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
36933701 ) -> ApiResponse[ListLabelsResponse]:
3694- """Get all labels
3702+ """(Deprecated) Get all labels [DEPRECATED]
36953703
3696- All Labels
3704+ All Labels DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
36973705
36983706 :param project_id: project id (required)
36993707 :type project_id: str
@@ -3720,6 +3728,7 @@ def list_labels_with_http_info(
37203728 :type _host_index: int, optional
37213729 :return: Returns the result object.
37223730 """ # noqa: E501
3731+ warnings.warn("GET /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
37233732
37243733 _param = self._list_labels_serialize(
37253734 project_id=project_id,
@@ -3760,9 +3769,9 @@ def list_labels_without_preload_content(
37603769 _headers: Optional[Dict[StrictStr, Any]] = None,
37613770 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
37623771 ) -> RESTResponseType:
3763- """Get all labels
3772+ """(Deprecated) Get all labels [DEPRECATED]
37643773
3765- All Labels
3774+ All Labels DEPRECATED: Scheduled for sunset on 2027-10-01. Use the labelsMap field in the Zone resource instead.
37663775
37673776 :param project_id: project id (required)
37683777 :type project_id: str
@@ -3789,6 +3798,7 @@ def list_labels_without_preload_content(
37893798 :type _host_index: int, optional
37903799 :return: Returns the result object.
37913800 """ # noqa: E501
3801+ warnings.warn("GET /v1/projects/{projectId}/zones/{zoneId}/labels is deprecated.", DeprecationWarning)
37923802
37933803 _param = self._list_labels_serialize(
37943804 project_id=project_id,
0 commit comments