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 '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
|
|
|
|
# Google Cloud DNS API
|
|
|
|
#
|
2016-05-16 16:49:15 +00:00
|
|
|
# Configures and serves authoritative DNS records.
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @example
|
|
|
|
# require 'google/apis/dns_v1'
|
|
|
|
#
|
|
|
|
# Dns = Google::Apis::DnsV1 # Alias the module
|
|
|
|
# service = Dns::DnsService.new
|
|
|
|
#
|
|
|
|
# @see https://developers.google.com/cloud-dns
|
|
|
|
class DnsService < Google::Apis::Core::BaseService
|
|
|
|
# @return [String]
|
|
|
|
# API key. Your API key identifies your project and provides you with API access,
|
|
|
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
|
|
attr_accessor :key
|
|
|
|
|
|
|
|
# @return [String]
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
attr_accessor :quota_user
|
|
|
|
|
|
|
|
# @return [String]
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
attr_accessor :user_ip
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super('https://www.googleapis.com/', 'dns/v1/projects/')
|
2017-09-19 00:36:22 +00:00
|
|
|
@batch_path = 'batch/dns/v1'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Atomically update the ResourceRecordSet collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::DnsV1::Change] change_object
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Change] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Change]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::DnsV1::Change::Representation
|
|
|
|
command.request_object = change_object
|
|
|
|
command.response_representation = Google::Apis::DnsV1::Change::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Change
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetch the representation of an existing Change.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] change_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# The identifier of the requested change, from a previous
|
|
|
|
# ResourceRecordSetsChangeResponse.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Change] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Change]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::Change::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Change
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.params['changeId'] = change_id unless change_id.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enumerate Changes to a ResourceRecordSet collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Fixnum] max_results
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
|
|
# will decide how many results to return.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] page_token
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
|
|
# this parameter to continue a previous list request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] sort_by
|
2019-04-25 00:37:02 +00:00
|
|
|
# Sorting criterion. The only supported value is change sequence.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] sort_order
|
2019-04-25 00:37:02 +00:00
|
|
|
# Sorting order direction: 'ascending' or 'descending'.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ListChangesResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ListChangesResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::ListChangesResponse::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ListChangesResponse
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['sortBy'] = sort_by unless sort_by.nil?
|
|
|
|
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetch the representation of an existing DnsKey.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] dns_key_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# The identifier of the requested DnsKey.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] digest_type
|
2019-04-25 00:37:02 +00:00
|
|
|
# An optional comma-separated list of digest types to compute and display for
|
|
|
|
# key signing keys. If omitted, the recommended digest type will be computed and
|
|
|
|
# displayed.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::DnsKey] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::DnsKey]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::DnsKey::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::DnsKey
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
|
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
|
|
|
command.query['digestType'] = digest_type unless digest_type.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enumerate DnsKeys to a ResourceRecordSet collection.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] digest_type
|
2019-04-25 00:37:02 +00:00
|
|
|
# An optional comma-separated list of digest types to compute and display for
|
|
|
|
# key signing keys. If omitted, the recommended digest type will be computed and
|
|
|
|
# displayed.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Fixnum] max_results
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
|
|
# will decide how many results to return.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] page_token
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
|
|
# this parameter to continue a previous list request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::DnsKeysListResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::DnsKeysListResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::DnsKeysListResponse::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::DnsKeysListResponse
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['digestType'] = digest_type unless digest_type.nil?
|
|
|
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetch the representation of an existing Operation.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] operation
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the operation addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Operation]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Operation
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.params['operation'] = operation unless operation.nil?
|
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enumerate Operations for the given ManagedZone.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Fixnum] max_results
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
|
|
# will decide how many results to return.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] page_token
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
|
|
# this parameter to continue a previous list request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] sort_by
|
2019-04-25 00:37:02 +00:00
|
|
|
# Sorting criterion. The only supported values are START_TIME and ID.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ManagedZoneOperationsListResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ManagedZoneOperationsListResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::ManagedZoneOperationsListResponse::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ManagedZoneOperationsListResponse
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['sortBy'] = sort_by unless sort_by.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Create a new ManagedZone.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ManagedZone] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ManagedZone]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, '{project}/managedZones', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
command.request_object = managed_zone_object
|
|
|
|
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ManagedZone
|
|
|
|
command.params['project'] = project unless project.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Delete a previously created ManagedZone.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetch the representation of an existing ManagedZone.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ManagedZone] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ManagedZone]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ManagedZone
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enumerate ManagedZones that have been created but not yet deleted.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-07-20 21:49:34 +00:00
|
|
|
# @param [String] dns_name
|
2019-04-25 00:37:02 +00:00
|
|
|
# Restricts the list to return only zones with this domain name.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Fixnum] max_results
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
|
|
# will decide how many results to return.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] page_token
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
|
|
# this parameter to continue a previous list request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ListManagedZonesResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ListManagedZonesResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2015-07-20 21:49:34 +00:00
|
|
|
def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse
|
|
|
|
command.params['project'] = project unless project.nil?
|
2015-07-20 21:49:34 +00:00
|
|
|
command.query['dnsName'] = dns_name unless dns_name.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Apply a partial update to an existing ManagedZone.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
|
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Operation]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
command.request_object = managed_zone_object
|
|
|
|
command.response_representation = Google::Apis::DnsV1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Operation
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Update an existing ManagedZone.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
|
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Operation]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
|
2018-03-20 00:36:06 +00:00
|
|
|
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
|
|
|
command.request_object = managed_zone_object
|
|
|
|
command.response_representation = Google::Apis::DnsV1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Operation
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetch the representation of an existing Project.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2018-03-20 00:36:06 +00:00
|
|
|
# @param [String] client_operation_id
|
2019-04-25 00:37:02 +00:00
|
|
|
# For mutating operation requests only. An optional identifier specified by the
|
|
|
|
# client. Must be unique for operation resources in the Operations collection.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::Project] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::Project]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2018-03-20 00:36:06 +00:00
|
|
|
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::Project::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::Project
|
|
|
|
command.params['project'] = project unless project.nil?
|
2018-03-20 00:36:06 +00:00
|
|
|
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enumerate ResourceRecordSets that have been created but not yet deleted.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] project
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the project addressed by this request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] managed_zone
|
2019-04-25 00:37:02 +00:00
|
|
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
|
|
|
# name or id.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Fixnum] max_results
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. Maximum number of results to be returned. If unspecified, the server
|
|
|
|
# will decide how many results to return.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] name
|
2019-04-25 00:37:02 +00:00
|
|
|
# Restricts the list to return only records with this fully qualified domain
|
|
|
|
# name.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] page_token
|
2019-04-25 00:37:02 +00:00
|
|
|
# Optional. A tag returned by a previous list request that was truncated. Use
|
|
|
|
# this parameter to continue a previous list request.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] type
|
2019-04-25 00:37:02 +00:00
|
|
|
# Restricts the list to return only records of this type. If present, the "name"
|
|
|
|
# parameter must also be present.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] user_ip
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::DnsV1::ListResourceRecordSetsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::DnsV1::ListResourceRecordSetsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::DnsV1::ListResourceRecordSetsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::DnsV1::ListResourceRecordSetsResponse
|
|
|
|
command.params['project'] = project unless project.nil?
|
|
|
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
|
|
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
|
|
command.query['name'] = name unless name.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['type'] = type unless type.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def apply_command_defaults(command)
|
|
|
|
command.query['key'] = key unless key.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|