Beispiel #1
0
 def Run(self, args):
     project_ref = args.CONCEPTS.project.Parse()
     if not project_ref:
         raise exceptions.RequiredArgumentException(
             'project',
             'Please set a project with "--project" flag or "gcloud config set project <project_id>".'
         )
     return secrets_api.Locations().ListWithPager(project_ref=project_ref,
                                                  limit=args.limit)
 def Run(self, args):
   location_ref = args.CONCEPTS.location.Parse()
   return secrets_api.Locations(
       version=secrets_util.GetVersionFromReleasePath(
           self.ReleaseTrack())).Get(location_ref)
Beispiel #3
0
 def Run(self, args):
     project_ref = args.CONCEPTS.project.Parse()
     return secrets_api.Locations().ListWithPager(project_ref=project_ref,
                                                  limit=args.limit)
Beispiel #4
0
 def Run(self, args):
     location_ref = args.CONCEPTS.location.Parse()
     return secrets_api.Locations().Get(location_ref)