
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddl
mZ  G d	 d
ej                        Z G d dej                        Zd Zy)z3Utility for interacting with containeranalysis API.    )absolute_import)division)unicode_literals)util)waiter)
exceptions)	resourcesc                       e Zd ZdZy)UnsupportedOSa4  Raised when the user attempts to scan from an unsupported operation system.

  Note that this is not the same error as when a user initiates a scan on a
  container image, but that image itself has an unsupported OS. In this case,
  the gcloud command itself is running on an unsupported operation system.
  N__name__
__module____qualname____doc__     Alib/googlecloudsdk/command_lib/artifacts/ondemandscanning_util.pyr   r      s    r   r   c                       e Zd ZdZy)ExtractionFailedErrorzRaised when extraction fails.Nr   r   r   r   r   r   $   s    %r   r   c                     t        j                  |      j                  }t        j                  j                  | j                  d      }t        j                  |      }t        j                  ||      S )ab  Silently waits for the given google.longrunning.Operation to complete.

  Args:
    operation: The operation to poll.
    version: The ODS API version endpoints to use to talk to the Operations
      service.

  Raises:
    apitools.base.py.HttpError: if the request returns an HTTP error

  Returns:
    The response field of the completed operation.
  z.ondemandscanning.projects.locations.operations)
collection)
ods_util	GetClientprojects_locations_operationsr	   REGISTRYParseRelativeNamenamer   CloudOperationPollerNoResourcesPollUntilDone)	operationversion
op_serviceop_resourcepollers        r   WaitForOperationr%   )   se     !!'*HH*""44nnA 5 C+ 11*=&			fk	22r   N)r   
__future__r   r   r   'googlecloudsdk.api_lib.ondemandscanningr   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.corer   core_exceptionsr	   Errorr   r   r%   r   r   r   <module>r,      sH    : &  ' D . = )O)) O11 
3r   