2015-06-23 23:05:46 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module DnsV1
|
|
|
|
|
|
|
|
class Change
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListChangesResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ManagedZone
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListManagedZonesResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Project
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Quota
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ResourceRecordSet
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListResourceRecordSetsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Change
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :additions, as: 'additions', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
|
|
|
|
|
|
|
|
collection :deletions, as: 'deletions', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
|
|
|
|
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :start_time, as: 'startTime'
|
|
|
|
property :status, as: 'status'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListChangesResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :changes, as: 'changes', class: Google::Apis::DnsV1::Change, decorator: Google::Apis::DnsV1::Change::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ManagedZone
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :creation_time, as: 'creationTime'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :dns_name, as: 'dnsName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :name_server_set, as: 'nameServerSet'
|
|
|
|
collection :name_servers, as: 'nameServers'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListManagedZonesResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Project
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :number, as: 'number'
|
|
|
|
property :quota, as: 'quota', class: Google::Apis::DnsV1::Quota, decorator: Google::Apis::DnsV1::Quota::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Quota
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :managed_zones, as: 'managedZones'
|
|
|
|
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
|
|
|
|
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
|
|
|
|
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
|
|
|
|
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
|
|
|
|
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ResourceRecordSet
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :name, as: 'name'
|
|
|
|
collection :rrdatas, as: 'rrdatas'
|
|
|
|
property :ttl, as: 'ttl'
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListResourceRecordSetsResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|