Class: Google::Apis::DnsV1beta2::Operation

Inherits:
Object
  • Object
show all
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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Operation

Returns a new instance of Operation



733
734
735
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 733

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

Instance Attribute Details

#dns_key_contextGoogle::Apis::DnsV1beta2::OperationDnsKeyContext

Only populated if the operation targeted a DnsKey (output only). Corresponds to the JSON property dnsKeyContext



688
689
690
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 688

def dns_key_context
  @dns_key_context
end

#idString

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

Returns:

  • (String)


696
697
698
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 696

def id
  @id
end

#kindString

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

Returns:

  • (String)


702
703
704
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 702

def kind
  @kind
end

#start_timeString

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

Returns:

  • (String)


708
709
710
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 708

def start_time
  @start_time
end

#statusString

Status of the operation. Can be one of the following: "PENDING" or "DONE" ( output only). Corresponds to the JSON property status

Returns:

  • (String)


714
715
716
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 714

def status
  @status
end

#typeString

Type of the operation. Operations include insert, update, and delete (output only). Corresponds to the JSON property type

Returns:

  • (String)


720
721
722
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 720

def type
  @type
end

#userString

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

Returns:

  • (String)


726
727
728
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 726

def user
  @user
end

#zone_contextGoogle::Apis::DnsV1beta2::OperationManagedZoneContext

Only populated if the operation targeted a ManagedZone (output only). Corresponds to the JSON property zoneContext



731
732
733
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 731

def zone_context
  @zone_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



738
739
740
741
742
743
744
745
746
747
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 738

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