Class: Google::Apis::ServicenetworkingV1::AddDnsZoneRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::AddDnsZoneRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicenetworking_v1/classes.rb,
generated/google/apis/servicenetworking_v1/representations.rb,
generated/google/apis/servicenetworking_v1/representations.rb
Overview
Request to add a private managed DNS zone in the shared producer host project and a matching DNS peering zone in the consumer project.
Instance Attribute Summary collapse
-
#consumer_network ⇒ String
Required.
-
#dns_suffix ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddDnsZoneRequest
constructor
A new instance of AddDnsZoneRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddDnsZoneRequest
Returns a new instance of AddDnsZoneRequest.
114 115 116 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_network ⇒ String
Required. The network that the consumer is using to connect with services.
Must be in the form of projects/project
/global/networks/network
project
is the project number, as in '12345' network
is the network name.
Corresponds to the JSON property consumerNetwork
98 99 100 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 98 def consumer_network @consumer_network end |
#dns_suffix ⇒ String
Required. The DNS name suffix for the zones e.g. example.com
.
Corresponds to the JSON property dnsSuffix
103 104 105 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 103 def dns_suffix @dns_suffix end |
#name ⇒ String
Required. The name for both the private zone in the shared producer host
project and the peering zone in the consumer project. Must be unique within
both projects. The name must be 1-63 characters long, must begin with a letter,
end with a letter or digit, and only contain lowercase letters, digits or
dashes.
Corresponds to the JSON property name
112 113 114 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 112 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
119 120 121 122 123 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 119 def update!(**args) @consumer_network = args[:consumer_network] if args.key?(:consumer_network) @dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix) @name = args[:name] if args.key?(:name) end |