Class: Google::Apis::DnsV1::Operation

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

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



593
594
595
# File 'generated/google/apis/dns_v1/classes.rb', line 593

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

Instance Attribute Details

#dns_key_contextGoogle::Apis::DnsV1::OperationDnsKeyContext

Corresponds to the JSON property dnsKeyContext



555
556
557
# File 'generated/google/apis/dns_v1/classes.rb', line 555

def dns_key_context
  @dns_key_context
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


560
561
562
# File 'generated/google/apis/dns_v1/classes.rb', line 560

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)


566
567
568
# File 'generated/google/apis/dns_v1/classes.rb', line 566

def kind
  @kind
end

#start_timeString

Corresponds to the JSON property startTime

Returns:

  • (String)


571
572
573
# File 'generated/google/apis/dns_v1/classes.rb', line 571

def start_time
  @start_time
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


576
577
578
# File 'generated/google/apis/dns_v1/classes.rb', line 576

def status
  @status
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


581
582
583
# File 'generated/google/apis/dns_v1/classes.rb', line 581

def type
  @type
end

#userString

Corresponds to the JSON property user

Returns:

  • (String)


586
587
588
# File 'generated/google/apis/dns_v1/classes.rb', line 586

def user
  @user
end

#zone_contextGoogle::Apis::DnsV1::OperationManagedZoneContext

Corresponds to the JSON property zoneContext



591
592
593
# File 'generated/google/apis/dns_v1/classes.rb', line 591

def zone_context
  @zone_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



598
599
600
601
602
603
604
605
606
607
# File 'generated/google/apis/dns_v1/classes.rb', line 598

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