Class: Google::Apis::DnsV1beta2::Change
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::Change
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/google/apis/dns_v1beta2/representations.rb
Overview
A Change represents a set of ResourceRecordSet additions and deletions applied atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are modified by creating a new Change element in the Changes collection. In turn the Changes collection also records the past modifications to the ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is the sum effect of applying all Change elements in the Changes collection in sequence.
Instance Attribute Summary collapse
-
#additions ⇒ Array<Google::Apis::DnsV1beta2::ResourceRecordSet>
Which ResourceRecordSets to add? Corresponds to the JSON property
additions
. -
#deletions ⇒ Array<Google::Apis::DnsV1beta2::ResourceRecordSet>
Which ResourceRecordSets to remove? Must match existing data exactly.
-
#id ⇒ String
Unique identifier for the resource; defined by the server (output only).
-
#is_serving ⇒ Boolean
(also: #is_serving?)
If the DNS queries for the zone will be served.
-
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#start_time ⇒ String
The time that this operation was started by the server (output only).
-
#status ⇒ String
Status of the operation (output only).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Change
constructor
A new instance of Change.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Change
Returns a new instance of Change.
74 75 76 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 74 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additions ⇒ Array<Google::Apis::DnsV1beta2::ResourceRecordSet>
Which ResourceRecordSets to add?
Corresponds to the JSON property additions
38 39 40 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 38 def additions @additions end |
#deletions ⇒ Array<Google::Apis::DnsV1beta2::ResourceRecordSet>
Which ResourceRecordSets to remove? Must match existing data exactly.
Corresponds to the JSON property deletions
43 44 45 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 43 def deletions @deletions end |
#id ⇒ String
Unique identifier for the resource; defined by the server (output only).
Corresponds to the JSON property id
48 49 50 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 48 def id @id end |
#is_serving ⇒ Boolean Also known as: is_serving?
If the DNS queries for the zone will be served.
Corresponds to the JSON property isServing
53 54 55 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 53 def is_serving @is_serving end |
#kind ⇒ String
Corresponds to the JSON property kind
59 60 61 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 59 def kind @kind end |
#start_time ⇒ String
The time that this operation was started by the server (output only). This is
in RFC3339 text format.
Corresponds to the JSON property startTime
65 66 67 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 65 def start_time @start_time end |
#status ⇒ String
Status of the operation (output only). A status of "done" means that the
request to update the authoritative servers has been sent but the servers
might not be updated yet.
Corresponds to the JSON property status
72 73 74 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 72 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
79 80 81 82 83 84 85 86 87 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 79 def update!(**args) @additions = args[:additions] if args.key?(:additions) @deletions = args[:deletions] if args.key?(:deletions) @id = args[:id] if args.key?(:id) @is_serving = args[:is_serving] if args.key?(:is_serving) @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 |