Class: Latitude::API::Resources::KubernetesCluster
- Inherits:
-
APIResource
- Object
- APIResource
- Latitude::API::Resources::KubernetesCluster
- Extended by:
- Operations::Create, Operations::Delete, Operations::List, Operations::Retrieve, Operations::Update
- Defined in:
- lib/latitude/api/resources/kubernetes_cluster.rb
Defined Under Namespace
Classes: ControlPlane, Node, Step, Worker
Constant Summary
Constants inherited from APIResource
APIResource::READ_ONLY_ATTRIBUTES
Instance Attribute Summary collapse
- #available_upgrade ⇒ String
- #control_plane ⇒ ControlPlane
- #control_plane_count ⇒ Integer
- #control_plane_endpoint ⇒ String
- #control_plane_ready ⇒ Boolean
- #control_plane_status ⇒ String
- #created_at ⇒ Time readonly
- #failure_message ⇒ String
- #failure_reason ⇒ String
- #infrastructure_ready ⇒ Boolean
- #kubeconfig_url ⇒ String
- #kubernetes_version ⇒ String
- #last_status_change ⇒ Time
- #load_balancer_ips ⇒ Array
- #location ⇒ String
- #message ⇒ String
- #name ⇒ String
- #nodes ⇒ Array<Node>
- #phase ⇒ String
- #plan ⇒ String
- #project ⇒ Latitude::API::Objects::Project
- #ready ⇒ Boolean
- #status ⇒ String
- #steps ⇒ Array<Step>
- #version_status ⇒ String
- #worker_count ⇒ Integer
- #worker_plan ⇒ String
- #worker_status ⇒ String
- #workers ⇒ Worker
Attributes inherited from APIResource
#id, #meta, #path_params, #raw_data, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Operations::List
Methods included from Operations::Create
Methods included from Operations::Retrieve
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from APIResource
#==, #[], #[]=, #as_json, #attributes, #changed?, class_url, config_source, construct_from, #delete, execute_request, extract_path_params, #hash, id_prefix, #initialize, #inspect, instance_url, #method_missing, path_param_keys, #refresh, resource_path, resource_type, #resource_url, #respond_to_missing?, #save, #to_h, #unsaved_attributes, with_config, #write_attribute
Methods included from Attributes::ClassMethods
Methods included from Attributes::InstanceMethods
#attribute_spec, #read_attribute, #wrap_attribute
Constructor Details
This class inherits a constructor from Latitude::API::APIResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Latitude::API::APIResource
Instance Attribute Details
#available_upgrade ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#control_plane ⇒ ControlPlane
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#control_plane_count ⇒ Integer
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#control_plane_endpoint ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#control_plane_ready ⇒ Boolean
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#control_plane_status ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#created_at ⇒ Time (readonly)
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#failure_message ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#failure_reason ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#infrastructure_ready ⇒ Boolean
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#kubeconfig_url ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#kubernetes_version ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#last_status_change ⇒ Time
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#load_balancer_ips ⇒ Array
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#location ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#message ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#name ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#nodes ⇒ Array<Node>
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#phase ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#plan ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#project ⇒ Latitude::API::Objects::Project
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#ready ⇒ Boolean
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#status ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#steps ⇒ Array<Step>
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#version_status ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#worker_count ⇒ Integer
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#worker_plan ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#worker_status ⇒ String
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
#workers ⇒ Worker
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 64 class KubernetesCluster < APIResource # @!attribute [r] ready # @return [Boolean] # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] class ControlPlane < APIObject attribute :ready, :boolean, read_only: true attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true end # @!attribute [r] replicas # @return [Integer] # @!attribute [r] ready_replicas # @return [Integer] # @!attribute [r] available_replicas # @return [Integer] class Worker < APIObject attribute :replicas, :integer, read_only: true attribute :ready_replicas, :integer, read_only: true attribute :available_replicas, :integer, read_only: true end # @!attribute [r] name # @return [String] # @!attribute [r] status # @return [String] class Step < APIObject attribute :name, :string, read_only: true attribute :status, :string, read_only: true end # @!attribute [r] id # @return [String] # @!attribute [r] name # @return [String] # @!attribute [r] hostname # @return [String] # @!attribute [r] server_id # @return [String] # @!attribute [r] type # @return [String] # @!attribute [r] status # @return [String] # @!attribute [r] ip # @return [String] # @!attribute [r] internal_ip # @return [String] # @!attribute [r] external_ip # @return [String] class Node < APIObject attribute :id, :string, read_only: true attribute :name, :string, read_only: true attribute :hostname, :string, read_only: true attribute :server_id, :string, read_only: true attribute :type, :string, read_only: true attribute :status, :string, read_only: true attribute :ip, :string, read_only: true attribute :internal_ip, :string, read_only: true attribute :external_ip, :string, read_only: true end attribute :name, :string attribute :phase, :string attribute :ready, :boolean attribute :control_plane_endpoint, :string attribute :kubeconfig_url, :string attribute :location, :string attribute :load_balancer_ips, :array attribute :kubernetes_version, :string attribute :version_status, :string attribute :available_upgrade, :string attribute :created_at, :time, read_only: true attribute :plan, :string attribute :worker_plan, :string attribute :control_plane_count, :integer attribute :worker_count, :integer attribute :control_plane, ControlPlane attribute :workers, Worker attribute :worker_status, :string attribute :control_plane_status, :string attribute :infrastructure_ready, :boolean attribute :control_plane_ready, :boolean attribute :message, :string attribute :steps, [Step] attribute :last_status_change, :time attribute :failure_message, :string attribute :failure_reason, :string attribute :nodes, [Node] attribute :project, Objects::Project attribute :status, :string resource_type "kubernetes_clusters" resource_path "/kubernetes_clusters" id_prefix "kc_" extend Operations::List extend Operations::Create extend Operations::Retrieve extend Operations::Update extend Operations::Delete class << self def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end end def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end end |
Class Method Details
.available_versions(opts = {}) ⇒ Object
169 170 171 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 169 def available_versions(opts = {}) execute_request(method: :get, path: "#{resource_path}/available_versions", opts: opts) end |
.kubeconfig(id, opts = {}) ⇒ Object
173 174 175 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 173 def kubeconfig(id, opts = {}) execute_request(method: :get, path: "#{instance_url(id)}/kubeconfig", opts: opts) end |
Instance Method Details
#kubeconfig(opts = {}) ⇒ Object
178 179 180 |
# File 'lib/latitude/api/resources/kubernetes_cluster.rb', line 178 def kubeconfig(opts = {}) self.class.kubeconfig(id, opts) end |