def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'GetInstanceFinalState','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/jobs/[jobName]/instances/[instanceId]/finalstate') self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'ModifyMasterSpec','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/clusters/[clusterId]/specification') self.set_method('PUT') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'GetClusterMetrics','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/clusters/[clusterId]/metrics') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'UpdateAutoScaleConfig','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/jobs/[jobName]/instance/[instanceId]/autoscale/config') self.set_method('PUT') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'DeleteJob','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/jobs/[jobName]') self.set_method('DELETE') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'ListProject','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects') self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'TagResources', 'foas') self.set_uri_pattern('/api/v2/cluster/tags') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'CalcPlanJsonResource','foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/jobs/[jobName]/planjson-resource') self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'CreateFolder', 'foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/folders') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'BatchGetInstanceRunSummary', 'foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/projects/[projectName]/runsummary') self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'CreateCellClusterOrder', 'foas') self.set_protocol_type('https') self.set_uri_pattern('/api/v2/realtime-compute/cell/buy') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'GetInstanceHistoryAutoScalePlanList', 'foas') self.set_protocol_type('https') self.set_uri_pattern( '/api/v2/projects/[projectName]/jobs/[jobName]/instance/[instanceId]/autoscale/planlist' ) self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def __init__(self): RoaRequest.__init__(self, 'foas', '2018-11-11', 'GetJobLatestAutoScalePlan', 'foas') self.set_protocol_type('https') self.set_uri_pattern( '/api/v2/projects/[projectName]/jobs/[jobName]/autoscale/latestplanjson' ) self.set_method('GET') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())