google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -0,0 +1,368 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module DnsV2beta1
|
24
|
+
|
25
|
+
class Change
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ChangesListResponse
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class DnsKey
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class DnsKeyDigest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class DnsKeySpec
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class DnsKeysListResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ManagedZone
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ManagedZoneDnsSecConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ManagedZoneOperationsListResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ManagedZonesDeleteResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ManagedZonesListResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Operation
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class OperationDnsKeyContext
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class OperationManagedZoneContext
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Project
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Quota
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ResourceRecordSet
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ResourceRecordSetsListResponse
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class ResponseHeader
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class Change
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
collection :additions, as: 'additions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
|
143
|
+
|
144
|
+
collection :deletions, as: 'deletions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
|
145
|
+
|
146
|
+
property :id, as: 'id'
|
147
|
+
property :is_serving, as: 'isServing'
|
148
|
+
property :kind, as: 'kind'
|
149
|
+
property :start_time, as: 'startTime'
|
150
|
+
property :status, as: 'status'
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ChangesListResponse
|
155
|
+
# @private
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
157
|
+
collection :changes, as: 'changes', class: Google::Apis::DnsV2beta1::Change, decorator: Google::Apis::DnsV2beta1::Change::Representation
|
158
|
+
|
159
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
160
|
+
|
161
|
+
property :kind, as: 'kind'
|
162
|
+
property :next_page_token, as: 'nextPageToken'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class DnsKey
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
property :algorithm, as: 'algorithm'
|
170
|
+
property :creation_time, as: 'creationTime'
|
171
|
+
property :description, as: 'description'
|
172
|
+
collection :digests, as: 'digests', class: Google::Apis::DnsV2beta1::DnsKeyDigest, decorator: Google::Apis::DnsV2beta1::DnsKeyDigest::Representation
|
173
|
+
|
174
|
+
property :id, as: 'id'
|
175
|
+
property :is_active, as: 'isActive'
|
176
|
+
property :key_length, as: 'keyLength'
|
177
|
+
property :key_tag, as: 'keyTag'
|
178
|
+
property :kind, as: 'kind'
|
179
|
+
property :public_key, as: 'publicKey'
|
180
|
+
property :type, as: 'type'
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class DnsKeyDigest
|
185
|
+
# @private
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
property :digest, as: 'digest'
|
188
|
+
property :type, as: 'type'
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
class DnsKeySpec
|
193
|
+
# @private
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
195
|
+
property :algorithm, as: 'algorithm'
|
196
|
+
property :key_length, as: 'keyLength'
|
197
|
+
property :key_type, as: 'keyType'
|
198
|
+
property :kind, as: 'kind'
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class DnsKeysListResponse
|
203
|
+
# @private
|
204
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
+
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
|
206
|
+
|
207
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
208
|
+
|
209
|
+
property :kind, as: 'kind'
|
210
|
+
property :next_page_token, as: 'nextPageToken'
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
class ManagedZone
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
property :creation_time, as: 'creationTime'
|
218
|
+
property :description, as: 'description'
|
219
|
+
property :dns_name, as: 'dnsName'
|
220
|
+
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
|
221
|
+
|
222
|
+
property :id, as: 'id'
|
223
|
+
property :kind, as: 'kind'
|
224
|
+
property :name, as: 'name'
|
225
|
+
property :name_server_set, as: 'nameServerSet'
|
226
|
+
collection :name_servers, as: 'nameServers'
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
class ManagedZoneDnsSecConfig
|
231
|
+
# @private
|
232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
+
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
|
234
|
+
|
235
|
+
property :kind, as: 'kind'
|
236
|
+
property :non_existence, as: 'nonExistence'
|
237
|
+
property :state, as: 'state'
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
class ManagedZoneOperationsListResponse
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
245
|
+
|
246
|
+
property :kind, as: 'kind'
|
247
|
+
property :next_page_token, as: 'nextPageToken'
|
248
|
+
collection :operations, as: 'operations', class: Google::Apis::DnsV2beta1::Operation, decorator: Google::Apis::DnsV2beta1::Operation::Representation
|
249
|
+
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class ManagedZonesDeleteResponse
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
257
|
+
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
class ManagedZonesListResponse
|
262
|
+
# @private
|
263
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
264
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
265
|
+
|
266
|
+
property :kind, as: 'kind'
|
267
|
+
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
|
268
|
+
|
269
|
+
property :next_page_token, as: 'nextPageToken'
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class Operation
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV2beta1::OperationDnsKeyContext, decorator: Google::Apis::DnsV2beta1::OperationDnsKeyContext::Representation
|
277
|
+
|
278
|
+
property :id, as: 'id'
|
279
|
+
property :kind, as: 'kind'
|
280
|
+
property :start_time, as: 'startTime'
|
281
|
+
property :status, as: 'status'
|
282
|
+
property :type, as: 'type'
|
283
|
+
property :user, as: 'user'
|
284
|
+
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV2beta1::OperationManagedZoneContext, decorator: Google::Apis::DnsV2beta1::OperationManagedZoneContext::Representation
|
285
|
+
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
class OperationDnsKeyContext
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
|
293
|
+
|
294
|
+
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
|
295
|
+
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
class OperationManagedZoneContext
|
300
|
+
# @private
|
301
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
|
303
|
+
|
304
|
+
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
|
305
|
+
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
class Project
|
310
|
+
# @private
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
property :id, as: 'id'
|
313
|
+
property :kind, as: 'kind'
|
314
|
+
property :number, as: 'number'
|
315
|
+
property :quota, as: 'quota', class: Google::Apis::DnsV2beta1::Quota, decorator: Google::Apis::DnsV2beta1::Quota::Representation
|
316
|
+
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
class Quota
|
321
|
+
# @private
|
322
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
323
|
+
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
|
324
|
+
property :kind, as: 'kind'
|
325
|
+
property :managed_zones, as: 'managedZones'
|
326
|
+
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
|
327
|
+
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
|
328
|
+
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
|
329
|
+
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
|
330
|
+
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
|
331
|
+
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
|
332
|
+
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
class ResourceRecordSet
|
337
|
+
# @private
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
+
property :kind, as: 'kind'
|
340
|
+
property :name, as: 'name'
|
341
|
+
collection :rrdatas, as: 'rrdatas'
|
342
|
+
collection :signature_rrdatas, as: 'signatureRrdatas'
|
343
|
+
property :ttl, as: 'ttl'
|
344
|
+
property :type, as: 'type'
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
class ResourceRecordSetsListResponse
|
349
|
+
# @private
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
351
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
352
|
+
|
353
|
+
property :kind, as: 'kind'
|
354
|
+
property :next_page_token, as: 'nextPageToken'
|
355
|
+
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
|
356
|
+
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
class ResponseHeader
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
property :operation_id, as: 'operationId'
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
367
|
+
end
|
368
|
+
end
|
@@ -0,0 +1,768 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module DnsV2beta1
|
23
|
+
# Google Cloud DNS API
|
24
|
+
#
|
25
|
+
# Configures and serves authoritative DNS records.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/dns_v2beta1'
|
29
|
+
#
|
30
|
+
# Dns = Google::Apis::DnsV2beta1 # Alias the module
|
31
|
+
# service = Dns::DnsService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/cloud-dns
|
34
|
+
class DnsService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
# Overrides userIp if both are provided.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
# @return [String]
|
47
|
+
# IP address of the site where the request originates. Use this if you want to
|
48
|
+
# enforce per-user limits.
|
49
|
+
attr_accessor :user_ip
|
50
|
+
|
51
|
+
def initialize
|
52
|
+
super('https://www.googleapis.com/', 'dns/v2beta1/projects/')
|
53
|
+
end
|
54
|
+
|
55
|
+
# Atomically update the ResourceRecordSet collection.
|
56
|
+
# @param [String] project
|
57
|
+
# Identifies the project addressed by this request.
|
58
|
+
# @param [String] managed_zone
|
59
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
60
|
+
# name or id.
|
61
|
+
# @param [Google::Apis::DnsV2beta1::Change] change_object
|
62
|
+
# @param [String] client_operation_id
|
63
|
+
# For mutating operation requests only. An optional identifier specified by the
|
64
|
+
# client. Must be unique for operation resources in the Operations collection.
|
65
|
+
# @param [String] fields
|
66
|
+
# Selector specifying which fields to include in a partial response.
|
67
|
+
# @param [String] quota_user
|
68
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
69
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
70
|
+
# Overrides userIp if both are provided.
|
71
|
+
# @param [String] user_ip
|
72
|
+
# IP address of the site where the request originates. Use this if you want to
|
73
|
+
# enforce per-user limits.
|
74
|
+
# @param [Google::Apis::RequestOptions] options
|
75
|
+
# Request-specific options
|
76
|
+
#
|
77
|
+
# @yield [result, err] Result & error if block supplied
|
78
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Change] parsed result object
|
79
|
+
# @yieldparam err [StandardError] error object if request failed
|
80
|
+
#
|
81
|
+
# @return [Google::Apis::DnsV2beta1::Change]
|
82
|
+
#
|
83
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
84
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
85
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
86
|
+
def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
87
|
+
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
|
88
|
+
command.request_representation = Google::Apis::DnsV2beta1::Change::Representation
|
89
|
+
command.request_object = change_object
|
90
|
+
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
|
91
|
+
command.response_class = Google::Apis::DnsV2beta1::Change
|
92
|
+
command.params['project'] = project unless project.nil?
|
93
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
94
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
95
|
+
command.query['fields'] = fields unless fields.nil?
|
96
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
97
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
98
|
+
execute_or_queue_command(command, &block)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Fetch the representation of an existing Change.
|
102
|
+
# @param [String] project
|
103
|
+
# Identifies the project addressed by this request.
|
104
|
+
# @param [String] managed_zone
|
105
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
106
|
+
# name or id.
|
107
|
+
# @param [String] change_id
|
108
|
+
# The identifier of the requested change, from a previous
|
109
|
+
# ResourceRecordSetsChangeResponse.
|
110
|
+
# @param [String] client_operation_id
|
111
|
+
# For mutating operation requests only. An optional identifier specified by the
|
112
|
+
# client. Must be unique for operation resources in the Operations collection.
|
113
|
+
# @param [String] fields
|
114
|
+
# Selector specifying which fields to include in a partial response.
|
115
|
+
# @param [String] quota_user
|
116
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
117
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
118
|
+
# Overrides userIp if both are provided.
|
119
|
+
# @param [String] user_ip
|
120
|
+
# IP address of the site where the request originates. Use this if you want to
|
121
|
+
# enforce per-user limits.
|
122
|
+
# @param [Google::Apis::RequestOptions] options
|
123
|
+
# Request-specific options
|
124
|
+
#
|
125
|
+
# @yield [result, err] Result & error if block supplied
|
126
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Change] parsed result object
|
127
|
+
# @yieldparam err [StandardError] error object if request failed
|
128
|
+
#
|
129
|
+
# @return [Google::Apis::DnsV2beta1::Change]
|
130
|
+
#
|
131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
134
|
+
def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
135
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
|
136
|
+
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
|
137
|
+
command.response_class = Google::Apis::DnsV2beta1::Change
|
138
|
+
command.params['project'] = project unless project.nil?
|
139
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
140
|
+
command.params['changeId'] = change_id unless change_id.nil?
|
141
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
142
|
+
command.query['fields'] = fields unless fields.nil?
|
143
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
144
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
145
|
+
execute_or_queue_command(command, &block)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Enumerate Changes to a ResourceRecordSet collection.
|
149
|
+
# @param [String] project
|
150
|
+
# Identifies the project addressed by this request.
|
151
|
+
# @param [String] managed_zone
|
152
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
153
|
+
# name or id.
|
154
|
+
# @param [Fixnum] max_results
|
155
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
156
|
+
# will decide how many results to return.
|
157
|
+
# @param [String] page_token
|
158
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
159
|
+
# this parameter to continue a previous list request.
|
160
|
+
# @param [String] sort_by
|
161
|
+
# Sorting criterion. The only supported value is change sequence.
|
162
|
+
# @param [String] sort_order
|
163
|
+
# Sorting order direction: 'ascending' or 'descending'.
|
164
|
+
# @param [String] fields
|
165
|
+
# Selector specifying which fields to include in a partial response.
|
166
|
+
# @param [String] quota_user
|
167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# Overrides userIp if both are provided.
|
170
|
+
# @param [String] user_ip
|
171
|
+
# IP address of the site where the request originates. Use this if you want to
|
172
|
+
# enforce per-user limits.
|
173
|
+
# @param [Google::Apis::RequestOptions] options
|
174
|
+
# Request-specific options
|
175
|
+
#
|
176
|
+
# @yield [result, err] Result & error if block supplied
|
177
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ChangesListResponse] parsed result object
|
178
|
+
# @yieldparam err [StandardError] error object if request failed
|
179
|
+
#
|
180
|
+
# @return [Google::Apis::DnsV2beta1::ChangesListResponse]
|
181
|
+
#
|
182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
+
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)
|
186
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
|
187
|
+
command.response_representation = Google::Apis::DnsV2beta1::ChangesListResponse::Representation
|
188
|
+
command.response_class = Google::Apis::DnsV2beta1::ChangesListResponse
|
189
|
+
command.params['project'] = project unless project.nil?
|
190
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
191
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
192
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
193
|
+
command.query['sortBy'] = sort_by unless sort_by.nil?
|
194
|
+
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
195
|
+
command.query['fields'] = fields unless fields.nil?
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
197
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
198
|
+
execute_or_queue_command(command, &block)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Fetch the representation of an existing DnsKey.
|
202
|
+
# @param [String] project
|
203
|
+
# Identifies the project addressed by this request.
|
204
|
+
# @param [String] managed_zone
|
205
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
206
|
+
# name or id.
|
207
|
+
# @param [String] dns_key_id
|
208
|
+
# The identifier of the requested DnsKey.
|
209
|
+
# @param [String] client_operation_id
|
210
|
+
# For mutating operation requests only. An optional identifier specified by the
|
211
|
+
# client. Must be unique for operation resources in the Operations collection.
|
212
|
+
# @param [String] digest_type
|
213
|
+
# An optional comma-separated list of digest types to compute and display for
|
214
|
+
# key signing keys. If omitted, the recommended digest type will be computed and
|
215
|
+
# displayed.
|
216
|
+
# @param [String] fields
|
217
|
+
# Selector specifying which fields to include in a partial response.
|
218
|
+
# @param [String] quota_user
|
219
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
220
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
221
|
+
# Overrides userIp if both are provided.
|
222
|
+
# @param [String] user_ip
|
223
|
+
# IP address of the site where the request originates. Use this if you want to
|
224
|
+
# enforce per-user limits.
|
225
|
+
# @param [Google::Apis::RequestOptions] options
|
226
|
+
# Request-specific options
|
227
|
+
#
|
228
|
+
# @yield [result, err] Result & error if block supplied
|
229
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::DnsKey] parsed result object
|
230
|
+
# @yieldparam err [StandardError] error object if request failed
|
231
|
+
#
|
232
|
+
# @return [Google::Apis::DnsV2beta1::DnsKey]
|
233
|
+
#
|
234
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
235
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
236
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
237
|
+
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)
|
238
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
|
239
|
+
command.response_representation = Google::Apis::DnsV2beta1::DnsKey::Representation
|
240
|
+
command.response_class = Google::Apis::DnsV2beta1::DnsKey
|
241
|
+
command.params['project'] = project unless project.nil?
|
242
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
243
|
+
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
|
244
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
245
|
+
command.query['digestType'] = digest_type unless digest_type.nil?
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
248
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
249
|
+
execute_or_queue_command(command, &block)
|
250
|
+
end
|
251
|
+
|
252
|
+
# Enumerate DnsKeys to a ResourceRecordSet collection.
|
253
|
+
# @param [String] project
|
254
|
+
# Identifies the project addressed by this request.
|
255
|
+
# @param [String] managed_zone
|
256
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
257
|
+
# name or id.
|
258
|
+
# @param [String] digest_type
|
259
|
+
# An optional comma-separated list of digest types to compute and display for
|
260
|
+
# key signing keys. If omitted, the recommended digest type will be computed and
|
261
|
+
# displayed.
|
262
|
+
# @param [Fixnum] max_results
|
263
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
264
|
+
# will decide how many results to return.
|
265
|
+
# @param [String] page_token
|
266
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
267
|
+
# this parameter to continue a previous list request.
|
268
|
+
# @param [String] fields
|
269
|
+
# Selector specifying which fields to include in a partial response.
|
270
|
+
# @param [String] quota_user
|
271
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
272
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
273
|
+
# Overrides userIp if both are provided.
|
274
|
+
# @param [String] user_ip
|
275
|
+
# IP address of the site where the request originates. Use this if you want to
|
276
|
+
# enforce per-user limits.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::DnsKeysListResponse] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::DnsV2beta1::DnsKeysListResponse]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
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)
|
290
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
|
291
|
+
command.response_representation = Google::Apis::DnsV2beta1::DnsKeysListResponse::Representation
|
292
|
+
command.response_class = Google::Apis::DnsV2beta1::DnsKeysListResponse
|
293
|
+
command.params['project'] = project unless project.nil?
|
294
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
295
|
+
command.query['digestType'] = digest_type unless digest_type.nil?
|
296
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
297
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
298
|
+
command.query['fields'] = fields unless fields.nil?
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
300
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
301
|
+
execute_or_queue_command(command, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Fetch the representation of an existing Operation.
|
305
|
+
# @param [String] project
|
306
|
+
# Identifies the project addressed by this request.
|
307
|
+
# @param [String] managed_zone
|
308
|
+
# Identifies the managed zone addressed by this request.
|
309
|
+
# @param [String] operation
|
310
|
+
# Identifies the operation addressed by this request.
|
311
|
+
# @param [String] client_operation_id
|
312
|
+
# For mutating operation requests only. An optional identifier specified by the
|
313
|
+
# client. Must be unique for operation resources in the Operations collection.
|
314
|
+
# @param [String] fields
|
315
|
+
# Selector specifying which fields to include in a partial response.
|
316
|
+
# @param [String] quota_user
|
317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
319
|
+
# Overrides userIp if both are provided.
|
320
|
+
# @param [String] user_ip
|
321
|
+
# IP address of the site where the request originates. Use this if you want to
|
322
|
+
# enforce per-user limits.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::DnsV2beta1::Operation]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
|
337
|
+
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
|
338
|
+
command.response_class = Google::Apis::DnsV2beta1::Operation
|
339
|
+
command.params['project'] = project unless project.nil?
|
340
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
341
|
+
command.params['operation'] = operation unless operation.nil?
|
342
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
343
|
+
command.query['fields'] = fields unless fields.nil?
|
344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
345
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
348
|
+
|
349
|
+
# Enumerate Operations for the given ManagedZone.
|
350
|
+
# @param [String] project
|
351
|
+
# Identifies the project addressed by this request.
|
352
|
+
# @param [String] managed_zone
|
353
|
+
# Identifies the managed zone addressed by this request.
|
354
|
+
# @param [Fixnum] max_results
|
355
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
356
|
+
# will decide how many results to return.
|
357
|
+
# @param [String] page_token
|
358
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
359
|
+
# this parameter to continue a previous list request.
|
360
|
+
# @param [String] sort_by
|
361
|
+
# Sorting criterion. The only supported values are START_TIME and ID.
|
362
|
+
# @param [String] fields
|
363
|
+
# Selector specifying which fields to include in a partial response.
|
364
|
+
# @param [String] quota_user
|
365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
+
# Overrides userIp if both are provided.
|
368
|
+
# @param [String] user_ip
|
369
|
+
# IP address of the site where the request originates. Use this if you want to
|
370
|
+
# enforce per-user limits.
|
371
|
+
# @param [Google::Apis::RequestOptions] options
|
372
|
+
# Request-specific options
|
373
|
+
#
|
374
|
+
# @yield [result, err] Result & error if block supplied
|
375
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse] parsed result object
|
376
|
+
# @yieldparam err [StandardError] error object if request failed
|
377
|
+
#
|
378
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse]
|
379
|
+
#
|
380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
383
|
+
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)
|
384
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
|
385
|
+
command.response_representation = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse::Representation
|
386
|
+
command.response_class = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse
|
387
|
+
command.params['project'] = project unless project.nil?
|
388
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
389
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
390
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
391
|
+
command.query['sortBy'] = sort_by unless sort_by.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
395
|
+
execute_or_queue_command(command, &block)
|
396
|
+
end
|
397
|
+
|
398
|
+
# Create a new ManagedZone.
|
399
|
+
# @param [String] project
|
400
|
+
# Identifies the project addressed by this request.
|
401
|
+
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
402
|
+
# @param [String] client_operation_id
|
403
|
+
# For mutating operation requests only. An optional identifier specified by the
|
404
|
+
# client. Must be unique for operation resources in the Operations collection.
|
405
|
+
# @param [String] fields
|
406
|
+
# Selector specifying which fields to include in a partial response.
|
407
|
+
# @param [String] quota_user
|
408
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
409
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
410
|
+
# Overrides userIp if both are provided.
|
411
|
+
# @param [String] user_ip
|
412
|
+
# IP address of the site where the request originates. Use this if you want to
|
413
|
+
# enforce per-user limits.
|
414
|
+
# @param [Google::Apis::RequestOptions] options
|
415
|
+
# Request-specific options
|
416
|
+
#
|
417
|
+
# @yield [result, err] Result & error if block supplied
|
418
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZone] parsed result object
|
419
|
+
# @yieldparam err [StandardError] error object if request failed
|
420
|
+
#
|
421
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZone]
|
422
|
+
#
|
423
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
424
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
425
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
426
|
+
def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
427
|
+
command = make_simple_command(:post, '{project}/managedZones', options)
|
428
|
+
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
|
429
|
+
command.request_object = managed_zone_object
|
430
|
+
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
|
431
|
+
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
|
432
|
+
command.params['project'] = project unless project.nil?
|
433
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
434
|
+
command.query['fields'] = fields unless fields.nil?
|
435
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
436
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
437
|
+
execute_or_queue_command(command, &block)
|
438
|
+
end
|
439
|
+
|
440
|
+
# Delete a previously created ManagedZone.
|
441
|
+
# @param [String] project
|
442
|
+
# Identifies the project addressed by this request.
|
443
|
+
# @param [String] managed_zone
|
444
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
445
|
+
# name or id.
|
446
|
+
# @param [String] client_operation_id
|
447
|
+
# For mutating operation requests only. An optional identifier specified by the
|
448
|
+
# client. Must be unique for operation resources in the Operations collection.
|
449
|
+
# @param [String] fields
|
450
|
+
# Selector specifying which fields to include in a partial response.
|
451
|
+
# @param [String] quota_user
|
452
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
453
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
454
|
+
# Overrides userIp if both are provided.
|
455
|
+
# @param [String] user_ip
|
456
|
+
# IP address of the site where the request originates. Use this if you want to
|
457
|
+
# enforce per-user limits.
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
459
|
+
# Request-specific options
|
460
|
+
#
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
462
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse] parsed result object
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
464
|
+
#
|
465
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse]
|
466
|
+
#
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
+
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
|
472
|
+
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse::Representation
|
473
|
+
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse
|
474
|
+
command.params['project'] = project unless project.nil?
|
475
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
476
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
477
|
+
command.query['fields'] = fields unless fields.nil?
|
478
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
479
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
480
|
+
execute_or_queue_command(command, &block)
|
481
|
+
end
|
482
|
+
|
483
|
+
# Fetch the representation of an existing ManagedZone.
|
484
|
+
# @param [String] project
|
485
|
+
# Identifies the project addressed by this request.
|
486
|
+
# @param [String] managed_zone
|
487
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
488
|
+
# name or id.
|
489
|
+
# @param [String] client_operation_id
|
490
|
+
# For mutating operation requests only. An optional identifier specified by the
|
491
|
+
# client. Must be unique for operation resources in the Operations collection.
|
492
|
+
# @param [String] fields
|
493
|
+
# Selector specifying which fields to include in a partial response.
|
494
|
+
# @param [String] quota_user
|
495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
497
|
+
# Overrides userIp if both are provided.
|
498
|
+
# @param [String] user_ip
|
499
|
+
# IP address of the site where the request originates. Use this if you want to
|
500
|
+
# enforce per-user limits.
|
501
|
+
# @param [Google::Apis::RequestOptions] options
|
502
|
+
# Request-specific options
|
503
|
+
#
|
504
|
+
# @yield [result, err] Result & error if block supplied
|
505
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZone] parsed result object
|
506
|
+
# @yieldparam err [StandardError] error object if request failed
|
507
|
+
#
|
508
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZone]
|
509
|
+
#
|
510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
513
|
+
def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
514
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
|
515
|
+
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
|
516
|
+
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
|
517
|
+
command.params['project'] = project unless project.nil?
|
518
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
519
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
520
|
+
command.query['fields'] = fields unless fields.nil?
|
521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
522
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
523
|
+
execute_or_queue_command(command, &block)
|
524
|
+
end
|
525
|
+
|
526
|
+
# Enumerate ManagedZones that have been created but not yet deleted.
|
527
|
+
# @param [String] project
|
528
|
+
# Identifies the project addressed by this request.
|
529
|
+
# @param [String] dns_name
|
530
|
+
# Restricts the list to return only zones with this domain name.
|
531
|
+
# @param [Fixnum] max_results
|
532
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
533
|
+
# will decide how many results to return.
|
534
|
+
# @param [String] page_token
|
535
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
536
|
+
# this parameter to continue a previous list request.
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# Overrides userIp if both are provided.
|
543
|
+
# @param [String] user_ip
|
544
|
+
# IP address of the site where the request originates. Use this if you want to
|
545
|
+
# enforce per-user limits.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZonesListResponse] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZonesListResponse]
|
554
|
+
#
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
+
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)
|
559
|
+
command = make_simple_command(:get, '{project}/managedZones', options)
|
560
|
+
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesListResponse::Representation
|
561
|
+
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesListResponse
|
562
|
+
command.params['project'] = project unless project.nil?
|
563
|
+
command.query['dnsName'] = dns_name unless dns_name.nil?
|
564
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
565
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
566
|
+
command.query['fields'] = fields unless fields.nil?
|
567
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
568
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
569
|
+
execute_or_queue_command(command, &block)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Update an existing ManagedZone. This method supports patch semantics.
|
573
|
+
# @param [String] project
|
574
|
+
# Identifies the project addressed by this request.
|
575
|
+
# @param [String] managed_zone
|
576
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
577
|
+
# name or id.
|
578
|
+
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
579
|
+
# @param [String] client_operation_id
|
580
|
+
# For mutating operation requests only. An optional identifier specified by the
|
581
|
+
# client. Must be unique for operation resources in the Operations collection.
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# Overrides userIp if both are provided.
|
588
|
+
# @param [String] user_ip
|
589
|
+
# IP address of the site where the request originates. Use this if you want to
|
590
|
+
# enforce per-user limits.
|
591
|
+
# @param [Google::Apis::RequestOptions] options
|
592
|
+
# Request-specific options
|
593
|
+
#
|
594
|
+
# @yield [result, err] Result & error if block supplied
|
595
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
|
596
|
+
# @yieldparam err [StandardError] error object if request failed
|
597
|
+
#
|
598
|
+
# @return [Google::Apis::DnsV2beta1::Operation]
|
599
|
+
#
|
600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
603
|
+
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)
|
604
|
+
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
|
605
|
+
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
|
606
|
+
command.request_object = managed_zone_object
|
607
|
+
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
|
608
|
+
command.response_class = Google::Apis::DnsV2beta1::Operation
|
609
|
+
command.params['project'] = project unless project.nil?
|
610
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
611
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
612
|
+
command.query['fields'] = fields unless fields.nil?
|
613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
615
|
+
execute_or_queue_command(command, &block)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Update an existing ManagedZone.
|
619
|
+
# @param [String] project
|
620
|
+
# Identifies the project addressed by this request.
|
621
|
+
# @param [String] managed_zone
|
622
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
623
|
+
# name or id.
|
624
|
+
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
|
625
|
+
# @param [String] client_operation_id
|
626
|
+
# For mutating operation requests only. An optional identifier specified by the
|
627
|
+
# client. Must be unique for operation resources in the Operations collection.
|
628
|
+
# @param [String] fields
|
629
|
+
# Selector specifying which fields to include in a partial response.
|
630
|
+
# @param [String] quota_user
|
631
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
632
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
633
|
+
# Overrides userIp if both are provided.
|
634
|
+
# @param [String] user_ip
|
635
|
+
# IP address of the site where the request originates. Use this if you want to
|
636
|
+
# enforce per-user limits.
|
637
|
+
# @param [Google::Apis::RequestOptions] options
|
638
|
+
# Request-specific options
|
639
|
+
#
|
640
|
+
# @yield [result, err] Result & error if block supplied
|
641
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
|
642
|
+
# @yieldparam err [StandardError] error object if request failed
|
643
|
+
#
|
644
|
+
# @return [Google::Apis::DnsV2beta1::Operation]
|
645
|
+
#
|
646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
+
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)
|
650
|
+
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
|
651
|
+
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
|
652
|
+
command.request_object = managed_zone_object
|
653
|
+
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
|
654
|
+
command.response_class = Google::Apis::DnsV2beta1::Operation
|
655
|
+
command.params['project'] = project unless project.nil?
|
656
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
657
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
661
|
+
execute_or_queue_command(command, &block)
|
662
|
+
end
|
663
|
+
|
664
|
+
# Fetch the representation of an existing Project.
|
665
|
+
# @param [String] project
|
666
|
+
# Identifies the project addressed by this request.
|
667
|
+
# @param [String] client_operation_id
|
668
|
+
# For mutating operation requests only. An optional identifier specified by the
|
669
|
+
# client. Must be unique for operation resources in the Operations collection.
|
670
|
+
# @param [String] fields
|
671
|
+
# Selector specifying which fields to include in a partial response.
|
672
|
+
# @param [String] quota_user
|
673
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
674
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
675
|
+
# Overrides userIp if both are provided.
|
676
|
+
# @param [String] user_ip
|
677
|
+
# IP address of the site where the request originates. Use this if you want to
|
678
|
+
# enforce per-user limits.
|
679
|
+
# @param [Google::Apis::RequestOptions] options
|
680
|
+
# Request-specific options
|
681
|
+
#
|
682
|
+
# @yield [result, err] Result & error if block supplied
|
683
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Project] parsed result object
|
684
|
+
# @yieldparam err [StandardError] error object if request failed
|
685
|
+
#
|
686
|
+
# @return [Google::Apis::DnsV2beta1::Project]
|
687
|
+
#
|
688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
691
|
+
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
692
|
+
command = make_simple_command(:get, '{project}', options)
|
693
|
+
command.response_representation = Google::Apis::DnsV2beta1::Project::Representation
|
694
|
+
command.response_class = Google::Apis::DnsV2beta1::Project
|
695
|
+
command.params['project'] = project unless project.nil?
|
696
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
697
|
+
command.query['fields'] = fields unless fields.nil?
|
698
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
699
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
700
|
+
execute_or_queue_command(command, &block)
|
701
|
+
end
|
702
|
+
|
703
|
+
# Enumerate ResourceRecordSets that have been created but not yet deleted.
|
704
|
+
# @param [String] project
|
705
|
+
# Identifies the project addressed by this request.
|
706
|
+
# @param [String] managed_zone
|
707
|
+
# Identifies the managed zone addressed by this request. Can be the managed zone
|
708
|
+
# name or id.
|
709
|
+
# @param [Fixnum] max_results
|
710
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
711
|
+
# will decide how many results to return.
|
712
|
+
# @param [String] name
|
713
|
+
# Restricts the list to return only records with this fully qualified domain
|
714
|
+
# name.
|
715
|
+
# @param [String] page_token
|
716
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
717
|
+
# this parameter to continue a previous list request.
|
718
|
+
# @param [String] type
|
719
|
+
# Restricts the list to return only records of this type. If present, the "name"
|
720
|
+
# parameter must also be present.
|
721
|
+
# @param [String] fields
|
722
|
+
# Selector specifying which fields to include in a partial response.
|
723
|
+
# @param [String] quota_user
|
724
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
725
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
726
|
+
# Overrides userIp if both are provided.
|
727
|
+
# @param [String] user_ip
|
728
|
+
# IP address of the site where the request originates. Use this if you want to
|
729
|
+
# enforce per-user limits.
|
730
|
+
# @param [Google::Apis::RequestOptions] options
|
731
|
+
# Request-specific options
|
732
|
+
#
|
733
|
+
# @yield [result, err] Result & error if block supplied
|
734
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse] parsed result object
|
735
|
+
# @yieldparam err [StandardError] error object if request failed
|
736
|
+
#
|
737
|
+
# @return [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse]
|
738
|
+
#
|
739
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
740
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
741
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
742
|
+
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)
|
743
|
+
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
|
744
|
+
command.response_representation = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse::Representation
|
745
|
+
command.response_class = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse
|
746
|
+
command.params['project'] = project unless project.nil?
|
747
|
+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
748
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
749
|
+
command.query['name'] = name unless name.nil?
|
750
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
751
|
+
command.query['type'] = type unless type.nil?
|
752
|
+
command.query['fields'] = fields unless fields.nil?
|
753
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
754
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
755
|
+
execute_or_queue_command(command, &block)
|
756
|
+
end
|
757
|
+
|
758
|
+
protected
|
759
|
+
|
760
|
+
def apply_command_defaults(command)
|
761
|
+
command.query['key'] = key unless key.nil?
|
762
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
763
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
764
|
+
end
|
765
|
+
end
|
766
|
+
end
|
767
|
+
end
|
768
|
+
end
|