class ImportBootImages(amp.Command): """Import boot images and report the final boot images that exist on the cluster. :since: 1.7 """ arguments = [ ( b"sources", AmpList([ (b"url", amp.Unicode()), (b"keyring_data", Bytes()), ( b"selections", AmpList([ (b"os", amp.Unicode()), (b"release", amp.Unicode()), (b"arches", amp.ListOf(amp.Unicode())), (b"subarches", amp.ListOf(amp.Unicode())), (b"labels", amp.ListOf(amp.Unicode())), ]), ), ]), ), (b"http_proxy", ParsedURL(optional=True)), (b"https_proxy", ParsedURL(optional=True)), ] response = [] errors = []
class GetBootSources(amp.Command): """Report boot sources and selections for the given cluster. Includes the new os field for the selections. :since: 1.7 """ arguments = [ # The cluster UUID. (b"uuid", amp.Unicode()) ] response = [( b"sources", AmpList([ (b"url", amp.Unicode()), (b"keyring_data", Bytes()), ( b"selections", AmpList([ (b"os", amp.Unicode()), (b"release", amp.Unicode()), (b"arches", amp.ListOf(amp.Unicode())), (b"subarches", amp.ListOf(amp.Unicode())), (b"labels", amp.ListOf(amp.Unicode())), ]), ), ]), )] errors = []