@Test void testGetUrl() { RawCustomResourceOperationsImpl rawCustomResourceOperations = new RawCustomResourceOperationsImpl(mockClient, config, customResourceDefinitionContext); ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class); rawCustomResourceOperations.get("myns", "myresource"); verify(mockClient).newCall(captor.capture()); assertEquals("/apis/test.fabric8.io/v1alpha1/namespaces/myns/hellos/myresource", captor.getValue().url().encodedPath()); }
public Map<String, Object> get(String name) { return makeCall(fetchUrl(null, name, null), null, HttpCallMethod.GET); }
RawCustomResourceOperationsImpl extends OperationSupport { public Map<String, Object> get(String name) { return makeCall(fetchUrl(null, name, null), null, HttpCallMethod.GET); } }
RawCustomResourceOperationsImpl extends OperationSupport { public Map<String, Object> get(String name) { return makeCall(fetchUrl(null, name, null), null, HttpCallMethod.GET); } RawCustomResourceOperationsImpl(OkHttpClient client, Config config, CustomResourceDefinitionContext customResourceDefinition); }
RawCustomResourceOperationsImpl extends OperationSupport { public Map<String, Object> get(String name) { return makeCall(fetchUrl(null, name, null), null, HttpCallMethod.GET); } RawCustomResourceOperationsImpl(OkHttpClient client, Config config, CustomResourceDefinitionContext customResourceDefinition); Map<String, Object> load(InputStream fileInputStream); Map<String, Object> load(String objectAsJsonString); Map<String, Object> create(String objectAsString); Map<String, Object> create(Map<String, Object> object); Map<String, Object> create(String namespace, String objectAsString); Map<String, Object> create(InputStream objectAsStream); Map<String, Object> create(String namespace, InputStream objectAsStream); Map<String, Object> create(String namespace, Map<String, Object> object); Map<String, Object> createOrReplace(String objectAsString); Map<String, Object> createOrReplace(Map<String, Object> customResourceObject); Map<String, Object> createOrReplace(InputStream inputStream); Map<String, Object> createOrReplace(String namespace, String objectAsString); Map<String, Object> createOrReplace(String namespace, Map<String, Object> customResourceObject); Map<String, Object> createOrReplace(String namespace, InputStream objectAsStream); Map<String, Object> edit(String name, Map<String, Object> object); Map<String, Object> edit(String name, String objectAsString); Map<String, Object> edit(String namespace, String name, Map<String, Object> object); Map<String, Object> edit(String namespace, String name, String objectAsString); Map<String, Object> edit(String name, InputStream objectAsStream); Map<String, Object> edit(String namespace, String name, InputStream objectAsStream); Map<String, Object> updateStatus(String name, Map<String, Object> objectAsMap); Map<String, Object> updateStatus(String name, String objectAsJsonString); Map<String, Object> updateStatus(String namespace, String name, Map<String, Object> objectAsMap); Map<String, Object> updateStatus(String name, InputStream objectAsStream); Map<String, Object> updateStatus(String namespace, String name, InputStream objectAsStream); Map<String, Object> updateStatus(String namespace, String name, String objectAsJsonString); Map<String, Object> get(String name); Map<String, Object> get(String namespace, String name); Map<String, Object> list(); Map<String, Object> list(String namespace); Map<String, Object> list(String namespace, Map<String, String> labels); Map<String, Object> delete(String namespace); Map<String, Object> delete(String namespace, boolean cascading); Map<String, Object> delete(String namespace, DeleteOptions deleteOptions); Map<String, Object> delete(String namespace, String name); Map<String, Object> delete(String namespace, String name, boolean cascading); Map<String, Object> delete(String namespace, String name, String propagationPolicy); Map<String, Object> delete(String namespace, String name, DeleteOptions deleteOptions); void watch(String namespace, Watcher<String> watcher); void watch(String namespace, String resourceVersion, Watcher<String> watcher); void watch(String namespace, ListOptions options, Watcher<String> watcher); void watch(Watcher<String> watcher); Watch watch(String namespace, String name, Map<String, String> labels, String resourceVersion, Watcher<String> watcher); Watch watch(String namespace, String name, Map<String, String> labels, ListOptions options, Watcher<String> watcher); }
RawCustomResourceOperationsImpl extends OperationSupport { public Map<String, Object> get(String name) { return makeCall(fetchUrl(null, name, null), null, HttpCallMethod.GET); } RawCustomResourceOperationsImpl(OkHttpClient client, Config config, CustomResourceDefinitionContext customResourceDefinition); Map<String, Object> load(InputStream fileInputStream); Map<String, Object> load(String objectAsJsonString); Map<String, Object> create(String objectAsString); Map<String, Object> create(Map<String, Object> object); Map<String, Object> create(String namespace, String objectAsString); Map<String, Object> create(InputStream objectAsStream); Map<String, Object> create(String namespace, InputStream objectAsStream); Map<String, Object> create(String namespace, Map<String, Object> object); Map<String, Object> createOrReplace(String objectAsString); Map<String, Object> createOrReplace(Map<String, Object> customResourceObject); Map<String, Object> createOrReplace(InputStream inputStream); Map<String, Object> createOrReplace(String namespace, String objectAsString); Map<String, Object> createOrReplace(String namespace, Map<String, Object> customResourceObject); Map<String, Object> createOrReplace(String namespace, InputStream objectAsStream); Map<String, Object> edit(String name, Map<String, Object> object); Map<String, Object> edit(String name, String objectAsString); Map<String, Object> edit(String namespace, String name, Map<String, Object> object); Map<String, Object> edit(String namespace, String name, String objectAsString); Map<String, Object> edit(String name, InputStream objectAsStream); Map<String, Object> edit(String namespace, String name, InputStream objectAsStream); Map<String, Object> updateStatus(String name, Map<String, Object> objectAsMap); Map<String, Object> updateStatus(String name, String objectAsJsonString); Map<String, Object> updateStatus(String namespace, String name, Map<String, Object> objectAsMap); Map<String, Object> updateStatus(String name, InputStream objectAsStream); Map<String, Object> updateStatus(String namespace, String name, InputStream objectAsStream); Map<String, Object> updateStatus(String namespace, String name, String objectAsJsonString); Map<String, Object> get(String name); Map<String, Object> get(String namespace, String name); Map<String, Object> list(); Map<String, Object> list(String namespace); Map<String, Object> list(String namespace, Map<String, String> labels); Map<String, Object> delete(String namespace); Map<String, Object> delete(String namespace, boolean cascading); Map<String, Object> delete(String namespace, DeleteOptions deleteOptions); Map<String, Object> delete(String namespace, String name); Map<String, Object> delete(String namespace, String name, boolean cascading); Map<String, Object> delete(String namespace, String name, String propagationPolicy); Map<String, Object> delete(String namespace, String name, DeleteOptions deleteOptions); void watch(String namespace, Watcher<String> watcher); void watch(String namespace, String resourceVersion, Watcher<String> watcher); void watch(String namespace, ListOptions options, Watcher<String> watcher); void watch(Watcher<String> watcher); Watch watch(String namespace, String name, Map<String, String> labels, String resourceVersion, Watcher<String> watcher); Watch watch(String namespace, String name, Map<String, String> labels, ListOptions options, Watcher<String> watcher);  }