├── .editorconfig ├── .gitignore ├── LICENSE ├── README.md ├── pom.xml └── src └── main └── java └── io └── rancher ├── Rancher.java ├── base ├── AbstractType.java ├── Filters.java └── TypeCollection.java ├── client └── BasicAuthInterceptor.java ├── service ├── AccountService.java ├── AgentService.java ├── ApiKeyService.java ├── AuditLogService.java ├── AzureadconfigService.java ├── BackupService.java ├── BackupTargetService.java ├── CertificateService.java ├── ClusterMembershipService.java ├── ComposeProjectService.java ├── ComposeServiceService.java ├── ConfigItemService.java ├── ConfigItemStatusService.java ├── ContainerEventService.java ├── ContainerService.java ├── CredentialService.java ├── DatabasechangelogService.java ├── DatabasechangeloglockService.java ├── DnsServiceService.java ├── ExtensionPointService.java ├── ExternalDnsEventService.java ├── ExternalEventService.java ├── ExternalHandlerExternalHandlerProcessMapService.java ├── ExternalHandlerProcessService.java ├── ExternalHandlerService.java ├── ExternalHostEventService.java ├── ExternalServiceEventService.java ├── ExternalServiceService.java ├── ExternalStoragePoolEventService.java ├── ExternalVolumeEventService.java ├── GenericObjectService.java ├── HaConfigInputService.java ├── HaConfigService.java ├── HealthcheckInstanceHostMapService.java ├── HostApiProxyTokenService.java ├── HostService.java ├── HostTemplateService.java ├── IdentityService.java ├── ImageService.java ├── InstanceLinkService.java ├── InstanceService.java ├── IpAddressService.java ├── KubernetesServiceService.java ├── KubernetesStackService.java ├── LabelService.java ├── LdapconfigService.java ├── LoadBalancerServiceService.java ├── LocalAuthConfigService.java ├── MachineDriverService.java ├── MachineService.java ├── MountService.java ├── NetworkDriverService.java ├── NetworkDriverServiceService.java ├── NetworkPolicyRuleWithinService.java ├── NetworkService.java ├── OpenldapconfigService.java ├── PasswordService.java ├── PhysicalHostService.java ├── PortService.java ├── ProcessExecutionService.java ├── ProcessInstanceService.java ├── ProcessPoolService.java ├── ProcessSummaryService.java ├── ProjectMemberService.java ├── ProjectService.java ├── ProjectTemplateService.java ├── PullTaskService.java ├── RegisterService.java ├── RegistrationTokenService.java ├── RegistryCredentialService.java ├── RegistryService.java ├── ResourceDefinitionService.java ├── ScheduledUpgradeService.java ├── SecondaryLaunchConfigService.java ├── SecretService.java ├── ServiceConsumeMapService.java ├── ServiceEventService.java ├── ServiceExposeMapService.java ├── ServiceLogService.java ├── ServiceProxyService.java ├── ServiceService.java ├── SettingService.java ├── SnapshotService.java ├── StackService.java ├── StorageDriverService.java ├── StorageDriverServiceService.java ├── StoragePoolService.java ├── SubnetService.java ├── TaskInstanceService.java ├── TaskService.java ├── TypeDocumentationService.java ├── UserPreferenceService.java ├── VirtualMachineService.java ├── VolumeService.java └── VolumeTemplateService.java └── type ├── Account.java ├── AddOutputsInput.java ├── AddRemoveServiceLinkInput.java ├── Agent.java ├── Amazonec2Config.java ├── ApiKey.java ├── AuditLog.java ├── AzureConfig.java ├── Azureadconfig.java ├── Backup.java ├── BackupTarget.java ├── Binding.java ├── CatalogTemplate.java ├── Certificate.java ├── ChangeSecretInput.java ├── ClusterMembership.java ├── ComposeConfig.java ├── ComposeConfigInput.java ├── ComposeProject.java ├── ComposeService.java ├── ConfigItem.java ├── ConfigItemStatus.java ├── Container.java ├── ContainerEvent.java ├── ContainerExec.java ├── ContainerLogs.java ├── ContainerProxy.java ├── Credential.java ├── Databasechangelog.java ├── Databasechangeloglock.java ├── DefaultNetwork.java ├── DigitaloceanConfig.java ├── DnsService.java ├── DockerBuild.java ├── ExtensionImplementation.java ├── ExtensionPoint.java ├── ExternalDnsEvent.java ├── ExternalEvent.java ├── ExternalHandler.java ├── ExternalHandlerExternalHandlerProcessMap.java ├── ExternalHandlerProcess.java ├── ExternalHandlerProcessConfig.java ├── ExternalHostEvent.java ├── ExternalService.java ├── ExternalServiceEvent.java ├── ExternalStoragePoolEvent.java ├── ExternalVolumeEvent.java ├── GenericObject.java ├── HaConfig.java ├── HaConfigInput.java ├── HealthcheckInstanceHostMap.java ├── Host.java ├── HostAccess.java ├── HostApiProxyToken.java ├── HostTemplate.java ├── Identity.java ├── Image.java ├── InServiceUpgradeStrategy.java ├── Instance.java ├── InstanceConsole.java ├── InstanceConsoleInput.java ├── InstanceHealthCheck.java ├── InstanceLink.java ├── InstanceStop.java ├── IpAddress.java ├── KubernetesService.java ├── KubernetesStack.java ├── KubernetesStackUpgrade.java ├── Label.java ├── LaunchConfig.java ├── LbConfig.java ├── LbTargetConfig.java ├── Ldapconfig.java ├── LoadBalancerCookieStickinessPolicy.java ├── LoadBalancerService.java ├── LocalAuthConfig.java ├── LogConfig.java ├── Machine.java ├── MachineDriver.java ├── Mount.java ├── MountEntry.java ├── Network.java ├── NetworkDriver.java ├── NetworkDriverService.java ├── NetworkPolicyRule.java ├── NetworkPolicyRuleBetween.java ├── NetworkPolicyRuleMember.java ├── NetworkPolicyRuleWithin.java ├── NfsConfig.java ├── Openldapconfig.java ├── PacketConfig.java ├── Password.java ├── PhysicalHost.java ├── Port.java ├── PortRule.java ├── ProcessExecution.java ├── ProcessInstance.java ├── ProcessPool.java ├── ProcessSummary.java ├── Project.java ├── ProjectMember.java ├── ProjectTemplate.java ├── PublicEndpoint.java ├── PullTask.java ├── RecreateOnQuorumStrategyConfig.java ├── Register.java ├── RegistrationToken.java ├── Registry.java ├── RegistryCredential.java ├── ResourceDefinition.java ├── RestartPolicy.java ├── RestoreFromBackupInput.java ├── RevertToSnapshotInput.java ├── RollingRestartStrategy.java ├── ScalePolicy.java ├── ScheduledUpgrade.java ├── SecondaryLaunchConfig.java ├── Secret.java ├── SecretReference.java ├── Service.java ├── ServiceConsumeMap.java ├── ServiceEvent.java ├── ServiceExposeMap.java ├── ServiceLink.java ├── ServiceLog.java ├── ServiceProxy.java ├── ServiceRestart.java ├── ServiceUpgrade.java ├── ServicesPortRange.java ├── SetProjectMembersInput.java ├── SetServiceLinksInput.java ├── Setting.java ├── Snapshot.java ├── SnapshotBackupInput.java ├── Stack.java ├── StackUpgrade.java ├── StorageDriver.java ├── StorageDriverService.java ├── StoragePool.java ├── Subnet.java ├── TargetPortRule.java ├── Task.java ├── TaskInstance.java ├── ToServiceUpgradeStrategy.java ├── TypeDocumentation.java ├── Ulimit.java ├── UserPreference.java ├── VirtualMachine.java ├── VirtualMachineDisk.java ├── Volume.java ├── VolumeSnapshotInput.java └── VolumeTemplate.java /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | # Unix-style newlines with a newline ending every file 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 4 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ###################### 2 | # Eclipse 3 | ###################### 4 | *.pydevproject 5 | .project 6 | .metadata 7 | tmp/ 8 | tmp/**/* 9 | *.tmp 10 | *.bak 11 | *.swp 12 | *~.nib 13 | local.properties 14 | .classpath 15 | .settings/ 16 | .loadpath 17 | /src/main/resources/rebel.xml 18 | 19 | # External tool builders 20 | .externalToolBuilders/** 21 | 22 | # Locally stored "Eclipse launch configurations" 23 | *.launch 24 | 25 | # CDT-specific 26 | .cproject 27 | 28 | # PDT-specific 29 | .buildpath 30 | 31 | ###################### 32 | # Intellij 33 | ###################### 34 | .idea/ 35 | *.iml 36 | *.iws 37 | *.ipr 38 | *.ids 39 | *.orig 40 | 41 | ###################### 42 | # Visual Studio Code 43 | ###################### 44 | .vscode/ 45 | 46 | ###################### 47 | # Maven 48 | ###################### 49 | log/ 50 | target/ 51 | 52 | ###################### 53 | # Package Files 54 | ###################### 55 | *.jar 56 | *.war 57 | *.ear 58 | *.db 59 | 60 | ###################### 61 | # Windows 62 | ###################### 63 | # Windows image file caches 64 | Thumbs.db 65 | 66 | # Folder config file 67 | Desktop.ini 68 | 69 | ###################### 70 | # Mac OSX 71 | ###################### 72 | .DS_Store 73 | .svn 74 | 75 | # Thumbnails 76 | ._* 77 | 78 | # Files that might appear on external disk 79 | .Spotlight-V100 80 | .Trashes 81 | 82 | ###################### 83 | # Directories 84 | ###################### 85 | /build/ 86 | /bin/ 87 | /deploy/ 88 | 89 | ###################### 90 | # Logs 91 | ###################### 92 | *.log 93 | 94 | ###################### 95 | # Others 96 | ###################### 97 | *.class 98 | *.*~ 99 | *~ 100 | .merge_file* 101 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SDK for interacting with Rancher Server using Java 2 | 3 | This project is a autogenerated Java Client for [Rancher](rancher.com) 4 | 5 | This project automatically generates the type definitions using a Go template generator and the Rancher provided API schema. It was originally derived from the [Go-Rancher](https://github.com/rancher/go-rancher) library. 6 | 7 | There services definitions are built using Square's [Retrofit2](http://square.github.io/retrofit/) library. 8 | 9 | Rancher API version: v2-beta 10 | 11 | Please see: 12 | 13 | # Maven Dependency 14 | 15 | ```xml 16 | 17 | br.com.basis 18 | rancher-java-sdk 19 | VERSION 20 | 21 | ``` 22 | 23 | # Example 24 | 25 | That entry point for this library is the `io.rancher.Rancher` class. You must first create an API key in your Rancher installation for this library to use. 26 | 27 | First, initialize your Rancher client: 28 | 29 | ```java 30 | Rancher.Config config = new Rancher.Config(new URL("https://rancher.mydomain.com"), "MyAPIAccessKey", "MyAPISecretKey"); 31 | Rancher rancher = new Rancher(config); 32 | ``` 33 | 34 | Once the client is created, you can interact with Rancher by having the client generate a proxy for one of the service interfaces for you. 35 | 36 | ```java 37 | StackService stackService = rancher.type(StackService.class); 38 | Response> execute = stackService.list().execute(); 39 | List stacks = execute.body().getData(); 40 | ``` 41 | 42 | # Releasing rancher-java-sdk to Maven Central 43 | 44 | In order to release rancher-java-sdk to Maven Central, sources and javadoc jars should be generated, and all jars have to be signed with PGP. If you don't have a PGP key, you can install GPG and generate a new key, see: for instance. 45 | 46 | Before releasing the git repository should be tagged and the tag should be signed using the same PGP key that will be used during the relase. For instance you can use: 47 | 48 | ```sh 49 | git tag -a -m 'Publishing version 1.0.0-RC3' -s 1.0.0-RC3 50 | ``` 51 | 52 | And if you have more than one PGP key: 53 | 54 | ```sh 55 | git tag -a -m 'Publishing version 1.0.0-RC3' -s -u F680B22C 1.0.0-RC3 56 | ``` 57 | 58 | In order to help with the release process a _release_ profile has been added to the project pom.xml automating the generation and signing of all jars. To deploy just run: 59 | 60 | ```sh 61 | mvn clean deploy -P release 62 | ``` 63 | Note that if you have more than one key you can use the _gpg.keyname_ option: 64 | 65 | ```sh 66 | mvn clean deploy -Dgpg.keyname=F680B22C -P release 67 | ``` 68 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/base/AbstractType.java: -------------------------------------------------------------------------------- 1 | package io.rancher.base; 2 | 3 | public abstract class AbstractType { 4 | 5 | private String id; 6 | 7 | public String getId() { 8 | return this.id; 9 | } 10 | 11 | public void setId(String id) { 12 | this.id = id; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/base/Filters.java: -------------------------------------------------------------------------------- 1 | package io.rancher.base; 2 | 3 | import java.util.HashMap; 4 | 5 | public class Filters extends HashMap { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/base/TypeCollection.java: -------------------------------------------------------------------------------- 1 | package io.rancher.base; 2 | 3 | import java.util.List; 4 | 5 | public class TypeCollection { 6 | 7 | private List data; 8 | 9 | public List getData() { 10 | return this.data; 11 | } 12 | 13 | public void setData(List data) { 14 | this.data = data; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/client/BasicAuthInterceptor.java: -------------------------------------------------------------------------------- 1 | package io.rancher.client; 2 | 3 | import okhttp3.Interceptor; 4 | import okhttp3.Request; 5 | import okhttp3.Response; 6 | 7 | import java.io.IOException; 8 | import java.util.Base64; 9 | 10 | public class BasicAuthInterceptor implements Interceptor { 11 | 12 | private final Credentials credentials; 13 | 14 | public BasicAuthInterceptor(Credentials credentials) { 15 | this.credentials = credentials; 16 | } 17 | 18 | @Override 19 | public Response intercept(Chain chain) throws IOException { 20 | Request request = chain.request(); 21 | Request modifiedRequest = request.newBuilder().addHeader( 22 | "Authorization", 23 | "Basic " + 24 | Base64.getEncoder().encodeToString( 25 | (credentials.getUsername() + ":" + credentials.getPassword()).getBytes()) 26 | ).build(); 27 | return chain.proceed(modifiedRequest); 28 | } 29 | 30 | public static BasicAuthInterceptor auth(String username, String password) { 31 | return new BasicAuthInterceptor(Credentials.of(username, password)); 32 | } 33 | 34 | static class Credentials { 35 | 36 | private final String username; 37 | private final String password; 38 | 39 | private Credentials(String username, String password) { 40 | this.username = username; 41 | this.password = password; 42 | } 43 | 44 | public String getUsername() { 45 | return this.username; 46 | } 47 | 48 | public String getPassword() { 49 | return this.password; 50 | } 51 | 52 | public static Credentials of(String username, String password) { 53 | return new Credentials(username, password); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/AccountService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Account; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface AccountService { 18 | 19 | @GET("account") 20 | Call> list(); 21 | 22 | @GET("account") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("account/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("account") 29 | Call create(@Body Account account); 30 | 31 | @PUT("account/{id}") 32 | Call update(@Path("id") String id, @Body Account account); 33 | 34 | @DELETE("account/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("account/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("account/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("account/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("account/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("account/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | @POST("account/{id}?action=upgrade") 53 | Call upgrade(@Path("id") String id); 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/AgentService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Agent; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface AgentService { 18 | 19 | @GET("agent") 20 | Call> list(); 21 | 22 | @GET("agent") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("agent/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("agent") 29 | Call create(@Body Agent agent); 30 | 31 | @PUT("agent/{id}") 32 | Call update(@Path("id") String id, @Body Agent agent); 33 | 34 | @DELETE("agent/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("agent/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("agent/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("agent/{id}?action=disconnect") 44 | Call disconnect(@Path("id") String id); 45 | 46 | @POST("agent/{id}?action=finishreconnect") 47 | Call finishreconnect(@Path("id") String id); 48 | 49 | @POST("agent/{id}?action=purge") 50 | Call purge(@Path("id") String id); 51 | 52 | @POST("agent/{id}?action=reconnect") 53 | Call reconnect(@Path("id") String id); 54 | 55 | @POST("agent/{id}?action=remove") 56 | Call remove(@Path("id") String id); 57 | 58 | @POST("agent/{id}?action=restore") 59 | Call restore(@Path("id") String id); 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ApiKeyService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ApiKey; 6 | import io.rancher.type.Credential; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ApiKeyService { 19 | 20 | @GET("apiKey") 21 | Call> list(); 22 | 23 | @GET("apiKey") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("apiKey/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("apiKey") 30 | Call create(@Body ApiKey apiKey); 31 | 32 | @PUT("apiKey/{id}") 33 | Call update(@Path("id") String id, @Body ApiKey apiKey); 34 | 35 | @DELETE("apiKey/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("apiKey/{id}?action=activate") 39 | Call activate(@Path("id") String id); 40 | 41 | @POST("apiKey/{id}?action=deactivate") 42 | Call deactivate(@Path("id") String id); 43 | 44 | @POST("apiKey/{id}?action=purge") 45 | Call purge(@Path("id") String id); 46 | 47 | @POST("apiKey/{id}?action=remove") 48 | Call remove(@Path("id") String id); 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/AuditLogService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.AuditLog; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface AuditLogService { 18 | 19 | @GET("auditLog") 20 | Call> list(); 21 | 22 | @GET("auditLog") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("auditLog/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("auditLog") 29 | Call create(@Body AuditLog auditLog); 30 | 31 | @PUT("auditLog/{id}") 32 | Call update(@Path("id") String id, @Body AuditLog auditLog); 33 | 34 | @DELETE("auditLog/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/AzureadconfigService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Azureadconfig; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface AzureadconfigService { 18 | 19 | @GET("azureadconfig") 20 | Call> list(); 21 | 22 | @GET("azureadconfig") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("azureadconfig/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("azureadconfig") 29 | Call create(@Body Azureadconfig azureadconfig); 30 | 31 | @PUT("azureadconfig/{id}") 32 | Call update(@Path("id") String id, @Body Azureadconfig azureadconfig); 33 | 34 | @DELETE("azureadconfig/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/BackupService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Backup; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface BackupService { 18 | 19 | @GET("backup") 20 | Call> list(); 21 | 22 | @GET("backup") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("backup/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("backup") 29 | Call create(@Body Backup backup); 30 | 31 | @PUT("backup/{id}") 32 | Call update(@Path("id") String id, @Body Backup backup); 33 | 34 | @DELETE("backup/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("backup/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/BackupTargetService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.BackupTarget; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface BackupTargetService { 18 | 19 | @GET("backupTarget") 20 | Call> list(); 21 | 22 | @GET("backupTarget") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("backupTarget/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("backupTarget") 29 | Call create(@Body BackupTarget backupTarget); 30 | 31 | @PUT("backupTarget/{id}") 32 | Call update(@Path("id") String id, @Body BackupTarget backupTarget); 33 | 34 | @DELETE("backupTarget/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("backupTarget/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/CertificateService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Certificate; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface CertificateService { 18 | 19 | @GET("certificate") 20 | Call> list(); 21 | 22 | @GET("certificate") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("certificate/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("certificate") 29 | Call create(@Body Certificate certificate); 30 | 31 | @PUT("certificate/{id}") 32 | Call update(@Path("id") String id, @Body Certificate certificate); 33 | 34 | @DELETE("certificate/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("certificate/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ClusterMembershipService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ClusterMembership; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ClusterMembershipService { 18 | 19 | @GET("clusterMembership") 20 | Call> list(); 21 | 22 | @GET("clusterMembership") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("clusterMembership/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("clusterMembership") 29 | Call create(@Body ClusterMembership clusterMembership); 30 | 31 | @PUT("clusterMembership/{id}") 32 | Call update(@Path("id") String id, @Body ClusterMembership clusterMembership); 33 | 34 | @DELETE("clusterMembership/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ComposeProjectService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ComposeProject; 6 | import io.rancher.type.Stack; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ComposeProjectService { 19 | 20 | @GET("composeProject") 21 | Call> list(); 22 | 23 | @GET("composeProject") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("composeProject/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("composeProject") 30 | Call create(@Body ComposeProject composeProject); 31 | 32 | @PUT("composeProject/{id}") 33 | Call update(@Path("id") String id, @Body ComposeProject composeProject); 34 | 35 | @DELETE("composeProject/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("composeProject/{id}?action=cancelupgrade") 39 | Call cancelupgrade(@Path("id") String id); 40 | 41 | @POST("composeProject/{id}?action=error") 42 | Call error(@Path("id") String id); 43 | 44 | @POST("composeProject/{id}?action=finishupgrade") 45 | Call finishupgrade(@Path("id") String id); 46 | 47 | @POST("composeProject/{id}?action=remove") 48 | Call remove(@Path("id") String id); 49 | 50 | @POST("composeProject/{id}?action=rollback") 51 | Call rollback(@Path("id") String id); 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ComposeServiceService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ComposeService; 6 | import io.rancher.type.Service; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ComposeServiceService { 19 | 20 | @GET("composeService") 21 | Call> list(); 22 | 23 | @GET("composeService") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("composeService/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("composeService") 30 | Call create(@Body ComposeService composeService); 31 | 32 | @PUT("composeService/{id}") 33 | Call update(@Path("id") String id, @Body ComposeService composeService); 34 | 35 | @DELETE("composeService/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("composeService/{id}?action=activate") 39 | Call activate(@Path("id") String id); 40 | 41 | @POST("composeService/{id}?action=cancelupgrade") 42 | Call cancelupgrade(@Path("id") String id); 43 | 44 | @POST("composeService/{id}?action=continueupgrade") 45 | Call continueupgrade(@Path("id") String id); 46 | 47 | @POST("composeService/{id}?action=finishupgrade") 48 | Call finishupgrade(@Path("id") String id); 49 | 50 | @POST("composeService/{id}?action=remove") 51 | Call remove(@Path("id") String id); 52 | 53 | @POST("composeService/{id}?action=rollback") 54 | Call rollback(@Path("id") String id); 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ConfigItemService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ConfigItem; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ConfigItemService { 18 | 19 | @GET("configItem") 20 | Call> list(); 21 | 22 | @GET("configItem") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("configItem/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("configItem") 29 | Call create(@Body ConfigItem configItem); 30 | 31 | @PUT("configItem/{id}") 32 | Call update(@Path("id") String id, @Body ConfigItem configItem); 33 | 34 | @DELETE("configItem/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ConfigItemStatusService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ConfigItemStatus; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ConfigItemStatusService { 18 | 19 | @GET("configItemStatus") 20 | Call> list(); 21 | 22 | @GET("configItemStatus") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("configItemStatus/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("configItemStatus") 29 | Call create(@Body ConfigItemStatus configItemStatus); 30 | 31 | @PUT("configItemStatus/{id}") 32 | Call update(@Path("id") String id, @Body ConfigItemStatus configItemStatus); 33 | 34 | @DELETE("configItemStatus/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ContainerEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ContainerEvent; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ContainerEventService { 18 | 19 | @GET("containerEvent") 20 | Call> list(); 21 | 22 | @GET("containerEvent") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("containerEvent/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("containerEvent") 29 | Call create(@Body ContainerEvent containerEvent); 30 | 31 | @PUT("containerEvent/{id}") 32 | Call update(@Path("id") String id, @Body ContainerEvent containerEvent); 33 | 34 | @DELETE("containerEvent/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("containerEvent/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/CredentialService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Credential; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface CredentialService { 18 | 19 | @GET("credential") 20 | Call> list(); 21 | 22 | @GET("credential") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("credential/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("credential") 29 | Call create(@Body Credential credential); 30 | 31 | @PUT("credential/{id}") 32 | Call update(@Path("id") String id, @Body Credential credential); 33 | 34 | @DELETE("credential/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("credential/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("credential/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("credential/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("credential/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/DatabasechangelogService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Databasechangelog; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface DatabasechangelogService { 18 | 19 | @GET("databasechangelog") 20 | Call> list(); 21 | 22 | @GET("databasechangelog") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("databasechangelog/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("databasechangelog") 29 | Call create(@Body Databasechangelog databasechangelog); 30 | 31 | @PUT("databasechangelog/{id}") 32 | Call update(@Path("id") String id, @Body Databasechangelog databasechangelog); 33 | 34 | @DELETE("databasechangelog/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/DatabasechangeloglockService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Databasechangeloglock; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface DatabasechangeloglockService { 18 | 19 | @GET("databasechangeloglock") 20 | Call> list(); 21 | 22 | @GET("databasechangeloglock") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("databasechangeloglock/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("databasechangeloglock") 29 | Call create(@Body Databasechangeloglock databasechangeloglock); 30 | 31 | @PUT("databasechangeloglock/{id}") 32 | Call update(@Path("id") String id, @Body Databasechangeloglock databasechangeloglock); 33 | 34 | @DELETE("databasechangeloglock/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExtensionPointService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExtensionPoint; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ExtensionPointService { 18 | 19 | @GET("extensionPoint") 20 | Call> list(); 21 | 22 | @GET("extensionPoint") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("extensionPoint/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("extensionPoint") 29 | Call create(@Body ExtensionPoint extensionPoint); 30 | 31 | @PUT("extensionPoint/{id}") 32 | Call update(@Path("id") String id, @Body ExtensionPoint extensionPoint); 33 | 34 | @DELETE("extensionPoint/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalDnsEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalDnsEvent; 6 | import io.rancher.type.ExternalEvent; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ExternalDnsEventService { 19 | 20 | @GET("externalDnsEvent") 21 | Call> list(); 22 | 23 | @GET("externalDnsEvent") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("externalDnsEvent/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("externalDnsEvent") 30 | Call create(@Body ExternalDnsEvent externalDnsEvent); 31 | 32 | @PUT("externalDnsEvent/{id}") 33 | Call update(@Path("id") String id, @Body ExternalDnsEvent externalDnsEvent); 34 | 35 | @DELETE("externalDnsEvent/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("externalDnsEvent/{id}?action=remove") 39 | Call remove(@Path("id") String id); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalEvent; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ExternalEventService { 18 | 19 | @GET("externalEvent") 20 | Call> list(); 21 | 22 | @GET("externalEvent") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("externalEvent/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("externalEvent") 29 | Call create(@Body ExternalEvent externalEvent); 30 | 31 | @PUT("externalEvent/{id}") 32 | Call update(@Path("id") String id, @Body ExternalEvent externalEvent); 33 | 34 | @DELETE("externalEvent/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("externalEvent/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalHandlerExternalHandlerProcessMapService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalHandlerExternalHandlerProcessMap; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ExternalHandlerExternalHandlerProcessMapService { 18 | 19 | @GET("externalHandlerExternalHandlerProcessMap") 20 | Call> list(); 21 | 22 | @GET("externalHandlerExternalHandlerProcessMap") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("externalHandlerExternalHandlerProcessMap/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("externalHandlerExternalHandlerProcessMap") 29 | Call create(@Body ExternalHandlerExternalHandlerProcessMap externalHandlerExternalHandlerProcessMap); 30 | 31 | @PUT("externalHandlerExternalHandlerProcessMap/{id}") 32 | Call update(@Path("id") String id, @Body ExternalHandlerExternalHandlerProcessMap externalHandlerExternalHandlerProcessMap); 33 | 34 | @DELETE("externalHandlerExternalHandlerProcessMap/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("externalHandlerExternalHandlerProcessMap/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("externalHandlerExternalHandlerProcessMap/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("externalHandlerExternalHandlerProcessMap/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("externalHandlerExternalHandlerProcessMap/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("externalHandlerExternalHandlerProcessMap/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalHandlerProcessService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalHandlerProcess; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ExternalHandlerProcessService { 18 | 19 | @GET("externalHandlerProcess") 20 | Call> list(); 21 | 22 | @GET("externalHandlerProcess") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("externalHandlerProcess/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("externalHandlerProcess") 29 | Call create(@Body ExternalHandlerProcess externalHandlerProcess); 30 | 31 | @PUT("externalHandlerProcess/{id}") 32 | Call update(@Path("id") String id, @Body ExternalHandlerProcess externalHandlerProcess); 33 | 34 | @DELETE("externalHandlerProcess/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("externalHandlerProcess/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("externalHandlerProcess/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("externalHandlerProcess/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("externalHandlerProcess/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("externalHandlerProcess/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalHandlerService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalHandler; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ExternalHandlerService { 18 | 19 | @GET("externalHandler") 20 | Call> list(); 21 | 22 | @GET("externalHandler") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("externalHandler/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("externalHandler") 29 | Call create(@Body ExternalHandler externalHandler); 30 | 31 | @PUT("externalHandler/{id}") 32 | Call update(@Path("id") String id, @Body ExternalHandler externalHandler); 33 | 34 | @DELETE("externalHandler/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("externalHandler/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("externalHandler/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("externalHandler/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("externalHandler/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("externalHandler/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalHostEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalHostEvent; 6 | import io.rancher.type.ExternalEvent; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ExternalHostEventService { 19 | 20 | @GET("externalHostEvent") 21 | Call> list(); 22 | 23 | @GET("externalHostEvent") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("externalHostEvent/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("externalHostEvent") 30 | Call create(@Body ExternalHostEvent externalHostEvent); 31 | 32 | @PUT("externalHostEvent/{id}") 33 | Call update(@Path("id") String id, @Body ExternalHostEvent externalHostEvent); 34 | 35 | @DELETE("externalHostEvent/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("externalHostEvent/{id}?action=remove") 39 | Call remove(@Path("id") String id); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalServiceEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalServiceEvent; 6 | import io.rancher.type.ExternalEvent; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ExternalServiceEventService { 19 | 20 | @GET("externalServiceEvent") 21 | Call> list(); 22 | 23 | @GET("externalServiceEvent") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("externalServiceEvent/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("externalServiceEvent") 30 | Call create(@Body ExternalServiceEvent externalServiceEvent); 31 | 32 | @PUT("externalServiceEvent/{id}") 33 | Call update(@Path("id") String id, @Body ExternalServiceEvent externalServiceEvent); 34 | 35 | @DELETE("externalServiceEvent/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("externalServiceEvent/{id}?action=remove") 39 | Call remove(@Path("id") String id); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalServiceService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalService; 6 | import io.rancher.type.Service; 7 | import io.rancher.type.ServiceUpgrade; 8 | import io.rancher.type.ServiceRestart; 9 | 10 | import retrofit2.Call; 11 | import retrofit2.Response; 12 | import retrofit2.http.Body; 13 | import retrofit2.http.DELETE; 14 | import retrofit2.http.GET; 15 | import retrofit2.http.POST; 16 | import retrofit2.http.PUT; 17 | import retrofit2.http.Path; 18 | import retrofit2.http.QueryMap; 19 | 20 | public interface ExternalServiceService { 21 | 22 | @GET("externalService") 23 | Call> list(); 24 | 25 | @GET("externalService") 26 | Call> list(@QueryMap Filters filters); 27 | 28 | @GET("externalService/{id}") 29 | Call get(@Path("id") String id); 30 | 31 | @POST("externalService") 32 | Call create(@Body ExternalService externalService); 33 | 34 | @PUT("externalService/{id}") 35 | Call update(@Path("id") String id, @Body ExternalService externalService); 36 | 37 | @DELETE("externalService/{id}") 38 | Call delete(@Path("id") String id); 39 | 40 | @POST("externalService/{id}?action=activate") 41 | Call activate(@Path("id") String id); 42 | 43 | @POST("externalService/{id}?action=cancelupgrade") 44 | Call cancelupgrade(@Path("id") String id); 45 | 46 | @POST("externalService/{id}?action=continueupgrade") 47 | Call continueupgrade(@Path("id") String id); 48 | 49 | @POST("externalService/{id}?action=deactivate") 50 | Call deactivate(@Path("id") String id); 51 | 52 | @POST("externalService/{id}?action=finishupgrade") 53 | Call finishupgrade(@Path("id") String id); 54 | 55 | @POST("externalService/{id}?action=remove") 56 | Call remove(@Path("id") String id); 57 | 58 | @POST("externalService/{id}?action=restart") 59 | Call restart(@Path("id") String id, @Body ServiceRestart serviceRestart); 60 | 61 | @POST("externalService/{id}?action=rollback") 62 | Call rollback(@Path("id") String id); 63 | 64 | @POST("externalService/{id}?action=upgrade") 65 | Call upgrade(@Path("id") String id, @Body ServiceUpgrade serviceUpgrade); 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalStoragePoolEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalStoragePoolEvent; 6 | import io.rancher.type.ExternalEvent; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ExternalStoragePoolEventService { 19 | 20 | @GET("externalStoragePoolEvent") 21 | Call> list(); 22 | 23 | @GET("externalStoragePoolEvent") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("externalStoragePoolEvent/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("externalStoragePoolEvent") 30 | Call create(@Body ExternalStoragePoolEvent externalStoragePoolEvent); 31 | 32 | @PUT("externalStoragePoolEvent/{id}") 33 | Call update(@Path("id") String id, @Body ExternalStoragePoolEvent externalStoragePoolEvent); 34 | 35 | @DELETE("externalStoragePoolEvent/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("externalStoragePoolEvent/{id}?action=remove") 39 | Call remove(@Path("id") String id); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ExternalVolumeEventService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.ExternalVolumeEvent; 6 | import io.rancher.type.ExternalEvent; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface ExternalVolumeEventService { 19 | 20 | @GET("externalVolumeEvent") 21 | Call> list(); 22 | 23 | @GET("externalVolumeEvent") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("externalVolumeEvent/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("externalVolumeEvent") 30 | Call create(@Body ExternalVolumeEvent externalVolumeEvent); 31 | 32 | @PUT("externalVolumeEvent/{id}") 33 | Call update(@Path("id") String id, @Body ExternalVolumeEvent externalVolumeEvent); 34 | 35 | @DELETE("externalVolumeEvent/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("externalVolumeEvent/{id}?action=remove") 39 | Call remove(@Path("id") String id); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/GenericObjectService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.GenericObject; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface GenericObjectService { 18 | 19 | @GET("genericObject") 20 | Call> list(); 21 | 22 | @GET("genericObject") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("genericObject/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("genericObject") 29 | Call create(@Body GenericObject genericObject); 30 | 31 | @PUT("genericObject/{id}") 32 | Call update(@Path("id") String id, @Body GenericObject genericObject); 33 | 34 | @DELETE("genericObject/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("genericObject/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HaConfigInputService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.HaConfigInput; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface HaConfigInputService { 18 | 19 | @GET("haConfigInput") 20 | Call> list(); 21 | 22 | @GET("haConfigInput") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("haConfigInput/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("haConfigInput") 29 | Call create(@Body HaConfigInput haConfigInput); 30 | 31 | @PUT("haConfigInput/{id}") 32 | Call update(@Path("id") String id, @Body HaConfigInput haConfigInput); 33 | 34 | @DELETE("haConfigInput/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HaConfigService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.HaConfig; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface HaConfigService { 18 | 19 | @GET("haConfig") 20 | Call> list(); 21 | 22 | @GET("haConfig") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("haConfig/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("haConfig") 29 | Call create(@Body HaConfig haConfig); 30 | 31 | @PUT("haConfig/{id}") 32 | Call update(@Path("id") String id, @Body HaConfig haConfig); 33 | 34 | @DELETE("haConfig/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HealthcheckInstanceHostMapService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.HealthcheckInstanceHostMap; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface HealthcheckInstanceHostMapService { 18 | 19 | @GET("healthcheckInstanceHostMap") 20 | Call> list(); 21 | 22 | @GET("healthcheckInstanceHostMap") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("healthcheckInstanceHostMap/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("healthcheckInstanceHostMap") 29 | Call create(@Body HealthcheckInstanceHostMap healthcheckInstanceHostMap); 30 | 31 | @PUT("healthcheckInstanceHostMap/{id}") 32 | Call update(@Path("id") String id, @Body HealthcheckInstanceHostMap healthcheckInstanceHostMap); 33 | 34 | @DELETE("healthcheckInstanceHostMap/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("healthcheckInstanceHostMap/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HostApiProxyTokenService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.HostApiProxyToken; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface HostApiProxyTokenService { 18 | 19 | @GET("hostApiProxyToken") 20 | Call> list(); 21 | 22 | @GET("hostApiProxyToken") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("hostApiProxyToken/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("hostApiProxyToken") 29 | Call create(@Body HostApiProxyToken hostApiProxyToken); 30 | 31 | @PUT("hostApiProxyToken/{id}") 32 | Call update(@Path("id") String id, @Body HostApiProxyToken hostApiProxyToken); 33 | 34 | @DELETE("hostApiProxyToken/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HostService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Host; 6 | import io.rancher.type.HostAccess; 7 | 8 | import retrofit2.Call; 9 | import retrofit2.Response; 10 | import retrofit2.http.Body; 11 | import retrofit2.http.DELETE; 12 | import retrofit2.http.GET; 13 | import retrofit2.http.POST; 14 | import retrofit2.http.PUT; 15 | import retrofit2.http.Path; 16 | import retrofit2.http.QueryMap; 17 | 18 | public interface HostService { 19 | 20 | @GET("host") 21 | Call> list(); 22 | 23 | @GET("host") 24 | Call> list(@QueryMap Filters filters); 25 | 26 | @GET("host/{id}") 27 | Call get(@Path("id") String id); 28 | 29 | @POST("host") 30 | Call create(@Body Host host); 31 | 32 | @PUT("host/{id}") 33 | Call update(@Path("id") String id, @Body Host host); 34 | 35 | @DELETE("host/{id}") 36 | Call delete(@Path("id") String id); 37 | 38 | @POST("host/{id}?action=activate") 39 | Call activate(@Path("id") String id); 40 | 41 | @POST("host/{id}?action=deactivate") 42 | Call deactivate(@Path("id") String id); 43 | 44 | @POST("host/{id}?action=dockersocket") 45 | Call dockersocket(@Path("id") String id); 46 | 47 | @POST("host/{id}?action=error") 48 | Call error(@Path("id") String id); 49 | 50 | @POST("host/{id}?action=evacuate") 51 | Call evacuate(@Path("id") String id); 52 | 53 | @POST("host/{id}?action=provision") 54 | Call provision(@Path("id") String id); 55 | 56 | @POST("host/{id}?action=purge") 57 | Call purge(@Path("id") String id); 58 | 59 | @POST("host/{id}?action=remove") 60 | Call remove(@Path("id") String id); 61 | 62 | @POST("host/{id}?action=restore") 63 | Call restore(@Path("id") String id); 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/HostTemplateService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.HostTemplate; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface HostTemplateService { 18 | 19 | @GET("hostTemplate") 20 | Call> list(); 21 | 22 | @GET("hostTemplate") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("hostTemplate/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("hostTemplate") 29 | Call create(@Body HostTemplate hostTemplate); 30 | 31 | @PUT("hostTemplate/{id}") 32 | Call update(@Path("id") String id, @Body HostTemplate hostTemplate); 33 | 34 | @DELETE("hostTemplate/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("hostTemplate/{id}?action=remove") 38 | Call remove(@Path("id") String id); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/IdentityService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Identity; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface IdentityService { 18 | 19 | @GET("identity") 20 | Call> list(); 21 | 22 | @GET("identity") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("identity/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("identity") 29 | Call create(@Body Identity identity); 30 | 31 | @PUT("identity/{id}") 32 | Call update(@Path("id") String id, @Body Identity identity); 33 | 34 | @DELETE("identity/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/ImageService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Image; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface ImageService { 18 | 19 | @GET("image") 20 | Call> list(); 21 | 22 | @GET("image") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("image/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("image") 29 | Call create(@Body Image image); 30 | 31 | @PUT("image/{id}") 32 | Call update(@Path("id") String id, @Body Image image); 33 | 34 | @DELETE("image/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("image/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("image/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("image/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("image/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("image/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/InstanceLinkService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.InstanceLink; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface InstanceLinkService { 18 | 19 | @GET("instanceLink") 20 | Call> list(); 21 | 22 | @GET("instanceLink") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("instanceLink/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("instanceLink") 29 | Call create(@Body InstanceLink instanceLink); 30 | 31 | @PUT("instanceLink/{id}") 32 | Call update(@Path("id") String id, @Body InstanceLink instanceLink); 33 | 34 | @DELETE("instanceLink/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("instanceLink/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("instanceLink/{id}?action=deactivate") 41 | Call deactivate(@Path("id") String id); 42 | 43 | @POST("instanceLink/{id}?action=purge") 44 | Call purge(@Path("id") String id); 45 | 46 | @POST("instanceLink/{id}?action=remove") 47 | Call remove(@Path("id") String id); 48 | 49 | @POST("instanceLink/{id}?action=restore") 50 | Call restore(@Path("id") String id); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/IpAddressService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.IpAddress; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface IpAddressService { 18 | 19 | @GET("ipAddress") 20 | Call> list(); 21 | 22 | @GET("ipAddress") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("ipAddress/{id}") 26 | Call get(@Path("id") String id); 27 | 28 | @POST("ipAddress") 29 | Call create(@Body IpAddress ipAddress); 30 | 31 | @PUT("ipAddress/{id}") 32 | Call update(@Path("id") String id, @Body IpAddress ipAddress); 33 | 34 | @DELETE("ipAddress/{id}") 35 | Call delete(@Path("id") String id); 36 | 37 | @POST("ipAddress/{id}?action=activate") 38 | Call activate(@Path("id") String id); 39 | 40 | @POST("ipAddress/{id}?action=associate") 41 | Call associate(@Path("id") String id); 42 | 43 | @POST("ipAddress/{id}?action=deactivate") 44 | Call deactivate(@Path("id") String id); 45 | 46 | @POST("ipAddress/{id}?action=disassociate") 47 | Call disassociate(@Path("id") String id); 48 | 49 | @POST("ipAddress/{id}?action=purge") 50 | Call purge(@Path("id") String id); 51 | 52 | @POST("ipAddress/{id}?action=remove") 53 | Call remove(@Path("id") String id); 54 | 55 | @POST("ipAddress/{id}?action=restore") 56 | Call restore(@Path("id") String id); 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/KubernetesStackService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.KubernetesStack; 6 | import io.rancher.type.Stack; 7 | import io.rancher.type.KubernetesStackUpgrade; 8 | 9 | import retrofit2.Call; 10 | import retrofit2.Response; 11 | import retrofit2.http.Body; 12 | import retrofit2.http.DELETE; 13 | import retrofit2.http.GET; 14 | import retrofit2.http.POST; 15 | import retrofit2.http.PUT; 16 | import retrofit2.http.Path; 17 | import retrofit2.http.QueryMap; 18 | 19 | public interface KubernetesStackService { 20 | 21 | @GET("kubernetesStack") 22 | Call> list(); 23 | 24 | @GET("kubernetesStack") 25 | Call> list(@QueryMap Filters filters); 26 | 27 | @GET("kubernetesStack/{id}") 28 | Call get(@Path("id") String id); 29 | 30 | @POST("kubernetesStack") 31 | Call create(@Body KubernetesStack kubernetesStack); 32 | 33 | @PUT("kubernetesStack/{id}") 34 | Call update(@Path("id") String id, @Body KubernetesStack kubernetesStack); 35 | 36 | @DELETE("kubernetesStack/{id}") 37 | Call delete(@Path("id") String id); 38 | 39 | @POST("kubernetesStack/{id}?action=cancelupgrade") 40 | Call cancelupgrade(@Path("id") String id); 41 | 42 | @POST("kubernetesStack/{id}?action=error") 43 | Call error(@Path("id") String id); 44 | 45 | @POST("kubernetesStack/{id}?action=finishupgrade") 46 | Call finishupgrade(@Path("id") String id); 47 | 48 | @POST("kubernetesStack/{id}?action=remove") 49 | Call remove(@Path("id") String id); 50 | 51 | @POST("kubernetesStack/{id}?action=rollback") 52 | Call rollback(@Path("id") String id); 53 | 54 | @POST("kubernetesStack/{id}?action=upgrade") 55 | Call upgrade(@Path("id") String id, @Body KubernetesStackUpgrade kubernetesStackUpgrade); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/io/rancher/service/LabelService.java: -------------------------------------------------------------------------------- 1 | package io.rancher.service; 2 | 3 | import io.rancher.base.Filters; 4 | import io.rancher.base.TypeCollection; 5 | import io.rancher.type.Label; 6 | 7 | import retrofit2.Call; 8 | import retrofit2.Response; 9 | import retrofit2.http.Body; 10 | import retrofit2.http.DELETE; 11 | import retrofit2.http.GET; 12 | import retrofit2.http.POST; 13 | import retrofit2.http.PUT; 14 | import retrofit2.http.Path; 15 | import retrofit2.http.QueryMap; 16 | 17 | public interface LabelService { 18 | 19 | @GET("label") 20 | Call> list(); 21 | 22 | @GET("label") 23 | Call> list(@QueryMap Filters filters); 24 | 25 | @GET("label/{id}") 26 | Call