Class: Google::Apis::DnsV1beta2::Operation
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::Operation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/representations.rb
Overview
An operation represents a successful mutation performed on a Cloud DNS resource. Operations provide: - An audit log of server resource mutations. - A way to recover/retry API calls in the case where the response is never received by the caller. Use the caller specified client_operation_id.
Instance Attribute Summary collapse
-
#dns_key_context ⇒ Google::Apis::DnsV1beta2::OperationDnsKeyContext
Only populated if the operation targeted a DnsKey (output only).
-
#id ⇒ String
Unique identifier for the resource.
-
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#start_time ⇒ String
The time that this operation was started by the server.
-
#status ⇒ String
Status of the operation.
-
#type ⇒ String
Type of the operation.
-
#user ⇒ String
User who requested the operation, for example: [email protected].
-
#zone_context ⇒ Google::Apis::DnsV1beta2::OperationManagedZoneContext
Only populated if the operation targeted a ManagedZone (output only).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Operation
constructor
A new instance of Operation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Operation
Returns a new instance of Operation.
1409 1410 1411 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1409 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dns_key_context ⇒ Google::Apis::DnsV1beta2::OperationDnsKeyContext
Only populated if the operation targeted a DnsKey (output only).
Corresponds to the JSON property dnsKeyContext
1364 1365 1366 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1364 def dns_key_context @dns_key_context end |
#id ⇒ String
Unique identifier for the resource. This is the client_operation_id if the
client specified it when the mutation was initiated, otherwise, it is
generated by the server. The name must be 1-63 characters long and match the
regular expression [-a-z0-9]? (output only)
Corresponds to the JSON property id
1372 1373 1374 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1372 def id @id end |
#kind ⇒ String
Corresponds to the JSON property kind
1377 1378 1379 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1377 def kind @kind end |
#start_time ⇒ String
The time that this operation was started by the server. This is in RFC3339
text format (output only).
Corresponds to the JSON property startTime
1383 1384 1385 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1383 def start_time @start_time end |
#status ⇒ String
Status of the operation. Can be one of the following: "PENDING" or "DONE" (
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
1390 1391 1392 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1390 def status @status end |
#type ⇒ String
Type of the operation. Operations include insert, update, and delete (output
only).
Corresponds to the JSON property type
1396 1397 1398 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1396 def type @type end |
#user ⇒ String
User who requested the operation, for example: [email protected]. cloud-dns-
system for operations automatically done by the system. (output only)
Corresponds to the JSON property user
1402 1403 1404 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1402 def user @user end |
#zone_context ⇒ Google::Apis::DnsV1beta2::OperationManagedZoneContext
Only populated if the operation targeted a ManagedZone (output only).
Corresponds to the JSON property zoneContext
1407 1408 1409 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1407 def zone_context @zone_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1414 def update!(**args) @dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context) @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) @type = args[:type] if args.key?(:type) @user = args[:user] if args.key?(:user) @zone_context = args[:zone_context] if args.key?(:zone_context) end |