
    	                         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y)z/Command to create a Cloud Asset Inventory Feed.    )absolute_import)division)unicode_literals)client_util)base)flags)utilsc                   0    e Zd ZdZdddZed        Zd Zy)Createz$Create a Cloud Asset Inventory Feed.zK      Create a new Cloud Asset Inventory Feed for updates on assets.
      a_            To create a new feed 'feed1' in project 'p1' which alerts on compute
          disks and network resources types, run:

            $ {command} feed1 --project=p1
            --asset-types=compute.googleapis.com/Network,compute.googleapis.com/Disk
            --content-type=resource --pubsub-topic=projects/project1/topics/feed-topic
      )DESCRIPTIONEXAMPLESc                 ^   t        j                  | ddd       t        j                  | d       t        j                  |        t        j                  |        t        j
                  | d       t        j                  |        t        j                  |        t        j                  |        y )Nzproject of the feed.zOrganization of the feed.zFolder of the feed.zwAsset feed identifier being created, it must be unique under the specified parent resource project/folder/organization.T)	r   AddParentArgsAddFeedIdArgsAddFeedCriteriaArgsAddFeedContentTypeArgsAddFeedPubSubTopicArgsAddFeedConditionExpressionArgsAddFeedConditionTitleArgsAddFeedConditionDescriptionArgs)parsers    !lib/surface/asset/feeds/create.pyArgszCreate.Args.   s    	 635JL	
CE 
f%	  (	  .	((0	##F+	))&1    c                     t        j                  |j                  |j                  |j                        }t        j                  |      }|j                  |      S )N)asset_utilsGetParentNameForExportorganizationprojectfolderr   AssetFeedClientr   )selfargsparentclients       r   Runz
Create.Run=   sF    //0A0A4<<04=F((0F==r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r&    r   r   r   r      s/    ,

-  2 2r   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.assetr   googlecloudsdk.callioper    googlecloudsdk.command_lib.assetr   r	   r   Commandr   r-   r   r   <module>r3      s/    6 &  ' 4 ( 2 A&T\\ &r   