Class: Google::Apis::CloudshellV1alpha1::Environment
- Inherits:
-
Object
- Object
- Google::Apis::CloudshellV1alpha1::Environment
- Defined in:
- generated/google/apis/cloudshell_v1alpha1/classes.rb,
generated/google/apis/cloudshell_v1alpha1/representations.rb,
generated/google/apis/cloudshell_v1alpha1/representations.rb
Overview
A Cloud Shell environment, which is defined as the combination of a Docker image specifying what is installed on the environment and a home directory containing the user's data that will remain across sessions. Each user has a single environment with the ID "default".
Instance Attribute Summary collapse
-
#docker_image ⇒ String
Required.
-
#id ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#public_keys ⇒ Array<Google::Apis::CloudshellV1alpha1::PublicKey>
Output only.
-
#size ⇒ String
Indicates the size of the backing VM running the environment.
-
#ssh_host ⇒ String
Output only.
-
#ssh_port ⇒ Fixnum
Output only.
-
#ssh_username ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#vm_size_expire_time ⇒ String
Output only.
-
#web_host ⇒ String
Output only.
-
#web_ports ⇒ Array<Fixnum>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Environment
constructor
A new instance of Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Environment
Returns a new instance of Environment
179 180 181 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 179 def initialize(**args) update!(**args) end |
Instance Attribute Details
#docker_image ⇒ String
Required. Full path to the Docker image used to run this environment, e.g.
"gcr.io/dev-con/cloud-devshell:latest".
Corresponds to the JSON property dockerImage
106 107 108 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 106 def docker_image @docker_image end |
#id ⇒ String
Output only. The environment's identifier, which is always "default".
Corresponds to the JSON property id
111 112 113 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 111 def id @id end |
#name ⇒ String
Output only. Full name of this resource, in the format
users/
owner_email/environments/
environment_id.
owner_emailis the
email address of the user to whom this environment belongs, and
environment_id`is the identifier of this environment. For example,
users/someone@example.com/environments/default.
Corresponds to the JSON property
name`
120 121 122 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 120 def name @name end |
#public_keys ⇒ Array<Google::Apis::CloudshellV1alpha1::PublicKey>
Output only. Public keys associated with the environment. Clients can
connect to this environment via SSH only if they possess a private key
corresponding to at least one of these public keys. Keys can be added to or
removed from the environment using the CreatePublicKey and DeletePublicKey
methods.
Corresponds to the JSON property publicKeys
129 130 131 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 129 def public_keys @public_keys end |
#size ⇒ String
Indicates the size of the backing VM running the environment. If set to
something other than DEFAULT, it will be reverted to the default VM size
after vm_size_expire_time.
Corresponds to the JSON property size
136 137 138 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 136 def size @size end |
#ssh_host ⇒ String
Output only. Host to which clients can connect to initiate SSH sessions
with the environment.
Corresponds to the JSON property sshHost
142 143 144 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 142 def ssh_host @ssh_host end |
#ssh_port ⇒ Fixnum
Output only. Port to which clients can connect to initiate SSH sessions
with the environment.
Corresponds to the JSON property sshPort
148 149 150 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 148 def ssh_port @ssh_port end |
#ssh_username ⇒ String
Output only. Username that clients should use when initiating SSH sessions
with the environment.
Corresponds to the JSON property sshUsername
154 155 156 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 154 def ssh_username @ssh_username end |
#state ⇒ String
Output only. Current execution state of this environment.
Corresponds to the JSON property state
159 160 161 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 159 def state @state end |
#vm_size_expire_time ⇒ String
Output only. The time when the Environment will expire back to the default
VM size.
Corresponds to the JSON property vmSizeExpireTime
165 166 167 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 165 def vm_size_expire_time @vm_size_expire_time end |
#web_host ⇒ String
Output only. Host to which clients can connect to initiate HTTPS or WSS
connections with the environment.
Corresponds to the JSON property webHost
171 172 173 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 171 def web_host @web_host end |
#web_ports ⇒ Array<Fixnum>
Output only. Ports to which clients can connect to initiate HTTPS or WSS
connections with the environment.
Corresponds to the JSON property webPorts
177 178 179 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 177 def web_ports @web_ports end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 184 def update!(**args) @docker_image = args[:docker_image] if args.key?(:docker_image) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @public_keys = args[:public_keys] if args.key?(:public_keys) @size = args[:size] if args.key?(:size) @ssh_host = args[:ssh_host] if args.key?(:ssh_host) @ssh_port = args[:ssh_port] if args.key?(:ssh_port) @ssh_username = args[:ssh_username] if args.key?(:ssh_username) @state = args[:state] if args.key?(:state) @vm_size_expire_time = args[:vm_size_expire_time] if args.key?(:vm_size_expire_time) @web_host = args[:web_host] if args.key?(:web_host) @web_ports = args[:web_ports] if args.key?(:web_ports) end |