|
16 | 16 |
|
17 | 17 |
|
18 | 18 | # DO NOT MODIFY! AUTO-GENERATED! |
19 | | -# This file is auto-generated on 2019-04-26. |
| 19 | +# This file is auto-generated on 2019-05-03. |
20 | 20 |
|
21 | 21 | # flake8: noqa |
22 | 22 |
|
@@ -361,3 +361,225 @@ def test_list_time_series(self): |
361 | 361 | name_outside, "", {}, enums.ListTimeSeriesRequest.TimeSeriesView.FULL |
362 | 362 | ) |
363 | 363 | TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 364 | + |
| 365 | + @pytest.mark.skipif( |
| 366 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 367 | + ) |
| 368 | + @pytest.mark.skipif( |
| 369 | + PROJECT_OUTSIDE is None, |
| 370 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 371 | + ) |
| 372 | + def test_create_notification_channel(self): |
| 373 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 374 | + name_inside = client.project_path(PROJECT_INSIDE) |
| 375 | + delayed_inside = lambda: client.create_notification_channel(name_inside, {}) |
| 376 | + name_outside = client.project_path(PROJECT_OUTSIDE) |
| 377 | + delayed_outside = lambda: client.create_notification_channel(name_outside, {}) |
| 378 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 379 | + |
| 380 | + @pytest.mark.skipif( |
| 381 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 382 | + ) |
| 383 | + @pytest.mark.skipif( |
| 384 | + PROJECT_OUTSIDE is None, |
| 385 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 386 | + ) |
| 387 | + def test_delete_notification_channel(self): |
| 388 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 389 | + name_inside = client.notification_channel_path( |
| 390 | + PROJECT_INSIDE, "mock_notification_channel" |
| 391 | + ) |
| 392 | + delayed_inside = lambda: client.delete_notification_channel(name_inside) |
| 393 | + name_outside = client.notification_channel_path( |
| 394 | + PROJECT_OUTSIDE, "mock_notification_channel" |
| 395 | + ) |
| 396 | + delayed_outside = lambda: client.delete_notification_channel(name_outside) |
| 397 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 398 | + |
| 399 | + @pytest.mark.skipif( |
| 400 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 401 | + ) |
| 402 | + @pytest.mark.skipif( |
| 403 | + PROJECT_OUTSIDE is None, |
| 404 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 405 | + ) |
| 406 | + def test_get_notification_channel(self): |
| 407 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 408 | + name_inside = client.notification_channel_path( |
| 409 | + PROJECT_INSIDE, "mock_notification_channel" |
| 410 | + ) |
| 411 | + delayed_inside = lambda: client.get_notification_channel(name_inside) |
| 412 | + name_outside = client.notification_channel_path( |
| 413 | + PROJECT_OUTSIDE, "mock_notification_channel" |
| 414 | + ) |
| 415 | + delayed_outside = lambda: client.get_notification_channel(name_outside) |
| 416 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 417 | + |
| 418 | + @pytest.mark.skipif( |
| 419 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 420 | + ) |
| 421 | + @pytest.mark.skipif( |
| 422 | + PROJECT_OUTSIDE is None, |
| 423 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 424 | + ) |
| 425 | + def test_get_notification_channel_descriptor(self): |
| 426 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 427 | + name_inside = client.notification_channel_descriptor_path( |
| 428 | + PROJECT_INSIDE, "mock_notification_channel_descriptor" |
| 429 | + ) |
| 430 | + delayed_inside = lambda: client.get_notification_channel_descriptor(name_inside) |
| 431 | + name_outside = client.notification_channel_descriptor_path( |
| 432 | + PROJECT_OUTSIDE, "mock_notification_channel_descriptor" |
| 433 | + ) |
| 434 | + delayed_outside = lambda: client.get_notification_channel_descriptor( |
| 435 | + name_outside |
| 436 | + ) |
| 437 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 438 | + |
| 439 | + @pytest.mark.skipif( |
| 440 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 441 | + ) |
| 442 | + @pytest.mark.skipif( |
| 443 | + PROJECT_OUTSIDE is None, |
| 444 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 445 | + ) |
| 446 | + def test_list_notification_channel_descriptors(self): |
| 447 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 448 | + name_inside = client.project_path(PROJECT_INSIDE) |
| 449 | + delayed_inside = lambda: client.list_notification_channel_descriptors( |
| 450 | + name_inside |
| 451 | + ) |
| 452 | + name_outside = client.project_path(PROJECT_OUTSIDE) |
| 453 | + delayed_outside = lambda: client.list_notification_channel_descriptors( |
| 454 | + name_outside |
| 455 | + ) |
| 456 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 457 | + |
| 458 | + @pytest.mark.skipif( |
| 459 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 460 | + ) |
| 461 | + @pytest.mark.skipif( |
| 462 | + PROJECT_OUTSIDE is None, |
| 463 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 464 | + ) |
| 465 | + def test_list_notification_channels(self): |
| 466 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 467 | + name_inside = client.project_path(PROJECT_INSIDE) |
| 468 | + delayed_inside = lambda: client.list_notification_channels(name_inside) |
| 469 | + name_outside = client.project_path(PROJECT_OUTSIDE) |
| 470 | + delayed_outside = lambda: client.list_notification_channels(name_outside) |
| 471 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 472 | + |
| 473 | + @pytest.mark.skipif( |
| 474 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 475 | + ) |
| 476 | + @pytest.mark.skipif( |
| 477 | + PROJECT_OUTSIDE is None, |
| 478 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 479 | + ) |
| 480 | + def test_update_notification_channel(self): |
| 481 | + client = monitoring_v3.NotificationChannelServiceClient() |
| 482 | + name_inside = client.notification_channel_path( |
| 483 | + PROJECT_INSIDE, "mock_notification_channel" |
| 484 | + ) |
| 485 | + delayed_inside = lambda: client.update_notification_channel( |
| 486 | + {"name": name_inside} |
| 487 | + ) |
| 488 | + name_outside = client.notification_channel_path( |
| 489 | + PROJECT_OUTSIDE, "mock_notification_channel" |
| 490 | + ) |
| 491 | + delayed_outside = lambda: client.update_notification_channel( |
| 492 | + {"name": name_outside} |
| 493 | + ) |
| 494 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 495 | + |
| 496 | + @pytest.mark.skipif( |
| 497 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 498 | + ) |
| 499 | + @pytest.mark.skipif( |
| 500 | + PROJECT_OUTSIDE is None, |
| 501 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 502 | + ) |
| 503 | + def test_create_uptime_check_config(self): |
| 504 | + client = monitoring_v3.UptimeCheckServiceClient() |
| 505 | + name_inside = client.project_path(PROJECT_INSIDE) |
| 506 | + delayed_inside = lambda: client.create_uptime_check_config(name_inside, {}) |
| 507 | + name_outside = client.project_path(PROJECT_OUTSIDE) |
| 508 | + delayed_outside = lambda: client.create_uptime_check_config(name_outside, {}) |
| 509 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 510 | + |
| 511 | + @pytest.mark.skipif( |
| 512 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 513 | + ) |
| 514 | + @pytest.mark.skipif( |
| 515 | + PROJECT_OUTSIDE is None, |
| 516 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 517 | + ) |
| 518 | + def test_delete_uptime_check_config(self): |
| 519 | + client = monitoring_v3.UptimeCheckServiceClient() |
| 520 | + name_inside = client.uptime_check_config_path( |
| 521 | + PROJECT_INSIDE, "mock_uptime_check_config" |
| 522 | + ) |
| 523 | + delayed_inside = lambda: client.delete_uptime_check_config(name_inside) |
| 524 | + name_outside = client.uptime_check_config_path( |
| 525 | + PROJECT_OUTSIDE, "mock_uptime_check_config" |
| 526 | + ) |
| 527 | + delayed_outside = lambda: client.delete_uptime_check_config(name_outside) |
| 528 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 529 | + |
| 530 | + @pytest.mark.skipif( |
| 531 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 532 | + ) |
| 533 | + @pytest.mark.skipif( |
| 534 | + PROJECT_OUTSIDE is None, |
| 535 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 536 | + ) |
| 537 | + def test_get_uptime_check_config(self): |
| 538 | + client = monitoring_v3.UptimeCheckServiceClient() |
| 539 | + name_inside = client.uptime_check_config_path( |
| 540 | + PROJECT_INSIDE, "mock_uptime_check_config" |
| 541 | + ) |
| 542 | + delayed_inside = lambda: client.get_uptime_check_config(name_inside) |
| 543 | + name_outside = client.uptime_check_config_path( |
| 544 | + PROJECT_OUTSIDE, "mock_uptime_check_config" |
| 545 | + ) |
| 546 | + delayed_outside = lambda: client.get_uptime_check_config(name_outside) |
| 547 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 548 | + |
| 549 | + @pytest.mark.skipif( |
| 550 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 551 | + ) |
| 552 | + @pytest.mark.skipif( |
| 553 | + PROJECT_OUTSIDE is None, |
| 554 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 555 | + ) |
| 556 | + def test_list_uptime_check_configs(self): |
| 557 | + client = monitoring_v3.UptimeCheckServiceClient() |
| 558 | + name_inside = client.project_path(PROJECT_INSIDE) |
| 559 | + delayed_inside = lambda: client.list_uptime_check_configs(name_inside) |
| 560 | + name_outside = client.project_path(PROJECT_OUTSIDE) |
| 561 | + delayed_outside = lambda: client.list_uptime_check_configs(name_outside) |
| 562 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
| 563 | + |
| 564 | + @pytest.mark.skipif( |
| 565 | + PROJECT_INSIDE is None, reason="Missing environment variable: PROJECT_ID" |
| 566 | + ) |
| 567 | + @pytest.mark.skipif( |
| 568 | + PROJECT_OUTSIDE is None, |
| 569 | + reason="Missing environment variable: GOOGLE_CLOUD_TESTS_VPCSC_OUTSIDE_PERIMETER_PROJECT", |
| 570 | + ) |
| 571 | + def test_update_uptime_check_config(self): |
| 572 | + client = monitoring_v3.UptimeCheckServiceClient() |
| 573 | + name_inside = client.uptime_check_config_path( |
| 574 | + PROJECT_INSIDE, "mock_uptime_check_config" |
| 575 | + ) |
| 576 | + delayed_inside = lambda: client.update_uptime_check_config( |
| 577 | + {"name": name_inside} |
| 578 | + ) |
| 579 | + name_outside = client.uptime_check_config_path( |
| 580 | + PROJECT_OUTSIDE, "mock_uptime_check_config" |
| 581 | + ) |
| 582 | + delayed_outside = lambda: client.update_uptime_check_config( |
| 583 | + {"name": name_outside} |
| 584 | + ) |
| 585 | + TestVPCServiceControlV3._do_test(delayed_inside, delayed_outside) |
0 commit comments