Class: Google::Apis::NotebooksV2::Instance
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::Instance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
The definition of a notebook instance.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#creator ⇒ String
Output only.
-
#disable_proxy_access ⇒ Boolean
(also: #disable_proxy_access?)
Optional.
-
#gce_setup ⇒ Google::Apis::NotebooksV2::GceSetup
The definition of how to configure a VM instance outside of Resources and Identity.
-
#health_info ⇒ Hash<String,String>
Output only.
-
#health_state ⇒ String
Output only.
-
#id ⇒ String
Output only.
-
#instance_owners ⇒ Array<String>
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#proxy_uri ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#upgrade_history ⇒ Array<Google::Apis::NotebooksV2::UpgradeHistoryEntry>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
703 704 705 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 703 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Instance creation time.
Corresponds to the JSON property createTime
626 627 628 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 626 def create_time @create_time end |
#creator ⇒ String
Output only. Email address of entity that sent original CreateInstance request.
Corresponds to the JSON property creator
631 632 633 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 631 def creator @creator end |
#disable_proxy_access ⇒ Boolean Also known as: disable_proxy_access?
Optional. If true, the notebook instance will not register with the proxy.
Corresponds to the JSON property disableProxyAccess
636 637 638 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 636 def disable_proxy_access @disable_proxy_access end |
#gce_setup ⇒ Google::Apis::NotebooksV2::GceSetup
The definition of how to configure a VM instance outside of Resources and
Identity.
Corresponds to the JSON property gceSetup
643 644 645 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 643 def gce_setup @gce_setup end |
#health_info ⇒ Hash<String,String>
Output only. Additional information about instance health. Example: healthInfo"
: "docker_proxy_agent_status": "1", "docker_status": "1", "
jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-
18 09:40:03.573409"
Corresponds to the JSON property healthInfo
651 652 653 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 651 def health_info @health_info end |
#health_state ⇒ String
Output only. Instance health_state.
Corresponds to the JSON property healthState
656 657 658 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 656 def health_state @health_state end |
#id ⇒ String
Output only. Unique ID of the resource.
Corresponds to the JSON property id
661 662 663 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 661 def id @id end |
#instance_owners ⇒ Array<String>
Optional. Input only. The owner of this instance after creation. Format:
alias@example.com Currently supports one owner only. If not specified, all of
the service account users of your VM instance's service account can use the
instance.
Corresponds to the JSON property instanceOwners
669 670 671 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 669 def instance_owners @instance_owners end |
#labels ⇒ Hash<String,String>
Optional. Labels to apply to this instance. These can be later modified by the
UpdateInstance method.
Corresponds to the JSON property labels
675 676 677 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 675 def labels @labels end |
#name ⇒ String
Output only. The name of this notebook instance. Format: projects/project_id
/locations/location/instances/instance_id`
Corresponds to the JSON propertyname`
681 682 683 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 681 def name @name end |
#proxy_uri ⇒ String
Output only. The proxy endpoint that is used to access the Jupyter notebook.
Corresponds to the JSON property proxyUri
686 687 688 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 686 def proxy_uri @proxy_uri end |
#state ⇒ String
Output only. The state of this instance.
Corresponds to the JSON property state
691 692 693 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 691 def state @state end |
#update_time ⇒ String
Output only. Instance update time.
Corresponds to the JSON property updateTime
696 697 698 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 696 def update_time @update_time end |
#upgrade_history ⇒ Array<Google::Apis::NotebooksV2::UpgradeHistoryEntry>
Output only. The upgrade history of this instance.
Corresponds to the JSON property upgradeHistory
701 702 703 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 701 def upgrade_history @upgrade_history end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 708 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @creator = args[:creator] if args.key?(:creator) @disable_proxy_access = args[:disable_proxy_access] if args.key?(:disable_proxy_access) @gce_setup = args[:gce_setup] if args.key?(:gce_setup) @health_info = args[:health_info] if args.key?(:health_info) @health_state = args[:health_state] if args.key?(:health_state) @id = args[:id] if args.key?(:id) @instance_owners = args[:instance_owners] if args.key?(:instance_owners) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) @upgrade_history = args[:upgrade_history] if args.key?(:upgrade_history) end |