def Run(self, args):
     overwatch = args.CONCEPTS.overwatch.Parse()
     blueprint_base64 = util.base_64_encoding(args.blueprint_plan_file)
     location = overwatch.AsDict()['locationsId']
     with util.override_endpoint(location):
         client = api.SLZOverwatchClient()
         return client.Create(overwatch, blueprint_base64)
 def Run(self, args):
   parent = args.CONCEPTS.parent.Parse()
   size = args.size
   page_token = args.page_token
   location = parent.AsDict()['locationsId']
   with util.override_endpoint(location):
     client = api.SLZOverwatchClient()
     return client.List(parent.RelativeName(), size, page_token)
 def Run(self, args):
     overwatch_path = args.CONCEPTS.overwatch.Parse()
     blueprint_base64 = util.base_64_encoding(args.blueprint_plan_file)
     update_mask = args.update_mask
     location = overwatch_path.AsDict()['locationsId']
     with util.override_endpoint(location):
         client = api.SLZOverwatchClient()
         return client.Patch(overwatch_path.RelativeName(),
                             blueprint_base64, update_mask)
예제 #4
0
 def Run(self, args):
     operation_id = args.CONCEPTS.operation.Parse()
     location = operation_id.AsDict()['locationsId']
     with util.override_endpoint(location):
         client = api.SLZOverwatchClient()
         return client.Operation(operation_id.RelativeName())
예제 #5
0
 def Run(self, args):
     overwatch_path = args.CONCEPTS.overwatch.Parse()
     location = overwatch_path.AsDict()['locationsId']
     with util.override_endpoint(location):
         client = api.SLZOverwatchClient()
         return client.Get(overwatch_path.RelativeName())
예제 #6
0
 def Run(self, args):
     parent = args.CONCEPTS.parent.Parse()
     location = parent.AsDict()['locationsId']
     with util.override_endpoint(location):
         client = api.SLZOverwatchClient()
         return client.Enable(parent.RelativeName())