Ejemplo n.º 1
0
 def testDescribe(self):
     response = self.msgs.AppProfile()
     self.client.projects_instances_appProfiles.Get.Expect(
         request=self.msgs.
         BigtableadminProjectsInstancesAppProfilesGetRequest(
             name=self.app_profile_relative_name),
         response=response)
     self.assertEquals(app_profiles.Describe(self.app_profile_ref),
                       response)
Ejemplo n.º 2
0
  def Run(self, args):
    """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    """
    app_profile_ref = args.CONCEPTS.app_profile.Parse()
    return app_profiles.Describe(app_profile_ref)