class Google::Apis::DnsV1::Operation

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.

Attributes

dns_key_context[RW]

Only populated if the operation targeted a DnsKey (output only). Corresponds to the JSON property `dnsKeyContext` @return [Google::Apis::DnsV1::OperationDnsKeyContext]

id[RW]

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` @return [String]

kind[RW]

Corresponds to the JSON property `kind` @return [String]

start_time[RW]

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

status[RW]

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` @return [String]

type[RW]

Type of the operation. Operations include insert, update, and delete (output only). Corresponds to the JSON property `type` @return [String]

user[RW]

User who requested the operation, for example: user@example.com. cloud-dns- system for operations automatically done by the system. (output only) Corresponds to the JSON property `user` @return [String]

zone_context[RW]

Only populated if the operation targeted a ManagedZone (output only). Corresponds to the JSON property `zoneContext` @return [Google::Apis::DnsV1::OperationManagedZoneContext]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dns_v1/classes.rb, line 1407
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dns_v1/classes.rb, line 1412
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