Class: Google::Apis::ServicenetworkingV1::AddDnsZoneRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddDnsZoneRequest

Returns a new instance of AddDnsZoneRequest.



115
116
117
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 115

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

Instance Attribute Details

#consumer_networkString

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

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 98

def consumer_network
  @consumer_network
end

#dns_suffixString

Required. The DNS name suffix for the zones e.g. example.com.. Cloud DNS requires that a DNS suffix ends with a trailing dot. Corresponds to the JSON property dnsSuffix

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 104

def dns_suffix
  @dns_suffix
end

#nameString

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

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 113

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



120
121
122
123
124
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 120

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