Class: Google::Cloud::BackupDR::V1::Scheduling
- Inherits:
-
Object
- Object
- Google::Cloud::BackupDR::V1::Scheduling
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb
Overview
Sets the scheduling options for an Instance.
Defined Under Namespace
Modules: InstanceTerminationAction, OnHostMaintenance, ProvisioningModel Classes: NodeAffinity
Instance Attribute Summary collapse
-
#automatic_restart ⇒ ::Boolean
Optional.
-
#instance_termination_action ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction
Optional.
-
#local_ssd_recovery_timeout ⇒ ::Google::Cloud::BackupDR::V1::SchedulingDuration
Optional.
-
#min_node_cpus ⇒ ::Integer
Optional.
-
#node_affinities ⇒ ::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>
Optional.
-
#on_host_maintenance ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance
Optional.
-
#preemptible ⇒ ::Boolean
Optional.
-
#provisioning_model ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel
Optional.
Instance Attribute Details
#automatic_restart ⇒ ::Boolean
Returns Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#instance_termination_action ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction
Returns Optional. Specifies the termination action for the instance.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#local_ssd_recovery_timeout ⇒ ::Google::Cloud::BackupDR::V1::SchedulingDuration
Returns Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#min_node_cpus ⇒ ::Integer
Returns Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#node_affinities ⇒ ::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>
Returns Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#on_host_maintenance ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance
Returns Optional. Defines the maintenance behavior for this instance.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#preemptible ⇒ ::Boolean
Returns Optional. Defines whether the instance is preemptible.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |
#provisioning_model ⇒ ::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel
Returns Optional. Specifies the provisioning model of the instance.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb', line 671 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Node Affinity: the configuration of desired nodes onto which this Instance # could be scheduled. # @!attribute [rw] key # @return [::String] # Optional. Corresponds to the label key of Node resource. # @!attribute [rw] operator # @return [::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity::Operator] # Optional. Defines the operation of node selection. # @!attribute [rw] values # @return [::Array<::String>] # Optional. Corresponds to the label values of Node resource. class NodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of node selections. module Operator # Default value. This value is unused. OPERATOR_UNSPECIFIED = 0 # Requires Compute Engine to seek for matched nodes. IN = 1 # Requires Compute Engine to avoid certain nodes. NOT_IN = 2 end end # Defines the maintenance behavior for this instance= module OnHostMaintenance # Default value. This value is unused. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Tells Compute Engine to terminate and (optionally) restart the instance # away from the maintenance activity. TERMINATE = 1 # Default, Allows Compute Engine to automatically migrate instances # out of the way of maintenance events. MIGRATE = 1000 end # Defines the provisioning model for an instance. module ProvisioningModel # Default value. This value is not used. PROVISIONING_MODEL_UNSPECIFIED = 0 # Standard provisioning with user controlled runtime, no discounts. STANDARD = 1 # Heavily discounted, no guaranteed runtime. SPOT = 2 end # Defines the supported termination actions for an instance. module InstanceTerminationAction # Default value. This value is unused. INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0 # Delete the VM. DELETE = 1 # Stop the VM without storing in-memory content. default action. STOP = 2 end end |