class Google::Apis::FileV1::Instance

A Cloud Filestore instance.

Attributes

create_time[RW]

Output only. The time when the instance was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

The description of the instance (2048 characters or less). Corresponds to the JSON property `description` @return [String]

etag[RW]

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other. Corresponds to the JSON property `etag` @return [String]

file_shares[RW]

File system shares on the instance. For this version, only a single file share is supported. Corresponds to the JSON property `fileShares` @return [Array<Google::Apis::FileV1::FileShareConfig>]

labels[RW]

Resource labels to represent user provided metadata. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

Output only. The resource name of the instance, in the format `projects/` project`/locations/`location`/instances/`instanceā€œ. Corresponds to the JSON property `name` @return [String]

networks[RW]

VPC networks to which the instance is connected. For this version, only a single network is supported. Corresponds to the JSON property `networks` @return [Array<Google::Apis::FileV1::NetworkConfig>]

satisfies_pzs[RW]

Output only. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

satisfies_pzs?[RW]

Output only. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

state[RW]

Output only. The instance state. Corresponds to the JSON property `state` @return [String]

status_message[RW]

Output only. Additional information about the instance state, if available. Corresponds to the JSON property `statusMessage` @return [String]

tier[RW]

The service tier of the instance. Corresponds to the JSON property `tier` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/file_v1/classes.rb, line 747
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/file_v1/classes.rb, line 752
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)
  @name = args[:name] if args.key?(:name)
  @networks = args[:networks] if args.key?(:networks)
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
  @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