Class: Google::Apis::ComputeAlpha::InstantSnapshotGroup

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Represents an InstantSnapshotGroup resource. An instant snapshot group is a set of instant snapshots that represents a point in time state of a consistency group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstantSnapshotGroup

Returns a new instance of InstantSnapshotGroup.



23014
23015
23016
# File 'lib/google/apis/compute_alpha/classes.rb', line 23014

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


22945
22946
22947
# File 'lib/google/apis/compute_alpha/classes.rb', line 22945

def creation_timestamp
  @creation_timestamp
end

#descriptionString

Optional. An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property description

Returns:

  • (String)


22951
22952
22953
# File 'lib/google/apis/compute_alpha/classes.rb', line 22951

def description
  @description
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


22957
22958
22959
# File 'lib/google/apis/compute_alpha/classes.rb', line 22957

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#instantSnapshotGroup for InstantSnapshotGroup resources. Corresponds to the JSON property kind

Returns:

  • (String)


22963
22964
22965
# File 'lib/google/apis/compute_alpha/classes.rb', line 22963

def kind
  @kind
end

#nameString

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Corresponds to the JSON property name

Returns:

  • (String)


22973
22974
22975
# File 'lib/google/apis/compute_alpha/classes.rb', line 22973

def name
  @name
end

#regionString

[Output Only] URL of the region where the instant snapshot group resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Corresponds to the JSON property region

Returns:

  • (String)


22980
22981
22982
# File 'lib/google/apis/compute_alpha/classes.rb', line 22980

def region
  @region
end

#resource_statusGoogle::Apis::ComputeAlpha::InstantSnapshotGroupResourceStatus

Corresponds to the JSON property resourceStatus



22985
22986
22987
# File 'lib/google/apis/compute_alpha/classes.rb', line 22985

def resource_status
  @resource_status
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


22990
22991
22992
# File 'lib/google/apis/compute_alpha/classes.rb', line 22990

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource's resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


22995
22996
22997
# File 'lib/google/apis/compute_alpha/classes.rb', line 22995

def self_link_with_id
  @self_link_with_id
end

#source_consistency_groupString

Corresponds to the JSON property sourceConsistencyGroup

Returns:

  • (String)


23000
23001
23002
# File 'lib/google/apis/compute_alpha/classes.rb', line 23000

def source_consistency_group
  @source_consistency_group
end

#statusString

[Output Only] Corresponds to the JSON property status

Returns:

  • (String)


23005
23006
23007
# File 'lib/google/apis/compute_alpha/classes.rb', line 23005

def status
  @status
end

#zoneString

[Output Only] URL of the zone where the instant snapshot group resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Corresponds to the JSON property zone

Returns:

  • (String)


23012
23013
23014
# File 'lib/google/apis/compute_alpha/classes.rb', line 23012

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
# File 'lib/google/apis/compute_alpha/classes.rb', line 23019

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @region = args[:region] if args.key?(:region)
  @resource_status = args[:resource_status] if args.key?(:resource_status)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @source_consistency_group = args[:source_consistency_group] if args.key?(:source_consistency_group)
  @status = args[:status] if args.key?(:status)
  @zone = args[:zone] if args.key?(:zone)
end