Ejemplo n.º 1
0
 def get_arg_parser(self, *args, **kwargs):
     parser = super(PollClient11Script,
                    self).get_arg_parser(*args, **kwargs)
     parser.add_argument(
         "--collection",
         dest="collection",
         default="default",
         help="Data Collection to poll. Defaults to 'default'.")
     parser.add_argument(
         "--begin-timestamp",
         dest="begin_ts",
         default=None,
         help=
         "The begin timestamp (format: YYYY-MM-DDTHH:MM:SS.ssssss+/-hh:mm) "
         "for the poll request. Defaults to None.")
     parser.add_argument(
         "--end-timestamp",
         dest="end_ts",
         default=None,
         help=
         "The end timestamp (format: YYYY-MM-DDTHH:MM:SS.ssssss+/-hh:mm) "
         "for the poll request. Defaults to None.")
     parser.add_argument(
         "--subscription-id",
         dest="subscription_id",
         default=None,
         help="The Subscription ID for the poll request. Defaults to None.")
     add_poll_response_args(parser)
     return parser
Ejemplo n.º 2
0
 def get_arg_parser(self, *args, **kwargs):
     parser = super(FulfillmentClient11Script, self).get_arg_parser(*args, **kwargs)
     parser.add_argument("--collection",
                         dest="collection",
                         default="default",
                         help="Data Collection that this Fulfillment request applies to. Defaults to 'default'.")
     parser.add_argument("--result-id",
                         dest="result_id",
                         required=True, help="The result_id being requested.")
     parser.add_argument("--result-part-number",
                         dest="result_part_number",
                         type=int,
                         default=1,
                         help="The part number being requested. Defaults to '1'.")
     add_poll_response_args(parser)
     return parser
Ejemplo n.º 3
0
 def get_arg_parser(self, *args, **kwargs):
     parser = super(PollClient11Script, self).get_arg_parser(*args, **kwargs)
     parser.add_argument("--collection",
                         dest="collection",
                         default="default",
                         help="Data Collection to poll. Defaults to 'default'.")
     parser.add_argument("--begin-timestamp",
                         dest="begin_ts",
                         default=None,
                         help="The begin timestamp (format: YYYY-MM-DDTHH:MM:SS.ssssss+/-hh:mm) "
                              "for the poll request. Defaults to None.")
     parser.add_argument("--end-timestamp",
                         dest="end_ts",
                         default=None,
                         help="The end timestamp (format: YYYY-MM-DDTHH:MM:SS.ssssss+/-hh:mm) "
                              "for the poll request. Defaults to None.")
     parser.add_argument("--subscription-id",
                         dest="subscription_id",
                         default=None,
                         help="The Subscription ID for the poll request. Defaults to None.")
     add_poll_response_args(parser)
     return parser