Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/workflow/v2/__pycache__/_proxy.cpython-39.pyc
Ðазад
a u�h" � @ s: d dl mZ d dlmZ d dlmZ G dd� dej�ZdS )� )�proxy)� execution)�workflowc @ sd e Zd Zdd� Zdd� Zdd� Zddd �Zdd d�Zdd � Zdd� Z dd� Z ddd�Zddd�ZdS )�Proxyc K s | j tjfi |��S )a� Create a new workflow from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.workflow.v2.workflow.Workflow`, comprised of the properties on the Workflow class. :returns: The results of workflow creation :rtype: :class:`~openstack.workflow.v2.workflow.Workflow` )�_create� _workflow�Workflow��self�attrs� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/workflow/v2/_proxy.py�create_workflow s zProxy.create_workflowc G s | j tjg|�R � S )ao Get a workflow :param workflow: The value can be the name of a workflow or :class:`~openstack.workflow.v2.workflow.Workflow` instance. :returns: One :class:`~openstack.workflow.v2.workflow.Workflow` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no workflow matching the name could be found. )�_getr r r r r r �get_workflow s zProxy.get_workflowc K s | j tjfi |��S )a� Retrieve a generator of workflows :param kwargs query: Optional query parameters to be sent to restrict the workflows to be returned. Available parameters include: * limit: Requests at most the specified number of items be returned from the query. * marker: Specifies the ID of the last-seen workflow. Use the limit parameter to make an initial limited request and use the ID of the last-seen workflow from the response as the marker parameter value in a subsequent limited request. :returns: A generator of workflow instances. )�_listr r �r �queryr r r � workflows, s zProxy.workflowsTc C s | j tj||d�S )a Delete a workflow :param value: The value can be either the name of a workflow or a :class:`~openstack.workflow.v2.workflow.Workflow` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the workflow does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent workflow. :returns: ``None`` ��ignore_missing)�_deleter r �r �valuer r r r �delete_workflow>