@@ -4324,6 +4324,111 @@ def get_flows_datatables(self, **kwargs):
43244324 callback = params .get ('callback' ))
43254325 return response
43264326
4327+ def get_flows_divisionviews (self , type , ** kwargs ):
4328+ """
4329+ Get a pageable list of basic flow information objects filterable by query parameters.
4330+ This returns a simplified version of /flow consisting of name and type.
4331+
4332+ This method makes a synchronous HTTP request by default. To make an
4333+ asynchronous HTTP request, please define a `callback` function
4334+ to be invoked when receiving the response.
4335+ >>> def callback_function(response):
4336+ >>> pprint(response)
4337+ >>>
4338+ >>> thread = api.get_flows_divisionviews(type, callback=callback_function)
4339+
4340+ :param callback function: The callback function
4341+ for asynchronous request. (optional)
4342+ :param str type: Type (required)
4343+ :param int page_number: Page number
4344+ :param int page_size: Page size
4345+ :param str sort_by: Sort by
4346+ :param str sort_order: Sort order
4347+ :param list[str] id: ID
4348+ :param str name: Name
4349+ :param str publish_version_id: Publish version ID
4350+ :param str published_after: Published after
4351+ :param str published_before: Published before
4352+ :return: FlowDivisionViewEntityListing
4353+ If the method is called asynchronously,
4354+ returns the request thread.
4355+ """
4356+
4357+ all_params = ['type' , 'page_number' , 'page_size' , 'sort_by' , 'sort_order' , 'id' , 'name' , 'publish_version_id' , 'published_after' , 'published_before' ]
4358+ all_params .append ('callback' )
4359+
4360+ params = locals ()
4361+ for key , val in iteritems (params ['kwargs' ]):
4362+ if key not in all_params :
4363+ raise TypeError (
4364+ "Got an unexpected keyword argument '%s'"
4365+ " to method get_flows_divisionviews" % key
4366+ )
4367+ params [key ] = val
4368+ del params ['kwargs' ]
4369+
4370+ # verify the required parameter 'type' is set
4371+ if ('type' not in params ) or (params ['type' ] is None ):
4372+ raise ValueError ("Missing the required parameter `type` when calling `get_flows_divisionviews`" )
4373+
4374+
4375+ resource_path = '/api/v2/flows/divisionviews' .replace ('{format}' , 'json' )
4376+ path_params = {}
4377+
4378+ query_params = {}
4379+ if 'type' in params :
4380+ query_params ['type' ] = params ['type' ]
4381+ if 'page_number' in params :
4382+ query_params ['pageNumber' ] = params ['page_number' ]
4383+ if 'page_size' in params :
4384+ query_params ['pageSize' ] = params ['page_size' ]
4385+ if 'sort_by' in params :
4386+ query_params ['sortBy' ] = params ['sort_by' ]
4387+ if 'sort_order' in params :
4388+ query_params ['sortOrder' ] = params ['sort_order' ]
4389+ if 'id' in params :
4390+ query_params ['id' ] = params ['id' ]
4391+ if 'name' in params :
4392+ query_params ['name' ] = params ['name' ]
4393+ if 'publish_version_id' in params :
4394+ query_params ['publishVersionId' ] = params ['publish_version_id' ]
4395+ if 'published_after' in params :
4396+ query_params ['publishedAfter' ] = params ['published_after' ]
4397+ if 'published_before' in params :
4398+ query_params ['publishedBefore' ] = params ['published_before' ]
4399+
4400+ header_params = {}
4401+
4402+ form_params = []
4403+ local_var_files = {}
4404+
4405+ body_params = None
4406+
4407+ # HTTP header `Accept`
4408+ header_params ['Accept' ] = self .api_client .\
4409+ select_header_accept (['application/json' ])
4410+ if not header_params ['Accept' ]:
4411+ del header_params ['Accept' ]
4412+
4413+ # HTTP header `Content-Type`
4414+ header_params ['Content-Type' ] = self .api_client .\
4415+ select_header_content_type (['application/json' ])
4416+
4417+ # Authentication setting
4418+ auth_settings = ['PureCloud Auth' ]
4419+
4420+ response = self .api_client .call_api (resource_path , 'GET' ,
4421+ path_params ,
4422+ query_params ,
4423+ header_params ,
4424+ body = body_params ,
4425+ post_params = form_params ,
4426+ files = local_var_files ,
4427+ response_type = 'FlowDivisionViewEntityListing' ,
4428+ auth_settings = auth_settings ,
4429+ callback = params .get ('callback' ))
4430+ return response
4431+
43274432 def post_architect_dependencytracking_build (self , ** kwargs ):
43284433 """
43294434 Rebuild Dependency Tracking data for an organization
0 commit comments