diff --git a/src/dtc/api/policy_api.py b/src/dtc/api/policy_api.py index a587e34..1fb3a1d 100644 --- a/src/dtc/api/policy_api.py +++ b/src/dtc/api/policy_api.py @@ -47,6 +47,12 @@ def __init__(self, api_client=None) -> None: def create( self, body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -64,6 +70,8 @@ def create( :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87,6 +95,7 @@ def create( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108,6 +117,12 @@ def create( def create_with_http_info( self, body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -125,6 +140,8 @@ def create_with_http_info( :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -148,6 +165,7 @@ def create_with_http_info( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,6 +187,12 @@ def create_with_http_info( def create_without_preload_content( self, body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -186,6 +210,8 @@ def create_without_preload_content( :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -209,6 +235,7 @@ def create_without_preload_content( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -224,6 +251,7 @@ def create_without_preload_content( def _create_serialize( self, body, + inherit, _request_auth, _content_type, _headers, @@ -243,6 +271,10 @@ def _create_serialize( # process the path parameters # process the query parameters + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -561,6 +593,12 @@ def list( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -592,6 +630,8 @@ def list( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -622,6 +662,7 @@ def list( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -686,6 +727,12 @@ def list_with_http_info( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -717,6 +764,8 @@ def list_with_http_info( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -747,6 +796,7 @@ def list_with_http_info( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -811,6 +861,12 @@ def list_without_preload_content( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -842,6 +898,8 @@ def list_without_preload_content( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -872,6 +930,7 @@ def list_without_preload_content( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -894,6 +953,7 @@ def _list_serialize( order_by, tfilter, torder_by, + inherit, _request_auth, _content_type, _headers, @@ -945,6 +1005,10 @@ def _list_serialize( _query_params.append(('_torder_by', torder_by)) + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -984,6 +1048,12 @@ def read( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1003,6 +1073,8 @@ def read( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1027,6 +1099,7 @@ def read( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1057,6 +1130,12 @@ def read_with_http_info( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1076,6 +1155,8 @@ def read_with_http_info( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1100,6 +1181,7 @@ def read_with_http_info( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1130,6 +1212,12 @@ def read_without_preload_content( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1149,6 +1237,8 @@ def read_without_preload_content( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1173,6 +1263,7 @@ def read_without_preload_content( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1189,6 +1280,7 @@ def _read_serialize( self, id, fields, + inherit, _request_auth, _content_type, _headers, @@ -1214,6 +1306,10 @@ def _read_serialize( _query_params.append(('_fields', fields)) + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -1248,6 +1344,12 @@ def update( Field(description= "An application specific resource identity of a resource")], body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1267,6 +1369,8 @@ def update( :type id: str :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1291,6 +1395,7 @@ def update( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1316,6 +1421,12 @@ def update_with_http_info( Field(description= "An application specific resource identity of a resource")], body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1335,6 +1446,8 @@ def update_with_http_info( :type id: str :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1359,6 +1472,7 @@ def update_with_http_info( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1384,6 +1498,12 @@ def update_without_preload_content( Field(description= "An application specific resource identity of a resource")], body: Policy, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1403,6 +1523,8 @@ def update_without_preload_content( :type id: str :param body: (required) :type body: Policy + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1427,6 +1549,7 @@ def update_without_preload_content( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1443,6 +1566,7 @@ def _update_serialize( self, id, body, + inherit, _request_auth, _content_type, _headers, @@ -1464,6 +1588,10 @@ def _update_serialize( if id is not None: _path_params['id'] = self.api_client.path_param_value('id', id) # process the query parameters + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/dtc/api/pool_api.py b/src/dtc/api/pool_api.py index cc4e4bf..0fba72a 100644 --- a/src/dtc/api/pool_api.py +++ b/src/dtc/api/pool_api.py @@ -47,6 +47,12 @@ def __init__(self, api_client=None) -> None: def create( self, body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -64,6 +70,8 @@ def create( :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87,6 +95,7 @@ def create( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108,6 +117,12 @@ def create( def create_with_http_info( self, body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -125,6 +140,8 @@ def create_with_http_info( :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -148,6 +165,7 @@ def create_with_http_info( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,6 +187,12 @@ def create_with_http_info( def create_without_preload_content( self, body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -186,6 +210,8 @@ def create_without_preload_content( :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -209,6 +235,7 @@ def create_without_preload_content( """ # noqa: E501 _param = self._create_serialize(body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -224,6 +251,7 @@ def create_without_preload_content( def _create_serialize( self, body, + inherit, _request_auth, _content_type, _headers, @@ -243,6 +271,10 @@ def _create_serialize( # process the path parameters # process the query parameters + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -561,6 +593,12 @@ def list( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -592,6 +630,8 @@ def list( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -622,6 +662,7 @@ def list( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -686,6 +727,12 @@ def list_with_http_info( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -717,6 +764,8 @@ def list_with_http_info( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -747,6 +796,7 @@ def list_with_http_info( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -811,6 +861,12 @@ def list_without_preload_content( Optional[StrictStr], Field(description="This parameter is used for sorting by tags." )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -842,6 +898,8 @@ def list_without_preload_content( :type tfilter: str :param torder_by: This parameter is used for sorting by tags. :type torder_by: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -872,6 +930,7 @@ def list_without_preload_content( order_by=order_by, tfilter=tfilter, torder_by=torder_by, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -894,6 +953,7 @@ def _list_serialize( order_by, tfilter, torder_by, + inherit, _request_auth, _content_type, _headers, @@ -945,6 +1005,10 @@ def _list_serialize( _query_params.append(('_torder_by', torder_by)) + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -984,6 +1048,12 @@ def read( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1003,6 +1073,8 @@ def read( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1027,6 +1099,7 @@ def read( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1057,6 +1130,12 @@ def read_with_http_info( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1076,6 +1155,8 @@ def read_with_http_info( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1100,6 +1181,7 @@ def read_with_http_info( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1130,6 +1212,12 @@ def read_without_preload_content( description= " A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. " )] = None, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1149,6 +1237,8 @@ def read_without_preload_content( :type id: str :param fields: A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. :type fields: str + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1173,6 +1263,7 @@ def read_without_preload_content( _param = self._read_serialize(id=id, fields=fields, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1189,6 +1280,7 @@ def _read_serialize( self, id, fields, + inherit, _request_auth, _content_type, _headers, @@ -1214,6 +1306,10 @@ def _read_serialize( _query_params.append(('_fields', fields)) + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter @@ -1248,6 +1344,12 @@ def update( Field(description= "An application specific resource identity of a resource")], body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1267,6 +1369,8 @@ def update( :type id: str :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1291,6 +1395,7 @@ def update( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1316,6 +1421,12 @@ def update_with_http_info( Field(description= "An application specific resource identity of a resource")], body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1335,6 +1446,8 @@ def update_with_http_info( :type id: str :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1359,6 +1472,7 @@ def update_with_http_info( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1384,6 +1498,12 @@ def update_without_preload_content( Field(description= "An application specific resource identity of a resource")], body: Pool, + inherit: Annotated[ + Optional[StrictStr], + Field( + description= + "This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none" + )] = None, _request_timeout: Union[None, Annotated[StrictFloat, Field(gt=0)], Tuple[Annotated[StrictFloat, @@ -1403,6 +1523,8 @@ def update_without_preload_content( :type id: str :param body: (required) :type body: Pool + :param inherit: This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none + :type inherit: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1427,6 +1549,7 @@ def update_without_preload_content( _param = self._update_serialize(id=id, body=body, + inherit=inherit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1443,6 +1566,7 @@ def _update_serialize( self, id, body, + inherit, _request_auth, _content_type, _headers, @@ -1464,6 +1588,10 @@ def _update_serialize( if id is not None: _path_params['id'] = self.api_client.path_param_value('id', id) # process the query parameters + if inherit is not None: + + _query_params.append(('_inherit', inherit)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/dtc/docs/PolicyApi.md b/src/dtc/docs/PolicyApi.md index b0b51de..63ff7a2 100644 --- a/src/dtc/docs/PolicyApi.md +++ b/src/dtc/docs/PolicyApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create** -> CreatePolicyResponse create(body) +> CreatePolicyResponse create(body, inherit=inherit) Create the Policy object. @@ -65,6 +65,7 @@ with ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**Policy**](Policy.md)| | + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -162,7 +163,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list** -> ListPolicyResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by) +> ListPolicyResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by, inherit=inherit) Retrieve Policy objects. @@ -221,6 +222,7 @@ Name | Type | Description | Notes **order_by** | **str**| A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. | [optional] **tfilter** | **str**| This parameter is used for filtering by tags. | [optional] **torder_by** | **str**| This parameter is used for sorting by tags. | [optional] + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -244,7 +246,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read** -> ReadPolicyResponse read(id, fields=fields) +> ReadPolicyResponse read(id, fields=fields, inherit=inherit) Retrieve the Policy object. @@ -298,6 +300,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| An application specific resource identity of a resource | **fields** | **str**| A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | [optional] + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -321,7 +324,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update** -> UpdatePolicyResponse update(id, body) +> UpdatePolicyResponse update(id, body, inherit=inherit) Update the Policy object. @@ -376,6 +379,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| An application specific resource identity of a resource | **body** | [**Policy**](Policy.md)| | + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type diff --git a/src/dtc/docs/PoolApi.md b/src/dtc/docs/PoolApi.md index 22e797f..f1c164b 100644 --- a/src/dtc/docs/PoolApi.md +++ b/src/dtc/docs/PoolApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create** -> CreatePoolResponse create(body) +> CreatePoolResponse create(body, inherit=inherit) Create the Pool object. @@ -65,6 +65,7 @@ with ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**Pool**](Pool.md)| | + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -162,7 +163,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list** -> ListPoolResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by) +> ListPoolResponse list(fields=fields, filter=filter, offset=offset, limit=limit, page_token=page_token, order_by=order_by, tfilter=tfilter, torder_by=torder_by, inherit=inherit) Retrieve Pool objects. @@ -221,6 +222,7 @@ Name | Type | Description | Notes **order_by** | **str**| A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. | [optional] **tfilter** | **str**| This parameter is used for filtering by tags. | [optional] **torder_by** | **str**| This parameter is used for sorting by tags. | [optional] + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -244,7 +246,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read** -> ReadPoolResponse read(id, fields=fields) +> ReadPoolResponse read(id, fields=fields, inherit=inherit) Retrieve the Pool object. @@ -298,6 +300,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| An application specific resource identity of a resource | **fields** | **str**| A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | [optional] + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type @@ -321,7 +324,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update** -> UpdatePoolResponse update(id, body) +> UpdatePoolResponse update(id, body, inherit=inherit) Update the Pool object. @@ -376,6 +379,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| An application specific resource identity of a resource | **body** | [**Pool**](Pool.md)| | + **inherit** | **str**| This parameter is used for getting inheritance_sources. Allowed values: * _none_, * _partial_, * _full_. Defaults to _none | [optional] ### Return type diff --git a/src/dtc/docs/PoolServer.md b/src/dtc/docs/PoolServer.md index 99587b3..a9d2b29 100644 --- a/src/dtc/docs/PoolServer.md +++ b/src/dtc/docs/PoolServer.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Display name of __Server__. | [optional] [readonly] **server_id** | **str** | The resource identifier. | -**weight** | **int** | Weight of __Server__ to be used for load balancing. Unsigned integer, min 1; max 65535. | +**weight** | **int** | Weight of __Server__ to be used for load balancing. Unsigned integer, min 1; max 65535. | [optional] ## Example diff --git a/src/dtc/models/pool_server.py b/src/dtc/models/pool_server.py index 586cc78..dd46a7f 100644 --- a/src/dtc/models/pool_server.py +++ b/src/dtc/models/pool_server.py @@ -29,7 +29,8 @@ class PoolServer(BaseModel): name: Optional[StrictStr] = Field( default=None, description="Display name of __Server__.") server_id: StrictStr = Field(description="The resource identifier.") - weight: StrictInt = Field( + weight: Optional[StrictInt] = Field( + default=None, description= "Weight of __Server__ to be used for load balancing. Unsigned integer, min 1; max 65535." )