
    	                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr   " S	 S
\R                  5      rg)z/Command to create a Cloud Asset Inventory Feed.    )absolute_import)division)unicode_literals)client_util)base)flags)utilsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Create   z$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                 n   [         R                  " U SSS5        [         R                  " U S5        [         R                  " U 5        [         R                  " U 5        [         R
                  " U S5        [         R                  " U 5        [         R                  " U 5        [         R                  " U 5        g )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ArgsCreate.Args.   s    	 635JL	
CE 
f%	  (	  .	((0	##F+	))&1    c                     [         R                  " UR                  UR                  UR                  5      n[
        R                  " U5      nUR                  U5      $ )N)asset_utilsGetParentNameForExportorganizationprojectfolderr   AssetFeedClientr   )selfargsparentclients       r   Run
Create.Run=   sF    //0A0A4<<04=F((0F==r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r(   __static_attributes__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>r8      s/    6 &  ' 4 ( 2 A&T\\ &r   