
                             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 dd	lmZ  G d
 dej                        Zy)z9Command to update an existing Cloud Asset Inventory Feed.    )absolute_import)division)unicode_literals)client_util)base)flags)utils)repeatedc                   0    e Zd ZdZdddZed        Zd Zy)Updatez.Update an existing Cloud Asset Inventory Feed.z;      Update an existing Cloud Asset Inventory Feed.
      z        To add an asset-type to an existing feed, run:

          $ {command} feed1 --project=p1
          --add-asset-types=pubsub.googleapis.com/Topic
      )DESCRIPTIONEXAMPLESc                    t        j                  | ddd       t        j                  | d       t        j                  | ddddd	
       t        j                  | ddddd	
       t        j                  | ddddd	
       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.zIdentifier of the asset feed to update, which must be unique in its parent resource. Parent resource can be a project, folder, or an organization. Feedzasset-names
assetNamesz`See https://cloud.google.com/apis/design/resource_names#full_resource_name for more information.F)additional_helpinclude_setzasset-types
assetTypeszpSee https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview for all supported asset types.zrelationship-typesrelationshipTypeszwSee https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview for all supported relationship types.)
r   AddParentArgsAddFeedIdArgsr
   AddPrimitiveArgsAddUpdateFeedContentTypeArgsAddFeedPubSubTopicArgs$AddUpdateFeedConditionExpressionArgsAddUpdateFeedConditionTitleArgs%AddUpdateFeedConditionDescriptionArgs)parsers    !lib/surface/asset/feeds/update.pyArgszUpdate.Args-   s    	 635JL	
(*
 % 	 (  /  
&&v.	  /	..v6	))&1	//7    c                     t        j                  |j                  |j                  |j                        }t        j                  |      }|j                  |      S )N)asset_utilsGetFeedParentorganizationprojectfolderr   AssetFeedClientr   )selfargsparentclients       r   Runz
Update.RunX   sF    &&t'8'8$,,'+{{4F((0F==r!   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr    r-    r!   r   r   r      s0    6

- (8 (8Tr!   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.assetr   googlecloudsdk.callioper    googlecloudsdk.command_lib.assetr   r	   r#   $googlecloudsdk.command_lib.util.argsr
   Commandr   r4   r!   r   <module>r;      s5    @ &  ' 4 ( 2 A 9@T\\ @r!   