Class: Google::Apis::DnsV1::Change

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dns_v1/classes.rb,
generated/google/apis/dns_v1/representations.rb,
generated/google/apis/dns_v1/representations.rb

Overview

An atomic update to a collection of ResourceRecordSets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Change

Returns a new instance of Change.


60
61
62
# File 'generated/google/apis/dns_v1/classes.rb', line 60

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

Instance Attribute Details

#additionsArray<Google::Apis::DnsV1::ResourceRecordSet>

Which ResourceRecordSets to add? Corresponds to the JSON property additions


32
33
34
# File 'generated/google/apis/dns_v1/classes.rb', line 32

def additions
  @additions
end

#deletionsArray<Google::Apis::DnsV1::ResourceRecordSet>

Which ResourceRecordSets to remove? Must match existing data exactly. Corresponds to the JSON property deletions


37
38
39
# File 'generated/google/apis/dns_v1/classes.rb', line 37

def deletions
  @deletions
end

#idString

Unique identifier for the resource; defined by the server (output only). Corresponds to the JSON property id

Returns:

  • (String)

42
43
44
# File 'generated/google/apis/dns_v1/classes.rb', line 42

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "dns#change". Corresponds to the JSON property kind

Returns:

  • (String)

47
48
49
# File 'generated/google/apis/dns_v1/classes.rb', line 47

def kind
  @kind
end

#start_timeString

The time that this operation was started by the server (output only). This is in RFC3339 text format. Corresponds to the JSON property startTime

Returns:

  • (String)

53
54
55
# File 'generated/google/apis/dns_v1/classes.rb', line 53

def start_time
  @start_time
end

#statusString

Status of the operation (output only). Corresponds to the JSON property status

Returns:

  • (String)

58
59
60
# File 'generated/google/apis/dns_v1/classes.rb', line 58

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


65
66
67
68
69
70
71
72
# File 'generated/google/apis/dns_v1/classes.rb', line 65

def update!(**args)
  @additions = args[:additions] if args.key?(:additions)
  @deletions = args[:deletions] if args.key?(:deletions)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
end