Class: Google::Apis::FileV1beta1::Instance
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::Instance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
A Cloud Filestore instance.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#etag ⇒ String
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
-
#file_shares ⇒ Array<Google::Apis::FileV1beta1::FileShareConfig>
File system shares on the instance.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#logging_service ⇒ String
The logging service the instance should use to write logs.
-
#monitoring_service ⇒ String
The monitoring service the instance should use to write metrics.
-
#name ⇒ String
Output only.
-
#networks ⇒ Array<Google::Apis::FileV1beta1::NetworkConfig>
VPC networks to which the instance is connected.
-
#state ⇒ String
Output only.
-
#status_message ⇒ String
Output only.
-
#tier ⇒ String
The service tier of the instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance
287 288 289 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only.
The time when the instance was created.
Corresponds to the JSON property createTime
215 216 217 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 215 def create_time @create_time end |
#description ⇒ String
Optional. A description of the instance (2048 characters or less).
Corresponds to the JSON property description
220 221 222 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 220 def description @description end |
#etag ⇒ String
Server-specified ETag for the instance resource to prevent simultaneous
updates from overwriting each other.
Corresponds to the JSON property etag
226 227 228 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 226 def etag @etag end |
#file_shares ⇒ Array<Google::Apis::FileV1beta1::FileShareConfig>
File system shares on the instance.
For this version, only a single file share is supported.
Corresponds to the JSON property fileShares
232 233 234 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 232 def file_shares @file_shares end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
237 238 239 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 237 def labels @labels end |
#logging_service ⇒ String
The logging service the instance should use to write logs. Currently available options:
logging.googleapis.com
- the Google Cloud Logging service.none
- no logs will be exported from the instance.- if left as an empty string,
logging.googleapis.com
will be used. Corresponds to the JSON propertyloggingService
246 247 248 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 246 def logging_service @logging_service end |
#monitoring_service ⇒ String
The monitoring service the instance should use to write metrics. Currently available options:
monitoring.googleapis.com
- the Google Cloud Monitoring service.none
- no metrics will be exported from the instance.- if left as an empty string,
monitoring.googleapis.com
will be used. Corresponds to the JSON propertymonitoringService
255 256 257 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 255 def monitoring_service @monitoring_service end |
#name ⇒ String
Output only.
The resource name of the instance, in the format
projects/project_id
/locations/location_id
/instances/instance_id
.
Corresponds to the JSON property name
262 263 264 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 262 def name @name end |
#networks ⇒ Array<Google::Apis::FileV1beta1::NetworkConfig>
VPC networks to which the instance is connected.
For this version, only a single network is supported.
Corresponds to the JSON property networks
268 269 270 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 268 def networks @networks end |
#state ⇒ String
Output only.
The instance state.
Corresponds to the JSON property state
274 275 276 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 274 def state @state end |
#status_message ⇒ String
Output only.
Additional information about the instance state, if available.
Corresponds to the JSON property statusMessage
280 281 282 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 280 def @status_message end |
#tier ⇒ String
The service tier of the instance.
Corresponds to the JSON property tier
285 286 287 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 285 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 292 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @file_shares = args[:file_shares] if args.key?(:file_shares) @labels = args[:labels] if args.key?(:labels) @logging_service = args[:logging_service] if args.key?(:logging_service) @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) @name = args[:name] if args.key?(:name) @networks = args[:networks] if args.key?(:networks) @state = args[:state] if args.key?(:state) @status_message = args[:status_message] if args.key?(:status_message) @tier = args[:tier] if args.key?(:tier) end |