Class: Google::Apis::ComputeAlpha::SnapshotGroup

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 a SnapshotGroup resource. A snapshot group is a set of snapshots that represents a point in time state of a consistency group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotGroup

Returns a new instance of SnapshotGroup.



60520
60521
60522
# File 'lib/google/apis/compute_alpha/classes.rb', line 60520

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)


60460
60461
60462
# File 'lib/google/apis/compute_alpha/classes.rb', line 60460

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)


60466
60467
60468
# File 'lib/google/apis/compute_alpha/classes.rb', line 60466

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)


60472
60473
60474
# File 'lib/google/apis/compute_alpha/classes.rb', line 60472

def id
  @id
end

#kindString

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

Returns:

  • (String)


60478
60479
60480
# File 'lib/google/apis/compute_alpha/classes.rb', line 60478

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)


60488
60489
60490
# File 'lib/google/apis/compute_alpha/classes.rb', line 60488

def name
  @name
end

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

Returns:

  • (String)


60493
60494
60495
# File 'lib/google/apis/compute_alpha/classes.rb', line 60493

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)


60498
60499
60500
# File 'lib/google/apis/compute_alpha/classes.rb', line 60498

def self_link_with_id
  @self_link_with_id
end

#source_infoGoogle::Apis::ComputeAlpha::SnapshotGroupSourceInfo

[Output Only] Corresponds to the JSON property sourceInfo



60503
60504
60505
# File 'lib/google/apis/compute_alpha/classes.rb', line 60503

def source_info
  @source_info
end

#source_instant_snapshot_groupString

Input field for the source instant snapshot group. Corresponds to the JSON property sourceInstantSnapshotGroup

Returns:

  • (String)


60508
60509
60510
# File 'lib/google/apis/compute_alpha/classes.rb', line 60508

def source_instant_snapshot_group
  @source_instant_snapshot_group
end

#source_instant_snapshot_group_infoGoogle::Apis::ComputeAlpha::SnapshotGroupSourceInstantSnapshotGroupInfo

[Output Only] Corresponds to the JSON property sourceInstantSnapshotGroupInfo



60513
60514
60515
# File 'lib/google/apis/compute_alpha/classes.rb', line 60513

def source_instant_snapshot_group_info
  @source_instant_snapshot_group_info
end

#statusString

[Output Only] Corresponds to the JSON property status

Returns:

  • (String)


60518
60519
60520
# File 'lib/google/apis/compute_alpha/classes.rb', line 60518

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



60525
60526
60527
60528
60529
60530
60531
60532
60533
60534
60535
60536
60537
# File 'lib/google/apis/compute_alpha/classes.rb', line 60525

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)
  @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_info = args[:source_info] if args.key?(:source_info)
  @source_instant_snapshot_group = args[:source_instant_snapshot_group] if args.key?(:source_instant_snapshot_group)
  @source_instant_snapshot_group_info = args[:source_instant_snapshot_group_info] if args.key?(:source_instant_snapshot_group_info)
  @status = args[:status] if args.key?(:status)
end