
    O                         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
  \R                  \R                  " \R                  R                  5       " S S\R                  5      5       5       rg	)
Create a Dataplex Entry Link.    )
entry_link)
exceptions)base)flags)resource_argsc                   `    \ rS rSrSrSS0r\S 5       r\R                  " S5      S 5       r
Srg	)
Create   r   EXAMPLESaY  To create a Dataplex Entry Link, you need to provide the entry link ID, the
entry group, the location, the project, the entry link type, and a path to a
YAML file containing the entry references. The entry references file should
contain a list of dictionaries, each representing an entry reference.

For example, to create an entry link of entry link type
'projects/655216118709/locations/global/entryLinkTypes/synonym' named
'my-entry-link' using entry references from 'entry_references.yaml', run:

        $ {command} my-entry-link \
          --entry-group=my-entry-group \
          --location=us-central1 \
          --project=test-project \
          --entry-link-type=projects/655216118709/locations/global/entryLinkTypes/synonym \
          --entry-references=path/to/entry_references.yaml

Example of entry_references.yaml file:
```yaml
  - name: projects/test-project/locations/us-central1/entryGroups/my-entry-group/entries/my-entry-1
    type: SOURCE
    path: my_path
  - name: projects/test-project/locations/us-central1/entryGroups/my-entry-group/entries/my-entry-2
    type: TARGET
```
          c                     [         R                  " U S5        U R                  SSSS9  U R                  S[        SSS9  [        R
                  " U S	S
9  g )Nz
to create.z--entry-link-typeTzRequired. The type of the entry link. It is a resource name of the EntryLinkType. Example: `projects/my-project/locations/global/entryLinkTypes/my-link-type`)requiredhelpz--entry-referencesa  Required. Path to a YAML or JSON file containing the entry references. The file should contain a list of dictionaries, each with "name", "type", and optional "path" keys. Example:
  -
    name: projects/test-project/locations/us-central1/entryGroups/my-entry-group/entries/my-entry-1
    type: SOURCE
    path: my_path
  -
    name: projects/test-project/locations/us-central1/entryGroups/my-entry-group/entries/my-entry-2
    type: TARGET)typer   r   aspects)update_aspects_name)r   AddDataplexEntryLinkResourceArgadd_argumentstrr   AddEntryLinkAspectFlags)parsers    *lib/surface/dataplex/entry_links/create.pyArgsCreate.Args;   sf    11&,G
R	     & 
!!&iH    z-Status code: {status_code}. {status_message}.c                 0    [         R                  " U5        g )N)r   r
   )selfargss     r   Run
Create.Run\   s     dr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr   __static_attributes__r!   r   r   r
   r
      sQ     &  -: I I@ 445r   r
   N)r&   googlecloudsdk.api_lib.dataplexr   googlecloudsdk.api_lib.utilr   r)   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataplexr   r   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHACommandr
   r!   r   r   <module>r5      sb    $ 7 F ( 5 = D%%++,ET\\ E - Er   