2017-02-07 21:33:23 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
type RancherClient struct {
|
|
|
|
RancherBaseClient
|
|
|
|
|
|
|
|
Account AccountOperations
|
|
|
|
ActiveSetting ActiveSettingOperations
|
|
|
|
AddOutputsInput AddOutputsInputOperations
|
|
|
|
AddRemoveServiceLinkInput AddRemoveServiceLinkInputOperations
|
|
|
|
Agent AgentOperations
|
|
|
|
Amazonec2Config Amazonec2ConfigOperations
|
|
|
|
ApiKey ApiKeyOperations
|
|
|
|
AuditLog AuditLogOperations
|
|
|
|
AzureConfig AzureConfigOperations
|
|
|
|
Azureadconfig AzureadconfigOperations
|
|
|
|
Backup BackupOperations
|
|
|
|
BackupTarget BackupTargetOperations
|
|
|
|
BaseMachineConfig BaseMachineConfigOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
Binding BindingOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
BlkioDeviceOption BlkioDeviceOptionOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
CatalogTemplate CatalogTemplateOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Certificate CertificateOperations
|
|
|
|
ChangeSecretInput ChangeSecretInputOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ClusterMembership ClusterMembershipOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
ComposeConfig ComposeConfigOperations
|
|
|
|
ComposeConfigInput ComposeConfigInputOperations
|
|
|
|
ComposeProject ComposeProjectOperations
|
|
|
|
ComposeService ComposeServiceOperations
|
|
|
|
ConfigItem ConfigItemOperations
|
|
|
|
ConfigItemStatus ConfigItemStatusOperations
|
|
|
|
Container ContainerOperations
|
|
|
|
ContainerEvent ContainerEventOperations
|
|
|
|
ContainerExec ContainerExecOperations
|
|
|
|
ContainerLogs ContainerLogsOperations
|
|
|
|
ContainerProxy ContainerProxyOperations
|
|
|
|
Credential CredentialOperations
|
|
|
|
Databasechangelog DatabasechangelogOperations
|
|
|
|
Databasechangeloglock DatabasechangeloglockOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
DefaultNetwork DefaultNetworkOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
DigitaloceanConfig DigitaloceanConfigOperations
|
|
|
|
DnsService DnsServiceOperations
|
|
|
|
DockerBuild DockerBuildOperations
|
|
|
|
ExtensionImplementation ExtensionImplementationOperations
|
|
|
|
ExtensionPoint ExtensionPointOperations
|
|
|
|
ExternalDnsEvent ExternalDnsEventOperations
|
|
|
|
ExternalEvent ExternalEventOperations
|
|
|
|
ExternalHandler ExternalHandlerOperations
|
|
|
|
ExternalHandlerExternalHandlerProcessMap ExternalHandlerExternalHandlerProcessMapOperations
|
|
|
|
ExternalHandlerProcess ExternalHandlerProcessOperations
|
|
|
|
ExternalHandlerProcessConfig ExternalHandlerProcessConfigOperations
|
|
|
|
ExternalHostEvent ExternalHostEventOperations
|
|
|
|
ExternalService ExternalServiceOperations
|
|
|
|
ExternalServiceEvent ExternalServiceEventOperations
|
|
|
|
ExternalStoragePoolEvent ExternalStoragePoolEventOperations
|
|
|
|
ExternalVolumeEvent ExternalVolumeEventOperations
|
|
|
|
FieldDocumentation FieldDocumentationOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
GenericObject GenericObjectOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
HaConfig HaConfigOperations
|
|
|
|
HaConfigInput HaConfigInputOperations
|
|
|
|
HealthcheckInstanceHostMap HealthcheckInstanceHostMapOperations
|
|
|
|
Host HostOperations
|
|
|
|
HostAccess HostAccessOperations
|
|
|
|
HostApiProxyToken HostApiProxyTokenOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
HostTemplate HostTemplateOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Identity IdentityOperations
|
|
|
|
Image ImageOperations
|
|
|
|
InServiceUpgradeStrategy InServiceUpgradeStrategyOperations
|
|
|
|
Instance InstanceOperations
|
|
|
|
InstanceConsole InstanceConsoleOperations
|
|
|
|
InstanceConsoleInput InstanceConsoleInputOperations
|
|
|
|
InstanceHealthCheck InstanceHealthCheckOperations
|
|
|
|
InstanceLink InstanceLinkOperations
|
|
|
|
InstanceStop InstanceStopOperations
|
|
|
|
IpAddress IpAddressOperations
|
|
|
|
KubernetesService KubernetesServiceOperations
|
|
|
|
KubernetesStack KubernetesStackOperations
|
|
|
|
KubernetesStackUpgrade KubernetesStackUpgradeOperations
|
|
|
|
Label LabelOperations
|
|
|
|
LaunchConfig LaunchConfigOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
LbConfig LbConfigOperations
|
|
|
|
LbTargetConfig LbTargetConfigOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
LoadBalancerCookieStickinessPolicy LoadBalancerCookieStickinessPolicyOperations
|
|
|
|
LoadBalancerService LoadBalancerServiceOperations
|
|
|
|
LocalAuthConfig LocalAuthConfigOperations
|
|
|
|
LogConfig LogConfigOperations
|
|
|
|
Machine MachineOperations
|
|
|
|
MachineDriver MachineDriverOperations
|
|
|
|
Mount MountOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
MountEntry MountEntryOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Network NetworkOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
NetworkDriver NetworkDriverOperations
|
|
|
|
NetworkDriverService NetworkDriverServiceOperations
|
|
|
|
NetworkPolicyRule NetworkPolicyRuleOperations
|
|
|
|
NetworkPolicyRuleBetween NetworkPolicyRuleBetweenOperations
|
|
|
|
NetworkPolicyRuleMember NetworkPolicyRuleMemberOperations
|
|
|
|
NetworkPolicyRuleWithin NetworkPolicyRuleWithinOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
NfsConfig NfsConfigOperations
|
|
|
|
Openldapconfig OpenldapconfigOperations
|
|
|
|
PacketConfig PacketConfigOperations
|
|
|
|
Password PasswordOperations
|
|
|
|
PhysicalHost PhysicalHostOperations
|
|
|
|
Port PortOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
PortRule PortRuleOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
ProcessDefinition ProcessDefinitionOperations
|
|
|
|
ProcessExecution ProcessExecutionOperations
|
|
|
|
ProcessInstance ProcessInstanceOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ProcessPool ProcessPoolOperations
|
|
|
|
ProcessSummary ProcessSummaryOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Project ProjectOperations
|
|
|
|
ProjectMember ProjectMemberOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ProjectTemplate ProjectTemplateOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
PublicEndpoint PublicEndpointOperations
|
|
|
|
Publish PublishOperations
|
|
|
|
PullTask PullTaskOperations
|
|
|
|
RecreateOnQuorumStrategyConfig RecreateOnQuorumStrategyConfigOperations
|
|
|
|
Register RegisterOperations
|
|
|
|
RegistrationToken RegistrationTokenOperations
|
|
|
|
Registry RegistryOperations
|
|
|
|
RegistryCredential RegistryCredentialOperations
|
|
|
|
ResourceDefinition ResourceDefinitionOperations
|
|
|
|
RestartPolicy RestartPolicyOperations
|
|
|
|
RestoreFromBackupInput RestoreFromBackupInputOperations
|
|
|
|
RevertToSnapshotInput RevertToSnapshotInputOperations
|
|
|
|
RollingRestartStrategy RollingRestartStrategyOperations
|
|
|
|
ScalePolicy ScalePolicyOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ScheduledUpgrade ScheduledUpgradeOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
SecondaryLaunchConfig SecondaryLaunchConfigOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
Secret SecretOperations
|
|
|
|
SecretReference SecretReferenceOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Service ServiceOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ServiceBinding ServiceBindingOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
ServiceConsumeMap ServiceConsumeMapOperations
|
|
|
|
ServiceEvent ServiceEventOperations
|
|
|
|
ServiceExposeMap ServiceExposeMapOperations
|
|
|
|
ServiceLink ServiceLinkOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
ServiceLog ServiceLogOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
ServiceProxy ServiceProxyOperations
|
|
|
|
ServiceRestart ServiceRestartOperations
|
|
|
|
ServiceUpgrade ServiceUpgradeOperations
|
|
|
|
ServiceUpgradeStrategy ServiceUpgradeStrategyOperations
|
|
|
|
ServicesPortRange ServicesPortRangeOperations
|
|
|
|
SetProjectMembersInput SetProjectMembersInputOperations
|
|
|
|
SetServiceLinksInput SetServiceLinksInputOperations
|
|
|
|
Setting SettingOperations
|
|
|
|
Snapshot SnapshotOperations
|
|
|
|
SnapshotBackupInput SnapshotBackupInputOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
Stack StackOperations
|
|
|
|
StackUpgrade StackUpgradeOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
StateTransition StateTransitionOperations
|
|
|
|
StatsAccess StatsAccessOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
StorageDriver StorageDriverOperations
|
|
|
|
StorageDriverService StorageDriverServiceOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
StoragePool StoragePoolOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
Subnet SubnetOperations
|
|
|
|
TargetPortRule TargetPortRuleOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
Task TaskOperations
|
|
|
|
TaskInstance TaskInstanceOperations
|
|
|
|
ToServiceUpgradeStrategy ToServiceUpgradeStrategyOperations
|
|
|
|
TypeDocumentation TypeDocumentationOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
Ulimit UlimitOperations
|
|
|
|
UserPreference UserPreferenceOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
VirtualMachine VirtualMachineOperations
|
|
|
|
VirtualMachineDisk VirtualMachineDiskOperations
|
|
|
|
Volume VolumeOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
VolumeActivateInput VolumeActivateInputOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
VolumeSnapshotInput VolumeSnapshotInputOperations
|
2017-11-05 12:02:03 +00:00
|
|
|
VolumeTemplate VolumeTemplateOperations
|
2017-02-07 21:33:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func constructClient(rancherBaseClient *RancherBaseClientImpl) *RancherClient {
|
|
|
|
client := &RancherClient{
|
|
|
|
RancherBaseClient: rancherBaseClient,
|
|
|
|
}
|
|
|
|
|
|
|
|
client.Account = newAccountClient(client)
|
|
|
|
client.ActiveSetting = newActiveSettingClient(client)
|
|
|
|
client.AddOutputsInput = newAddOutputsInputClient(client)
|
|
|
|
client.AddRemoveServiceLinkInput = newAddRemoveServiceLinkInputClient(client)
|
|
|
|
client.Agent = newAgentClient(client)
|
|
|
|
client.Amazonec2Config = newAmazonec2ConfigClient(client)
|
|
|
|
client.ApiKey = newApiKeyClient(client)
|
|
|
|
client.AuditLog = newAuditLogClient(client)
|
|
|
|
client.AzureConfig = newAzureConfigClient(client)
|
|
|
|
client.Azureadconfig = newAzureadconfigClient(client)
|
|
|
|
client.Backup = newBackupClient(client)
|
|
|
|
client.BackupTarget = newBackupTargetClient(client)
|
|
|
|
client.BaseMachineConfig = newBaseMachineConfigClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.Binding = newBindingClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.BlkioDeviceOption = newBlkioDeviceOptionClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.CatalogTemplate = newCatalogTemplateClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Certificate = newCertificateClient(client)
|
|
|
|
client.ChangeSecretInput = newChangeSecretInputClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ClusterMembership = newClusterMembershipClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.ComposeConfig = newComposeConfigClient(client)
|
|
|
|
client.ComposeConfigInput = newComposeConfigInputClient(client)
|
|
|
|
client.ComposeProject = newComposeProjectClient(client)
|
|
|
|
client.ComposeService = newComposeServiceClient(client)
|
|
|
|
client.ConfigItem = newConfigItemClient(client)
|
|
|
|
client.ConfigItemStatus = newConfigItemStatusClient(client)
|
|
|
|
client.Container = newContainerClient(client)
|
|
|
|
client.ContainerEvent = newContainerEventClient(client)
|
|
|
|
client.ContainerExec = newContainerExecClient(client)
|
|
|
|
client.ContainerLogs = newContainerLogsClient(client)
|
|
|
|
client.ContainerProxy = newContainerProxyClient(client)
|
|
|
|
client.Credential = newCredentialClient(client)
|
|
|
|
client.Databasechangelog = newDatabasechangelogClient(client)
|
|
|
|
client.Databasechangeloglock = newDatabasechangeloglockClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.DefaultNetwork = newDefaultNetworkClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.DigitaloceanConfig = newDigitaloceanConfigClient(client)
|
|
|
|
client.DnsService = newDnsServiceClient(client)
|
|
|
|
client.DockerBuild = newDockerBuildClient(client)
|
|
|
|
client.ExtensionImplementation = newExtensionImplementationClient(client)
|
|
|
|
client.ExtensionPoint = newExtensionPointClient(client)
|
|
|
|
client.ExternalDnsEvent = newExternalDnsEventClient(client)
|
|
|
|
client.ExternalEvent = newExternalEventClient(client)
|
|
|
|
client.ExternalHandler = newExternalHandlerClient(client)
|
|
|
|
client.ExternalHandlerExternalHandlerProcessMap = newExternalHandlerExternalHandlerProcessMapClient(client)
|
|
|
|
client.ExternalHandlerProcess = newExternalHandlerProcessClient(client)
|
|
|
|
client.ExternalHandlerProcessConfig = newExternalHandlerProcessConfigClient(client)
|
|
|
|
client.ExternalHostEvent = newExternalHostEventClient(client)
|
|
|
|
client.ExternalService = newExternalServiceClient(client)
|
|
|
|
client.ExternalServiceEvent = newExternalServiceEventClient(client)
|
|
|
|
client.ExternalStoragePoolEvent = newExternalStoragePoolEventClient(client)
|
|
|
|
client.ExternalVolumeEvent = newExternalVolumeEventClient(client)
|
|
|
|
client.FieldDocumentation = newFieldDocumentationClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.GenericObject = newGenericObjectClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.HaConfig = newHaConfigClient(client)
|
|
|
|
client.HaConfigInput = newHaConfigInputClient(client)
|
|
|
|
client.HealthcheckInstanceHostMap = newHealthcheckInstanceHostMapClient(client)
|
|
|
|
client.Host = newHostClient(client)
|
|
|
|
client.HostAccess = newHostAccessClient(client)
|
|
|
|
client.HostApiProxyToken = newHostApiProxyTokenClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.HostTemplate = newHostTemplateClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Identity = newIdentityClient(client)
|
|
|
|
client.Image = newImageClient(client)
|
|
|
|
client.InServiceUpgradeStrategy = newInServiceUpgradeStrategyClient(client)
|
|
|
|
client.Instance = newInstanceClient(client)
|
|
|
|
client.InstanceConsole = newInstanceConsoleClient(client)
|
|
|
|
client.InstanceConsoleInput = newInstanceConsoleInputClient(client)
|
|
|
|
client.InstanceHealthCheck = newInstanceHealthCheckClient(client)
|
|
|
|
client.InstanceLink = newInstanceLinkClient(client)
|
|
|
|
client.InstanceStop = newInstanceStopClient(client)
|
|
|
|
client.IpAddress = newIpAddressClient(client)
|
|
|
|
client.KubernetesService = newKubernetesServiceClient(client)
|
|
|
|
client.KubernetesStack = newKubernetesStackClient(client)
|
|
|
|
client.KubernetesStackUpgrade = newKubernetesStackUpgradeClient(client)
|
|
|
|
client.Label = newLabelClient(client)
|
|
|
|
client.LaunchConfig = newLaunchConfigClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.LbConfig = newLbConfigClient(client)
|
|
|
|
client.LbTargetConfig = newLbTargetConfigClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.LoadBalancerCookieStickinessPolicy = newLoadBalancerCookieStickinessPolicyClient(client)
|
|
|
|
client.LoadBalancerService = newLoadBalancerServiceClient(client)
|
|
|
|
client.LocalAuthConfig = newLocalAuthConfigClient(client)
|
|
|
|
client.LogConfig = newLogConfigClient(client)
|
|
|
|
client.Machine = newMachineClient(client)
|
|
|
|
client.MachineDriver = newMachineDriverClient(client)
|
|
|
|
client.Mount = newMountClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.MountEntry = newMountEntryClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Network = newNetworkClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.NetworkDriver = newNetworkDriverClient(client)
|
|
|
|
client.NetworkDriverService = newNetworkDriverServiceClient(client)
|
|
|
|
client.NetworkPolicyRule = newNetworkPolicyRuleClient(client)
|
|
|
|
client.NetworkPolicyRuleBetween = newNetworkPolicyRuleBetweenClient(client)
|
|
|
|
client.NetworkPolicyRuleMember = newNetworkPolicyRuleMemberClient(client)
|
|
|
|
client.NetworkPolicyRuleWithin = newNetworkPolicyRuleWithinClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.NfsConfig = newNfsConfigClient(client)
|
|
|
|
client.Openldapconfig = newOpenldapconfigClient(client)
|
|
|
|
client.PacketConfig = newPacketConfigClient(client)
|
|
|
|
client.Password = newPasswordClient(client)
|
|
|
|
client.PhysicalHost = newPhysicalHostClient(client)
|
|
|
|
client.Port = newPortClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.PortRule = newPortRuleClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.ProcessDefinition = newProcessDefinitionClient(client)
|
|
|
|
client.ProcessExecution = newProcessExecutionClient(client)
|
|
|
|
client.ProcessInstance = newProcessInstanceClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ProcessPool = newProcessPoolClient(client)
|
|
|
|
client.ProcessSummary = newProcessSummaryClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Project = newProjectClient(client)
|
|
|
|
client.ProjectMember = newProjectMemberClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ProjectTemplate = newProjectTemplateClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.PublicEndpoint = newPublicEndpointClient(client)
|
|
|
|
client.Publish = newPublishClient(client)
|
|
|
|
client.PullTask = newPullTaskClient(client)
|
|
|
|
client.RecreateOnQuorumStrategyConfig = newRecreateOnQuorumStrategyConfigClient(client)
|
|
|
|
client.Register = newRegisterClient(client)
|
|
|
|
client.RegistrationToken = newRegistrationTokenClient(client)
|
|
|
|
client.Registry = newRegistryClient(client)
|
|
|
|
client.RegistryCredential = newRegistryCredentialClient(client)
|
|
|
|
client.ResourceDefinition = newResourceDefinitionClient(client)
|
|
|
|
client.RestartPolicy = newRestartPolicyClient(client)
|
|
|
|
client.RestoreFromBackupInput = newRestoreFromBackupInputClient(client)
|
|
|
|
client.RevertToSnapshotInput = newRevertToSnapshotInputClient(client)
|
|
|
|
client.RollingRestartStrategy = newRollingRestartStrategyClient(client)
|
|
|
|
client.ScalePolicy = newScalePolicyClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ScheduledUpgrade = newScheduledUpgradeClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.SecondaryLaunchConfig = newSecondaryLaunchConfigClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.Secret = newSecretClient(client)
|
|
|
|
client.SecretReference = newSecretReferenceClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Service = newServiceClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ServiceBinding = newServiceBindingClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.ServiceConsumeMap = newServiceConsumeMapClient(client)
|
|
|
|
client.ServiceEvent = newServiceEventClient(client)
|
|
|
|
client.ServiceExposeMap = newServiceExposeMapClient(client)
|
|
|
|
client.ServiceLink = newServiceLinkClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.ServiceLog = newServiceLogClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.ServiceProxy = newServiceProxyClient(client)
|
|
|
|
client.ServiceRestart = newServiceRestartClient(client)
|
|
|
|
client.ServiceUpgrade = newServiceUpgradeClient(client)
|
|
|
|
client.ServiceUpgradeStrategy = newServiceUpgradeStrategyClient(client)
|
|
|
|
client.ServicesPortRange = newServicesPortRangeClient(client)
|
|
|
|
client.SetProjectMembersInput = newSetProjectMembersInputClient(client)
|
|
|
|
client.SetServiceLinksInput = newSetServiceLinksInputClient(client)
|
|
|
|
client.Setting = newSettingClient(client)
|
|
|
|
client.Snapshot = newSnapshotClient(client)
|
|
|
|
client.SnapshotBackupInput = newSnapshotBackupInputClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.Stack = newStackClient(client)
|
|
|
|
client.StackUpgrade = newStackUpgradeClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.StateTransition = newStateTransitionClient(client)
|
|
|
|
client.StatsAccess = newStatsAccessClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.StorageDriver = newStorageDriverClient(client)
|
|
|
|
client.StorageDriverService = newStorageDriverServiceClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.StoragePool = newStoragePoolClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.Subnet = newSubnetClient(client)
|
|
|
|
client.TargetPortRule = newTargetPortRuleClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.Task = newTaskClient(client)
|
|
|
|
client.TaskInstance = newTaskInstanceClient(client)
|
|
|
|
client.ToServiceUpgradeStrategy = newToServiceUpgradeStrategyClient(client)
|
|
|
|
client.TypeDocumentation = newTypeDocumentationClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.Ulimit = newUlimitClient(client)
|
|
|
|
client.UserPreference = newUserPreferenceClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.VirtualMachine = newVirtualMachineClient(client)
|
|
|
|
client.VirtualMachineDisk = newVirtualMachineDiskClient(client)
|
|
|
|
client.Volume = newVolumeClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.VolumeActivateInput = newVolumeActivateInputClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
client.VolumeSnapshotInput = newVolumeSnapshotInputClient(client)
|
2017-11-05 12:02:03 +00:00
|
|
|
client.VolumeTemplate = newVolumeTemplateClient(client)
|
2017-02-07 21:33:23 +00:00
|
|
|
|
|
|
|
return client
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRancherClient(opts *ClientOpts) (*RancherClient, error) {
|
|
|
|
rancherBaseClient := &RancherBaseClientImpl{
|
|
|
|
Types: map[string]Schema{},
|
|
|
|
}
|
|
|
|
client := constructClient(rancherBaseClient)
|
|
|
|
|
|
|
|
err := setupRancherBaseClient(rancherBaseClient, opts)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
return client, nil
|
|
|
|
}
|