Class: Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSpec

Inherits:
KubeDSL::DSLObject
  • Object
show all
Defined in:
lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb

Instance Method Summary collapse

Instance Method Details

#kind_symObject



31
32
33
# File 'lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb', line 31

def kind_sym
  :snapshot_spec
end

#serializeObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb', line 14

def serialize
  {}.tap do |result|
    result[:storageSecretName] = storage_secret_name
    result[:storageType] = storage_type
    result[:databaseName] = database_name
    result[:b2] = b2.serialize
    result[:podTemplate] = pod_template.serialize
    result[:swift] = swift.serialize
    result[:podVolumeClaimSpec] = pod_volume_claim_spec.serialize
    result[:rest] = rest.serialize
    result[:s3] = s3.serialize
    result[:gcs] = gcs.serialize
    result[:azure] = azure.serialize
    result[:local] = local.serialize
  end
end