Class: Google::Apis::DnsV1beta2::Policy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::Policy
- 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
Instance Attribute Summary collapse
-
#alternative_name_server_config ⇒ Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
Corresponds to the JSON property
alternativeNameServerConfig
. -
#description ⇒ String
Corresponds to the JSON property
description
. -
#enable_inbound_forwarding ⇒ Boolean
(also: #enable_inbound_forwarding?)
Corresponds to the JSON property
enableInboundForwarding
. -
#enable_logging ⇒ Boolean
(also: #enable_logging?)
Corresponds to the JSON property
enableLogging
. -
#id ⇒ Fixnum
Corresponds to the JSON property
id
. -
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Corresponds to the JSON property
name
. -
#networks ⇒ Array<Google::Apis::DnsV1beta2::PolicyNetwork>
Corresponds to the JSON property
networks
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy
915 916 917 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternative_name_server_config ⇒ Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
Corresponds to the JSON property alternativeNameServerConfig
876 877 878 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 876 def alternative_name_server_config @alternative_name_server_config end |
#description ⇒ String
Corresponds to the JSON property description
881 882 883 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 881 def description @description end |
#enable_inbound_forwarding ⇒ Boolean Also known as: enable_inbound_forwarding?
Corresponds to the JSON property enableInboundForwarding
886 887 888 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 886 def enable_inbound_forwarding @enable_inbound_forwarding end |
#enable_logging ⇒ Boolean Also known as: enable_logging?
Corresponds to the JSON property enableLogging
892 893 894 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 892 def enable_logging @enable_logging end |
#id ⇒ Fixnum
Corresponds to the JSON property id
898 899 900 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 898 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#policy".
Corresponds to the JSON property kind
903 904 905 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 903 def kind @kind end |
#name ⇒ String
Corresponds to the JSON property name
908 909 910 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 908 def name @name end |
#networks ⇒ Array<Google::Apis::DnsV1beta2::PolicyNetwork>
Corresponds to the JSON property networks
913 914 915 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 913 def networks @networks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
920 921 922 923 924 925 926 927 928 929 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 920 def update!(**args) @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) @description = args[:description] if args.key?(:description) @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) @enable_logging = args[:enable_logging] if args.key?(:enable_logging) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @networks = args[:networks] if args.key?(:networks) end |