google-apis-dns_v1 0.14.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1078,6 +1078,479 @@ module Google
1078
1078
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1079
1079
  execute_or_queue_command(command, &block)
1080
1080
  end
1081
+
1082
+ # Creates a new Response Policy
1083
+ # @param [String] project
1084
+ # Identifies the project addressed by this request.
1085
+ # @param [Google::Apis::DnsV1::ResponsePolicy] response_policy_object
1086
+ # @param [String] client_operation_id
1087
+ # For mutating operation requests only. An optional identifier specified by the
1088
+ # client. Must be unique for operation resources in the Operations collection.
1089
+ # @param [String] fields
1090
+ # Selector specifying which fields to include in a partial response.
1091
+ # @param [String] quota_user
1092
+ # Available to use for quota purposes for server-side applications. Can be any
1093
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1094
+ # @param [Google::Apis::RequestOptions] options
1095
+ # Request-specific options
1096
+ #
1097
+ # @yield [result, err] Result & error if block supplied
1098
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicy] parsed result object
1099
+ # @yieldparam err [StandardError] error object if request failed
1100
+ #
1101
+ # @return [Google::Apis::DnsV1::ResponsePolicy]
1102
+ #
1103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1106
+ def create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1107
+ command = make_simple_command(:post, 'dns/v1/projects/{project}/responsePolicies', options)
1108
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicy::Representation
1109
+ command.request_object = response_policy_object
1110
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicy::Representation
1111
+ command.response_class = Google::Apis::DnsV1::ResponsePolicy
1112
+ command.params['project'] = project unless project.nil?
1113
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1114
+ command.query['fields'] = fields unless fields.nil?
1115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
+ execute_or_queue_command(command, &block)
1117
+ end
1118
+
1119
+ # Deletes a previously created Response Policy. Fails if the response policy is
1120
+ # non-empty or still being referenced by a network.
1121
+ # @param [String] project
1122
+ # Identifies the project addressed by this request.
1123
+ # @param [String] response_policy
1124
+ # User assigned name of the Response Policy addressed by this request.
1125
+ # @param [String] client_operation_id
1126
+ # For mutating operation requests only. An optional identifier specified by the
1127
+ # client. Must be unique for operation resources in the Operations collection.
1128
+ # @param [String] fields
1129
+ # Selector specifying which fields to include in a partial response.
1130
+ # @param [String] quota_user
1131
+ # Available to use for quota purposes for server-side applications. Can be any
1132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1133
+ # @param [Google::Apis::RequestOptions] options
1134
+ # Request-specific options
1135
+ #
1136
+ # @yield [result, err] Result & error if block supplied
1137
+ # @yieldparam result [NilClass] No result returned for this method
1138
+ # @yieldparam err [StandardError] error object if request failed
1139
+ #
1140
+ # @return [void]
1141
+ #
1142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1145
+ def delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1146
+ command = make_simple_command(:delete, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}', options)
1147
+ command.params['project'] = project unless project.nil?
1148
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1149
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1150
+ command.query['fields'] = fields unless fields.nil?
1151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1152
+ execute_or_queue_command(command, &block)
1153
+ end
1154
+
1155
+ # Fetches the representation of an existing Response Policy.
1156
+ # @param [String] project
1157
+ # Identifies the project addressed by this request.
1158
+ # @param [String] response_policy
1159
+ # User assigned name of the Response Policy addressed by this request.
1160
+ # @param [String] client_operation_id
1161
+ # For mutating operation requests only. An optional identifier specified by the
1162
+ # client. Must be unique for operation resources in the Operations collection.
1163
+ # @param [String] fields
1164
+ # Selector specifying which fields to include in a partial response.
1165
+ # @param [String] quota_user
1166
+ # Available to use for quota purposes for server-side applications. Can be any
1167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1168
+ # @param [Google::Apis::RequestOptions] options
1169
+ # Request-specific options
1170
+ #
1171
+ # @yield [result, err] Result & error if block supplied
1172
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicy] parsed result object
1173
+ # @yieldparam err [StandardError] error object if request failed
1174
+ #
1175
+ # @return [Google::Apis::DnsV1::ResponsePolicy]
1176
+ #
1177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1180
+ def get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1181
+ command = make_simple_command(:get, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}', options)
1182
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicy::Representation
1183
+ command.response_class = Google::Apis::DnsV1::ResponsePolicy
1184
+ command.params['project'] = project unless project.nil?
1185
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1186
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1187
+ command.query['fields'] = fields unless fields.nil?
1188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1189
+ execute_or_queue_command(command, &block)
1190
+ end
1191
+
1192
+ # Enumerates all Response Policies associated with a project.
1193
+ # @param [String] project
1194
+ # Identifies the project addressed by this request.
1195
+ # @param [Fixnum] max_results
1196
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1197
+ # decides how many results to return.
1198
+ # @param [String] page_token
1199
+ # Optional. A tag returned by a previous list request that was truncated. Use
1200
+ # this parameter to continue a previous list request.
1201
+ # @param [String] fields
1202
+ # Selector specifying which fields to include in a partial response.
1203
+ # @param [String] quota_user
1204
+ # Available to use for quota purposes for server-side applications. Can be any
1205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1206
+ # @param [Google::Apis::RequestOptions] options
1207
+ # Request-specific options
1208
+ #
1209
+ # @yield [result, err] Result & error if block supplied
1210
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePoliciesListResponse] parsed result object
1211
+ # @yieldparam err [StandardError] error object if request failed
1212
+ #
1213
+ # @return [Google::Apis::DnsV1::ResponsePoliciesListResponse]
1214
+ #
1215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1218
+ def list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1219
+ command = make_simple_command(:get, 'dns/v1/projects/{project}/responsePolicies', options)
1220
+ command.response_representation = Google::Apis::DnsV1::ResponsePoliciesListResponse::Representation
1221
+ command.response_class = Google::Apis::DnsV1::ResponsePoliciesListResponse
1222
+ command.params['project'] = project unless project.nil?
1223
+ command.query['maxResults'] = max_results unless max_results.nil?
1224
+ command.query['pageToken'] = page_token unless page_token.nil?
1225
+ command.query['fields'] = fields unless fields.nil?
1226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1227
+ execute_or_queue_command(command, &block)
1228
+ end
1229
+
1230
+ # Applies a partial update to an existing Response Policy.
1231
+ # @param [String] project
1232
+ # Identifies the project addressed by this request.
1233
+ # @param [String] response_policy
1234
+ # User assigned name of the Respones Policy addressed by this request.
1235
+ # @param [Google::Apis::DnsV1::ResponsePolicy] response_policy_object
1236
+ # @param [String] client_operation_id
1237
+ # For mutating operation requests only. An optional identifier specified by the
1238
+ # client. Must be unique for operation resources in the Operations collection.
1239
+ # @param [String] fields
1240
+ # Selector specifying which fields to include in a partial response.
1241
+ # @param [String] quota_user
1242
+ # Available to use for quota purposes for server-side applications. Can be any
1243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1244
+ # @param [Google::Apis::RequestOptions] options
1245
+ # Request-specific options
1246
+ #
1247
+ # @yield [result, err] Result & error if block supplied
1248
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePoliciesPatchResponse] parsed result object
1249
+ # @yieldparam err [StandardError] error object if request failed
1250
+ #
1251
+ # @return [Google::Apis::DnsV1::ResponsePoliciesPatchResponse]
1252
+ #
1253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1256
+ def patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1257
+ command = make_simple_command(:patch, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}', options)
1258
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicy::Representation
1259
+ command.request_object = response_policy_object
1260
+ command.response_representation = Google::Apis::DnsV1::ResponsePoliciesPatchResponse::Representation
1261
+ command.response_class = Google::Apis::DnsV1::ResponsePoliciesPatchResponse
1262
+ command.params['project'] = project unless project.nil?
1263
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1264
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1265
+ command.query['fields'] = fields unless fields.nil?
1266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1267
+ execute_or_queue_command(command, &block)
1268
+ end
1269
+
1270
+ # Updates an existing Response Policy.
1271
+ # @param [String] project
1272
+ # Identifies the project addressed by this request.
1273
+ # @param [String] response_policy
1274
+ # User assigned name of the Response Policy addressed by this request.
1275
+ # @param [Google::Apis::DnsV1::ResponsePolicy] response_policy_object
1276
+ # @param [String] client_operation_id
1277
+ # For mutating operation requests only. An optional identifier specified by the
1278
+ # client. Must be unique for operation resources in the Operations collection.
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePoliciesUpdateResponse] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::DnsV1::ResponsePoliciesUpdateResponse]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:put, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}', options)
1298
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicy::Representation
1299
+ command.request_object = response_policy_object
1300
+ command.response_representation = Google::Apis::DnsV1::ResponsePoliciesUpdateResponse::Representation
1301
+ command.response_class = Google::Apis::DnsV1::ResponsePoliciesUpdateResponse
1302
+ command.params['project'] = project unless project.nil?
1303
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1304
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1305
+ command.query['fields'] = fields unless fields.nil?
1306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1307
+ execute_or_queue_command(command, &block)
1308
+ end
1309
+
1310
+ # Creates a new Response Policy Rule.
1311
+ # @param [String] project
1312
+ # Identifies the project addressed by this request.
1313
+ # @param [String] response_policy
1314
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1315
+ # @param [Google::Apis::DnsV1::ResponsePolicyRule] response_policy_rule_object
1316
+ # @param [String] client_operation_id
1317
+ # For mutating operation requests only. An optional identifier specified by the
1318
+ # client. Must be unique for operation resources in the Operations collection.
1319
+ # @param [String] fields
1320
+ # Selector specifying which fields to include in a partial response.
1321
+ # @param [String] quota_user
1322
+ # Available to use for quota purposes for server-side applications. Can be any
1323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1324
+ # @param [Google::Apis::RequestOptions] options
1325
+ # Request-specific options
1326
+ #
1327
+ # @yield [result, err] Result & error if block supplied
1328
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicyRule] parsed result object
1329
+ # @yieldparam err [StandardError] error object if request failed
1330
+ #
1331
+ # @return [Google::Apis::DnsV1::ResponsePolicyRule]
1332
+ #
1333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1336
+ def create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1337
+ command = make_simple_command(:post, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1338
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicyRule::Representation
1339
+ command.request_object = response_policy_rule_object
1340
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicyRule::Representation
1341
+ command.response_class = Google::Apis::DnsV1::ResponsePolicyRule
1342
+ command.params['project'] = project unless project.nil?
1343
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1344
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1345
+ command.query['fields'] = fields unless fields.nil?
1346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1347
+ execute_or_queue_command(command, &block)
1348
+ end
1349
+
1350
+ # Deletes a previously created Response Policy Rule.
1351
+ # @param [String] project
1352
+ # Identifies the project addressed by this request.
1353
+ # @param [String] response_policy
1354
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1355
+ # @param [String] response_policy_rule
1356
+ # User assigned name of the Response Policy Rule addressed by this request.
1357
+ # @param [String] client_operation_id
1358
+ # For mutating operation requests only. An optional identifier specified by the
1359
+ # client. Must be unique for operation resources in the Operations collection.
1360
+ # @param [String] fields
1361
+ # Selector specifying which fields to include in a partial response.
1362
+ # @param [String] quota_user
1363
+ # Available to use for quota purposes for server-side applications. Can be any
1364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1365
+ # @param [Google::Apis::RequestOptions] options
1366
+ # Request-specific options
1367
+ #
1368
+ # @yield [result, err] Result & error if block supplied
1369
+ # @yieldparam result [NilClass] No result returned for this method
1370
+ # @yieldparam err [StandardError] error object if request failed
1371
+ #
1372
+ # @return [void]
1373
+ #
1374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
+ def delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1378
+ command = make_simple_command(:delete, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1379
+ command.params['project'] = project unless project.nil?
1380
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1381
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1382
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1383
+ command.query['fields'] = fields unless fields.nil?
1384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
+ execute_or_queue_command(command, &block)
1386
+ end
1387
+
1388
+ # Fetches the representation of an existing Response Policy Rule.
1389
+ # @param [String] project
1390
+ # Identifies the project addressed by this request.
1391
+ # @param [String] response_policy
1392
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1393
+ # @param [String] response_policy_rule
1394
+ # User assigned name of the Response Policy Rule addressed by this request.
1395
+ # @param [String] client_operation_id
1396
+ # For mutating operation requests only. An optional identifier specified by the
1397
+ # client. Must be unique for operation resources in the Operations collection.
1398
+ # @param [String] fields
1399
+ # Selector specifying which fields to include in a partial response.
1400
+ # @param [String] quota_user
1401
+ # Available to use for quota purposes for server-side applications. Can be any
1402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1403
+ # @param [Google::Apis::RequestOptions] options
1404
+ # Request-specific options
1405
+ #
1406
+ # @yield [result, err] Result & error if block supplied
1407
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicyRule] parsed result object
1408
+ # @yieldparam err [StandardError] error object if request failed
1409
+ #
1410
+ # @return [Google::Apis::DnsV1::ResponsePolicyRule]
1411
+ #
1412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1415
+ def get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1416
+ command = make_simple_command(:get, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1417
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicyRule::Representation
1418
+ command.response_class = Google::Apis::DnsV1::ResponsePolicyRule
1419
+ command.params['project'] = project unless project.nil?
1420
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1421
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1422
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1423
+ command.query['fields'] = fields unless fields.nil?
1424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1425
+ execute_or_queue_command(command, &block)
1426
+ end
1427
+
1428
+ # Enumerates all Response Policy Rules associated with a project.
1429
+ # @param [String] project
1430
+ # Identifies the project addressed by this request.
1431
+ # @param [String] response_policy
1432
+ # User assigned name of the Response Policy to list.
1433
+ # @param [Fixnum] max_results
1434
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1435
+ # decides how many results to return.
1436
+ # @param [String] page_token
1437
+ # Optional. A tag returned by a previous list request that was truncated. Use
1438
+ # this parameter to continue a previous list request.
1439
+ # @param [String] fields
1440
+ # Selector specifying which fields to include in a partial response.
1441
+ # @param [String] quota_user
1442
+ # Available to use for quota purposes for server-side applications. Can be any
1443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1444
+ # @param [Google::Apis::RequestOptions] options
1445
+ # Request-specific options
1446
+ #
1447
+ # @yield [result, err] Result & error if block supplied
1448
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicyRulesListResponse] parsed result object
1449
+ # @yieldparam err [StandardError] error object if request failed
1450
+ #
1451
+ # @return [Google::Apis::DnsV1::ResponsePolicyRulesListResponse]
1452
+ #
1453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1456
+ def list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1457
+ command = make_simple_command(:get, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1458
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicyRulesListResponse::Representation
1459
+ command.response_class = Google::Apis::DnsV1::ResponsePolicyRulesListResponse
1460
+ command.params['project'] = project unless project.nil?
1461
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1462
+ command.query['maxResults'] = max_results unless max_results.nil?
1463
+ command.query['pageToken'] = page_token unless page_token.nil?
1464
+ command.query['fields'] = fields unless fields.nil?
1465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Applies a partial update to an existing Response Policy Rule.
1470
+ # @param [String] project
1471
+ # Identifies the project addressed by this request.
1472
+ # @param [String] response_policy
1473
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1474
+ # @param [String] response_policy_rule
1475
+ # User assigned name of the Response Policy Rule addressed by this request.
1476
+ # @param [Google::Apis::DnsV1::ResponsePolicyRule] response_policy_rule_object
1477
+ # @param [String] client_operation_id
1478
+ # For mutating operation requests only. An optional identifier specified by the
1479
+ # client. Must be unique for operation resources in the Operations collection.
1480
+ # @param [String] fields
1481
+ # Selector specifying which fields to include in a partial response.
1482
+ # @param [String] quota_user
1483
+ # Available to use for quota purposes for server-side applications. Can be any
1484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1485
+ # @param [Google::Apis::RequestOptions] options
1486
+ # Request-specific options
1487
+ #
1488
+ # @yield [result, err] Result & error if block supplied
1489
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicyRulesPatchResponse] parsed result object
1490
+ # @yieldparam err [StandardError] error object if request failed
1491
+ #
1492
+ # @return [Google::Apis::DnsV1::ResponsePolicyRulesPatchResponse]
1493
+ #
1494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1497
+ def patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1498
+ command = make_simple_command(:patch, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1499
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicyRule::Representation
1500
+ command.request_object = response_policy_rule_object
1501
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicyRulesPatchResponse::Representation
1502
+ command.response_class = Google::Apis::DnsV1::ResponsePolicyRulesPatchResponse
1503
+ command.params['project'] = project unless project.nil?
1504
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1505
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1506
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1507
+ command.query['fields'] = fields unless fields.nil?
1508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1509
+ execute_or_queue_command(command, &block)
1510
+ end
1511
+
1512
+ # Updates an existing Response Policy Rule.
1513
+ # @param [String] project
1514
+ # Identifies the project addressed by this request.
1515
+ # @param [String] response_policy
1516
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1517
+ # @param [String] response_policy_rule
1518
+ # User assigned name of the Response Policy Rule addressed by this request.
1519
+ # @param [Google::Apis::DnsV1::ResponsePolicyRule] response_policy_rule_object
1520
+ # @param [String] client_operation_id
1521
+ # For mutating operation requests only. An optional identifier specified by the
1522
+ # client. Must be unique for operation resources in the Operations collection.
1523
+ # @param [String] fields
1524
+ # Selector specifying which fields to include in a partial response.
1525
+ # @param [String] quota_user
1526
+ # Available to use for quota purposes for server-side applications. Can be any
1527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1528
+ # @param [Google::Apis::RequestOptions] options
1529
+ # Request-specific options
1530
+ #
1531
+ # @yield [result, err] Result & error if block supplied
1532
+ # @yieldparam result [Google::Apis::DnsV1::ResponsePolicyRulesUpdateResponse] parsed result object
1533
+ # @yieldparam err [StandardError] error object if request failed
1534
+ #
1535
+ # @return [Google::Apis::DnsV1::ResponsePolicyRulesUpdateResponse]
1536
+ #
1537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1540
+ def update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1541
+ command = make_simple_command(:put, 'dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1542
+ command.request_representation = Google::Apis::DnsV1::ResponsePolicyRule::Representation
1543
+ command.request_object = response_policy_rule_object
1544
+ command.response_representation = Google::Apis::DnsV1::ResponsePolicyRulesUpdateResponse::Representation
1545
+ command.response_class = Google::Apis::DnsV1::ResponsePolicyRulesUpdateResponse
1546
+ command.params['project'] = project unless project.nil?
1547
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1548
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1549
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1550
+ command.query['fields'] = fields unless fields.nil?
1551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1552
+ execute_or_queue_command(command, &block)
1553
+ end
1081
1554
 
1082
1555
  protected
1083
1556
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dns_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dns_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dns_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1/v0.18.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud DNS API V1