Class: Google::Apis::WorkloadmanagerV1::Database
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Database
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Database details.
Instance Attribute Summary collapse
-
#disk_type ⇒ String
Required.
-
#floating_ip_address ⇒ String
Optional.
-
#machine_type ⇒ String
Required.
-
#secondary_sole_tenant_node ⇒ String
Optional.
-
#secondary_sole_tenant_node_type ⇒ String
Optional.
-
#secret_manager_secret ⇒ String
Required.
-
#smt ⇒ Boolean
(also: #smt?)
Required.
-
#sole_tenant_node ⇒ String
Optional.
-
#sole_tenant_node_type ⇒ String
Optional.
-
#tempdb_on_ssd ⇒ Boolean
(also: #tempdb_on_ssd?)
Required.
-
#tenancy_model ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Database
constructor
A new instance of Database.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Database
Returns a new instance of Database.
842 843 844 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_type ⇒ String
Required. Disk type.
Corresponds to the JSON property diskType
786 787 788 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 786 def disk_type @disk_type end |
#floating_ip_address ⇒ String
Optional. Only useful for Linux High Availability setup.
Corresponds to the JSON property floatingIpAddress
791 792 793 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 791 def floating_ip_address @floating_ip_address end |
#machine_type ⇒ String
Required. Machine type.
Corresponds to the JSON property machineType
796 797 798 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 796 def machine_type @machine_type end |
#secondary_sole_tenant_node ⇒ String
Optional. The name of a secondary-sole-tenant node/node group.
Corresponds to the JSON property secondarySoleTenantNode
801 802 803 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 801 def secondary_sole_tenant_node @secondary_sole_tenant_node end |
#secondary_sole_tenant_node_type ⇒ String
Optional. The type of a secondary-sole-tenant node/node group. E.g., compute.
googleapis.com/node-name.
Corresponds to the JSON property secondarySoleTenantNodeType
807 808 809 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 807 def secondary_sole_tenant_node_type @secondary_sole_tenant_node_type end |
#secret_manager_secret ⇒ String
Required. Secret Manager secret.
Corresponds to the JSON property secretManagerSecret
812 813 814 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 812 def secret_manager_secret @secret_manager_secret end |
#smt ⇒ Boolean Also known as: smt?
Required. Whether simultaneous multithreading is enabled or not.
Corresponds to the JSON property smt
817 818 819 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 817 def smt @smt end |
#sole_tenant_node ⇒ String
Optional. The name of a primary sole-tenant node/node group.
Corresponds to the JSON property soleTenantNode
823 824 825 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 823 def sole_tenant_node @sole_tenant_node end |
#sole_tenant_node_type ⇒ String
Optional. The type of a primary sole-tenant node/node group. E.g., compute.
googleapis.com/node-name.
Corresponds to the JSON property soleTenantNodeType
829 830 831 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 829 def sole_tenant_node_type @sole_tenant_node_type end |
#tempdb_on_ssd ⇒ Boolean Also known as: tempdb_on_ssd?
Required. Whether to have TempDB on local SSD.
Corresponds to the JSON property tempdbOnSsd
834 835 836 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 834 def tempdb_on_ssd @tempdb_on_ssd end |
#tenancy_model ⇒ String
Required. SHARED or SOLE_TENANT.
Corresponds to the JSON property tenancyModel
840 841 842 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 840 def tenancy_model @tenancy_model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
847 848 849 850 851 852 853 854 855 856 857 858 859 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 847 def update!(**args) @disk_type = args[:disk_type] if args.key?(:disk_type) @floating_ip_address = args[:floating_ip_address] if args.key?(:floating_ip_address) @machine_type = args[:machine_type] if args.key?(:machine_type) @secondary_sole_tenant_node = args[:secondary_sole_tenant_node] if args.key?(:secondary_sole_tenant_node) @secondary_sole_tenant_node_type = args[:secondary_sole_tenant_node_type] if args.key?(:secondary_sole_tenant_node_type) @secret_manager_secret = args[:secret_manager_secret] if args.key?(:secret_manager_secret) @smt = args[:smt] if args.key?(:smt) @sole_tenant_node = args[:sole_tenant_node] if args.key?(:sole_tenant_node) @sole_tenant_node_type = args[:sole_tenant_node_type] if args.key?(:sole_tenant_node_type) @tempdb_on_ssd = args[:tempdb_on_ssd] if args.key?(:tempdb_on_ssd) @tenancy_model = args[:tenancy_model] if args.key?(:tenancy_model) end |