Class: Google::Apis::DnsV1::ResponsePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb

Overview

A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResponsePolicy

Returns a new instance of ResponsePolicy.



2484
2485
2486
# File 'lib/google/apis/dns_v1/classes.rb', line 2484

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

Instance Attribute Details

#descriptionString

User-provided description for this Response Policy. Corresponds to the JSON property description

Returns:

  • (String)


2462
2463
2464
# File 'lib/google/apis/dns_v1/classes.rb', line 2462

def description
  @description
end

#idFixnum

Unique identifier for the resource; defined by the server (output only). Corresponds to the JSON property id

Returns:

  • (Fixnum)


2467
2468
2469
# File 'lib/google/apis/dns_v1/classes.rb', line 2467

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2472
2473
2474
# File 'lib/google/apis/dns_v1/classes.rb', line 2472

def kind
  @kind
end

#networksArray<Google::Apis::DnsV1::ResponsePolicyNetwork>

List of network names specifying networks to which this policy is applied. Corresponds to the JSON property networks



2477
2478
2479
# File 'lib/google/apis/dns_v1/classes.rb', line 2477

def networks
  @networks
end

#response_policy_nameString

User assigned name for this Response Policy. Corresponds to the JSON property responsePolicyName

Returns:

  • (String)


2482
2483
2484
# File 'lib/google/apis/dns_v1/classes.rb', line 2482

def response_policy_name
  @response_policy_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2489
2490
2491
2492
2493
2494
2495
# File 'lib/google/apis/dns_v1/classes.rb', line 2489

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @networks = args[:networks] if args.key?(:networks)
  @response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name)
end