1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service; 19 20use Google\Client; 21 22/** 23 * Service definition for SecurityCommandCenter (v1). 24 * 25 * <p> 26 * Security Command Center API provides access to temporal views of assets and 27 * findings within an organization.</p> 28 * 29 * <p> 30 * For more information about this service, see the API 31 * <a href="https://cloud.google.com/security-command-center" target="_blank">Documentation</a> 32 * </p> 33 * 34 * @author Google, Inc. 35 */ 36class SecurityCommandCenter extends \Google\Service 37{ 38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ 39 const CLOUD_PLATFORM = 40 "https://www.googleapis.com/auth/cloud-platform"; 41 42 public $folders_assets; 43 public $folders_bigQueryExports; 44 public $folders_findings; 45 public $folders_muteConfigs; 46 public $folders_sources; 47 public $folders_sources_findings; 48 public $folders_sources_findings_externalSystems; 49 public $organizations; 50 public $organizations_assets; 51 public $organizations_bigQueryExports; 52 public $organizations_findings; 53 public $organizations_muteConfigs; 54 public $organizations_notificationConfigs; 55 public $organizations_operations; 56 public $organizations_sources; 57 public $organizations_sources_findings; 58 public $organizations_sources_findings_externalSystems; 59 public $projects_assets; 60 public $projects_bigQueryExports; 61 public $projects_findings; 62 public $projects_muteConfigs; 63 public $projects_sources; 64 public $projects_sources_findings; 65 public $projects_sources_findings_externalSystems; 66 67 /** 68 * Constructs the internal representation of the SecurityCommandCenter 69 * service. 70 * 71 * @param Client|array $clientOrConfig The client used to deliver requests, or a 72 * config array to pass to a new Client instance. 73 * @param string $rootUrl The root URL used for requests to the service. 74 */ 75 public function __construct($clientOrConfig = [], $rootUrl = null) 76 { 77 parent::__construct($clientOrConfig); 78 $this->rootUrl = $rootUrl ?: 'https://securitycenter.googleapis.com/'; 79 $this->servicePath = ''; 80 $this->batchPath = 'batch'; 81 $this->version = 'v1'; 82 $this->serviceName = 'securitycenter'; 83 84 $this->folders_assets = new SecurityCommandCenter\Resource\FoldersAssets( 85 $this, 86 $this->serviceName, 87 'assets', 88 [ 89 'methods' => [ 90 'group' => [ 91 'path' => 'v1/{+parent}/assets:group', 92 'httpMethod' => 'POST', 93 'parameters' => [ 94 'parent' => [ 95 'location' => 'path', 96 'type' => 'string', 97 'required' => true, 98 ], 99 ], 100 ],'list' => [ 101 'path' => 'v1/{+parent}/assets', 102 'httpMethod' => 'GET', 103 'parameters' => [ 104 'parent' => [ 105 'location' => 'path', 106 'type' => 'string', 107 'required' => true, 108 ], 109 'compareDuration' => [ 110 'location' => 'query', 111 'type' => 'string', 112 ], 113 'fieldMask' => [ 114 'location' => 'query', 115 'type' => 'string', 116 ], 117 'filter' => [ 118 'location' => 'query', 119 'type' => 'string', 120 ], 121 'orderBy' => [ 122 'location' => 'query', 123 'type' => 'string', 124 ], 125 'pageSize' => [ 126 'location' => 'query', 127 'type' => 'integer', 128 ], 129 'pageToken' => [ 130 'location' => 'query', 131 'type' => 'string', 132 ], 133 'readTime' => [ 134 'location' => 'query', 135 'type' => 'string', 136 ], 137 ], 138 ],'updateSecurityMarks' => [ 139 'path' => 'v1/{+name}', 140 'httpMethod' => 'PATCH', 141 'parameters' => [ 142 'name' => [ 143 'location' => 'path', 144 'type' => 'string', 145 'required' => true, 146 ], 147 'startTime' => [ 148 'location' => 'query', 149 'type' => 'string', 150 ], 151 'updateMask' => [ 152 'location' => 'query', 153 'type' => 'string', 154 ], 155 ], 156 ], 157 ] 158 ] 159 ); 160 $this->folders_bigQueryExports = new SecurityCommandCenter\Resource\FoldersBigQueryExports( 161 $this, 162 $this->serviceName, 163 'bigQueryExports', 164 [ 165 'methods' => [ 166 'create' => [ 167 'path' => 'v1/{+parent}/bigQueryExports', 168 'httpMethod' => 'POST', 169 'parameters' => [ 170 'parent' => [ 171 'location' => 'path', 172 'type' => 'string', 173 'required' => true, 174 ], 175 'bigQueryExportId' => [ 176 'location' => 'query', 177 'type' => 'string', 178 ], 179 ], 180 ],'delete' => [ 181 'path' => 'v1/{+name}', 182 'httpMethod' => 'DELETE', 183 'parameters' => [ 184 'name' => [ 185 'location' => 'path', 186 'type' => 'string', 187 'required' => true, 188 ], 189 ], 190 ],'get' => [ 191 'path' => 'v1/{+name}', 192 'httpMethod' => 'GET', 193 'parameters' => [ 194 'name' => [ 195 'location' => 'path', 196 'type' => 'string', 197 'required' => true, 198 ], 199 ], 200 ],'list' => [ 201 'path' => 'v1/{+parent}/bigQueryExports', 202 'httpMethod' => 'GET', 203 'parameters' => [ 204 'parent' => [ 205 'location' => 'path', 206 'type' => 'string', 207 'required' => true, 208 ], 209 'pageSize' => [ 210 'location' => 'query', 211 'type' => 'integer', 212 ], 213 'pageToken' => [ 214 'location' => 'query', 215 'type' => 'string', 216 ], 217 ], 218 ],'patch' => [ 219 'path' => 'v1/{+name}', 220 'httpMethod' => 'PATCH', 221 'parameters' => [ 222 'name' => [ 223 'location' => 'path', 224 'type' => 'string', 225 'required' => true, 226 ], 227 'updateMask' => [ 228 'location' => 'query', 229 'type' => 'string', 230 ], 231 ], 232 ], 233 ] 234 ] 235 ); 236 $this->folders_findings = new SecurityCommandCenter\Resource\FoldersFindings( 237 $this, 238 $this->serviceName, 239 'findings', 240 [ 241 'methods' => [ 242 'bulkMute' => [ 243 'path' => 'v1/{+parent}/findings:bulkMute', 244 'httpMethod' => 'POST', 245 'parameters' => [ 246 'parent' => [ 247 'location' => 'path', 248 'type' => 'string', 249 'required' => true, 250 ], 251 ], 252 ], 253 ] 254 ] 255 ); 256 $this->folders_muteConfigs = new SecurityCommandCenter\Resource\FoldersMuteConfigs( 257 $this, 258 $this->serviceName, 259 'muteConfigs', 260 [ 261 'methods' => [ 262 'create' => [ 263 'path' => 'v1/{+parent}/muteConfigs', 264 'httpMethod' => 'POST', 265 'parameters' => [ 266 'parent' => [ 267 'location' => 'path', 268 'type' => 'string', 269 'required' => true, 270 ], 271 'muteConfigId' => [ 272 'location' => 'query', 273 'type' => 'string', 274 ], 275 ], 276 ],'delete' => [ 277 'path' => 'v1/{+name}', 278 'httpMethod' => 'DELETE', 279 'parameters' => [ 280 'name' => [ 281 'location' => 'path', 282 'type' => 'string', 283 'required' => true, 284 ], 285 ], 286 ],'get' => [ 287 'path' => 'v1/{+name}', 288 'httpMethod' => 'GET', 289 'parameters' => [ 290 'name' => [ 291 'location' => 'path', 292 'type' => 'string', 293 'required' => true, 294 ], 295 ], 296 ],'list' => [ 297 'path' => 'v1/{+parent}/muteConfigs', 298 'httpMethod' => 'GET', 299 'parameters' => [ 300 'parent' => [ 301 'location' => 'path', 302 'type' => 'string', 303 'required' => true, 304 ], 305 'pageSize' => [ 306 'location' => 'query', 307 'type' => 'integer', 308 ], 309 'pageToken' => [ 310 'location' => 'query', 311 'type' => 'string', 312 ], 313 ], 314 ],'patch' => [ 315 'path' => 'v1/{+name}', 316 'httpMethod' => 'PATCH', 317 'parameters' => [ 318 'name' => [ 319 'location' => 'path', 320 'type' => 'string', 321 'required' => true, 322 ], 323 'updateMask' => [ 324 'location' => 'query', 325 'type' => 'string', 326 ], 327 ], 328 ], 329 ] 330 ] 331 ); 332 $this->folders_sources = new SecurityCommandCenter\Resource\FoldersSources( 333 $this, 334 $this->serviceName, 335 'sources', 336 [ 337 'methods' => [ 338 'list' => [ 339 'path' => 'v1/{+parent}/sources', 340 'httpMethod' => 'GET', 341 'parameters' => [ 342 'parent' => [ 343 'location' => 'path', 344 'type' => 'string', 345 'required' => true, 346 ], 347 'pageSize' => [ 348 'location' => 'query', 349 'type' => 'integer', 350 ], 351 'pageToken' => [ 352 'location' => 'query', 353 'type' => 'string', 354 ], 355 ], 356 ], 357 ] 358 ] 359 ); 360 $this->folders_sources_findings = new SecurityCommandCenter\Resource\FoldersSourcesFindings( 361 $this, 362 $this->serviceName, 363 'findings', 364 [ 365 'methods' => [ 366 'group' => [ 367 'path' => 'v1/{+parent}/findings:group', 368 'httpMethod' => 'POST', 369 'parameters' => [ 370 'parent' => [ 371 'location' => 'path', 372 'type' => 'string', 373 'required' => true, 374 ], 375 ], 376 ],'list' => [ 377 'path' => 'v1/{+parent}/findings', 378 'httpMethod' => 'GET', 379 'parameters' => [ 380 'parent' => [ 381 'location' => 'path', 382 'type' => 'string', 383 'required' => true, 384 ], 385 'compareDuration' => [ 386 'location' => 'query', 387 'type' => 'string', 388 ], 389 'fieldMask' => [ 390 'location' => 'query', 391 'type' => 'string', 392 ], 393 'filter' => [ 394 'location' => 'query', 395 'type' => 'string', 396 ], 397 'orderBy' => [ 398 'location' => 'query', 399 'type' => 'string', 400 ], 401 'pageSize' => [ 402 'location' => 'query', 403 'type' => 'integer', 404 ], 405 'pageToken' => [ 406 'location' => 'query', 407 'type' => 'string', 408 ], 409 'readTime' => [ 410 'location' => 'query', 411 'type' => 'string', 412 ], 413 ], 414 ],'patch' => [ 415 'path' => 'v1/{+name}', 416 'httpMethod' => 'PATCH', 417 'parameters' => [ 418 'name' => [ 419 'location' => 'path', 420 'type' => 'string', 421 'required' => true, 422 ], 423 'updateMask' => [ 424 'location' => 'query', 425 'type' => 'string', 426 ], 427 ], 428 ],'setMute' => [ 429 'path' => 'v1/{+name}:setMute', 430 'httpMethod' => 'POST', 431 'parameters' => [ 432 'name' => [ 433 'location' => 'path', 434 'type' => 'string', 435 'required' => true, 436 ], 437 ], 438 ],'setState' => [ 439 'path' => 'v1/{+name}:setState', 440 'httpMethod' => 'POST', 441 'parameters' => [ 442 'name' => [ 443 'location' => 'path', 444 'type' => 'string', 445 'required' => true, 446 ], 447 ], 448 ],'updateSecurityMarks' => [ 449 'path' => 'v1/{+name}', 450 'httpMethod' => 'PATCH', 451 'parameters' => [ 452 'name' => [ 453 'location' => 'path', 454 'type' => 'string', 455 'required' => true, 456 ], 457 'startTime' => [ 458 'location' => 'query', 459 'type' => 'string', 460 ], 461 'updateMask' => [ 462 'location' => 'query', 463 'type' => 'string', 464 ], 465 ], 466 ], 467 ] 468 ] 469 ); 470 $this->folders_sources_findings_externalSystems = new SecurityCommandCenter\Resource\FoldersSourcesFindingsExternalSystems( 471 $this, 472 $this->serviceName, 473 'externalSystems', 474 [ 475 'methods' => [ 476 'patch' => [ 477 'path' => 'v1/{+name}', 478 'httpMethod' => 'PATCH', 479 'parameters' => [ 480 'name' => [ 481 'location' => 'path', 482 'type' => 'string', 483 'required' => true, 484 ], 485 'updateMask' => [ 486 'location' => 'query', 487 'type' => 'string', 488 ], 489 ], 490 ], 491 ] 492 ] 493 ); 494 $this->organizations = new SecurityCommandCenter\Resource\Organizations( 495 $this, 496 $this->serviceName, 497 'organizations', 498 [ 499 'methods' => [ 500 'getOrganizationSettings' => [ 501 'path' => 'v1/{+name}', 502 'httpMethod' => 'GET', 503 'parameters' => [ 504 'name' => [ 505 'location' => 'path', 506 'type' => 'string', 507 'required' => true, 508 ], 509 ], 510 ],'updateOrganizationSettings' => [ 511 'path' => 'v1/{+name}', 512 'httpMethod' => 'PATCH', 513 'parameters' => [ 514 'name' => [ 515 'location' => 'path', 516 'type' => 'string', 517 'required' => true, 518 ], 519 'updateMask' => [ 520 'location' => 'query', 521 'type' => 'string', 522 ], 523 ], 524 ], 525 ] 526 ] 527 ); 528 $this->organizations_assets = new SecurityCommandCenter\Resource\OrganizationsAssets( 529 $this, 530 $this->serviceName, 531 'assets', 532 [ 533 'methods' => [ 534 'group' => [ 535 'path' => 'v1/{+parent}/assets:group', 536 'httpMethod' => 'POST', 537 'parameters' => [ 538 'parent' => [ 539 'location' => 'path', 540 'type' => 'string', 541 'required' => true, 542 ], 543 ], 544 ],'list' => [ 545 'path' => 'v1/{+parent}/assets', 546 'httpMethod' => 'GET', 547 'parameters' => [ 548 'parent' => [ 549 'location' => 'path', 550 'type' => 'string', 551 'required' => true, 552 ], 553 'compareDuration' => [ 554 'location' => 'query', 555 'type' => 'string', 556 ], 557 'fieldMask' => [ 558 'location' => 'query', 559 'type' => 'string', 560 ], 561 'filter' => [ 562 'location' => 'query', 563 'type' => 'string', 564 ], 565 'orderBy' => [ 566 'location' => 'query', 567 'type' => 'string', 568 ], 569 'pageSize' => [ 570 'location' => 'query', 571 'type' => 'integer', 572 ], 573 'pageToken' => [ 574 'location' => 'query', 575 'type' => 'string', 576 ], 577 'readTime' => [ 578 'location' => 'query', 579 'type' => 'string', 580 ], 581 ], 582 ],'runDiscovery' => [ 583 'path' => 'v1/{+parent}/assets:runDiscovery', 584 'httpMethod' => 'POST', 585 'parameters' => [ 586 'parent' => [ 587 'location' => 'path', 588 'type' => 'string', 589 'required' => true, 590 ], 591 ], 592 ],'updateSecurityMarks' => [ 593 'path' => 'v1/{+name}', 594 'httpMethod' => 'PATCH', 595 'parameters' => [ 596 'name' => [ 597 'location' => 'path', 598 'type' => 'string', 599 'required' => true, 600 ], 601 'startTime' => [ 602 'location' => 'query', 603 'type' => 'string', 604 ], 605 'updateMask' => [ 606 'location' => 'query', 607 'type' => 'string', 608 ], 609 ], 610 ], 611 ] 612 ] 613 ); 614 $this->organizations_bigQueryExports = new SecurityCommandCenter\Resource\OrganizationsBigQueryExports( 615 $this, 616 $this->serviceName, 617 'bigQueryExports', 618 [ 619 'methods' => [ 620 'create' => [ 621 'path' => 'v1/{+parent}/bigQueryExports', 622 'httpMethod' => 'POST', 623 'parameters' => [ 624 'parent' => [ 625 'location' => 'path', 626 'type' => 'string', 627 'required' => true, 628 ], 629 'bigQueryExportId' => [ 630 'location' => 'query', 631 'type' => 'string', 632 ], 633 ], 634 ],'delete' => [ 635 'path' => 'v1/{+name}', 636 'httpMethod' => 'DELETE', 637 'parameters' => [ 638 'name' => [ 639 'location' => 'path', 640 'type' => 'string', 641 'required' => true, 642 ], 643 ], 644 ],'get' => [ 645 'path' => 'v1/{+name}', 646 'httpMethod' => 'GET', 647 'parameters' => [ 648 'name' => [ 649 'location' => 'path', 650 'type' => 'string', 651 'required' => true, 652 ], 653 ], 654 ],'list' => [ 655 'path' => 'v1/{+parent}/bigQueryExports', 656 'httpMethod' => 'GET', 657 'parameters' => [ 658 'parent' => [ 659 'location' => 'path', 660 'type' => 'string', 661 'required' => true, 662 ], 663 'pageSize' => [ 664 'location' => 'query', 665 'type' => 'integer', 666 ], 667 'pageToken' => [ 668 'location' => 'query', 669 'type' => 'string', 670 ], 671 ], 672 ],'patch' => [ 673 'path' => 'v1/{+name}', 674 'httpMethod' => 'PATCH', 675 'parameters' => [ 676 'name' => [ 677 'location' => 'path', 678 'type' => 'string', 679 'required' => true, 680 ], 681 'updateMask' => [ 682 'location' => 'query', 683 'type' => 'string', 684 ], 685 ], 686 ], 687 ] 688 ] 689 ); 690 $this->organizations_findings = new SecurityCommandCenter\Resource\OrganizationsFindings( 691 $this, 692 $this->serviceName, 693 'findings', 694 [ 695 'methods' => [ 696 'bulkMute' => [ 697 'path' => 'v1/{+parent}/findings:bulkMute', 698 'httpMethod' => 'POST', 699 'parameters' => [ 700 'parent' => [ 701 'location' => 'path', 702 'type' => 'string', 703 'required' => true, 704 ], 705 ], 706 ], 707 ] 708 ] 709 ); 710 $this->organizations_muteConfigs = new SecurityCommandCenter\Resource\OrganizationsMuteConfigs( 711 $this, 712 $this->serviceName, 713 'muteConfigs', 714 [ 715 'methods' => [ 716 'create' => [ 717 'path' => 'v1/{+parent}/muteConfigs', 718 'httpMethod' => 'POST', 719 'parameters' => [ 720 'parent' => [ 721 'location' => 'path', 722 'type' => 'string', 723 'required' => true, 724 ], 725 'muteConfigId' => [ 726 'location' => 'query', 727 'type' => 'string', 728 ], 729 ], 730 ],'delete' => [ 731 'path' => 'v1/{+name}', 732 'httpMethod' => 'DELETE', 733 'parameters' => [ 734 'name' => [ 735 'location' => 'path', 736 'type' => 'string', 737 'required' => true, 738 ], 739 ], 740 ],'get' => [ 741 'path' => 'v1/{+name}', 742 'httpMethod' => 'GET', 743 'parameters' => [ 744 'name' => [ 745 'location' => 'path', 746 'type' => 'string', 747 'required' => true, 748 ], 749 ], 750 ],'list' => [ 751 'path' => 'v1/{+parent}/muteConfigs', 752 'httpMethod' => 'GET', 753 'parameters' => [ 754 'parent' => [ 755 'location' => 'path', 756 'type' => 'string', 757 'required' => true, 758 ], 759 'pageSize' => [ 760 'location' => 'query', 761 'type' => 'integer', 762 ], 763 'pageToken' => [ 764 'location' => 'query', 765 'type' => 'string', 766 ], 767 ], 768 ],'patch' => [ 769 'path' => 'v1/{+name}', 770 'httpMethod' => 'PATCH', 771 'parameters' => [ 772 'name' => [ 773 'location' => 'path', 774 'type' => 'string', 775 'required' => true, 776 ], 777 'updateMask' => [ 778 'location' => 'query', 779 'type' => 'string', 780 ], 781 ], 782 ], 783 ] 784 ] 785 ); 786 $this->organizations_notificationConfigs = new SecurityCommandCenter\Resource\OrganizationsNotificationConfigs( 787 $this, 788 $this->serviceName, 789 'notificationConfigs', 790 [ 791 'methods' => [ 792 'create' => [ 793 'path' => 'v1/{+parent}/notificationConfigs', 794 'httpMethod' => 'POST', 795 'parameters' => [ 796 'parent' => [ 797 'location' => 'path', 798 'type' => 'string', 799 'required' => true, 800 ], 801 'configId' => [ 802 'location' => 'query', 803 'type' => 'string', 804 ], 805 ], 806 ],'delete' => [ 807 'path' => 'v1/{+name}', 808 'httpMethod' => 'DELETE', 809 'parameters' => [ 810 'name' => [ 811 'location' => 'path', 812 'type' => 'string', 813 'required' => true, 814 ], 815 ], 816 ],'get' => [ 817 'path' => 'v1/{+name}', 818 'httpMethod' => 'GET', 819 'parameters' => [ 820 'name' => [ 821 'location' => 'path', 822 'type' => 'string', 823 'required' => true, 824 ], 825 ], 826 ],'list' => [ 827 'path' => 'v1/{+parent}/notificationConfigs', 828 'httpMethod' => 'GET', 829 'parameters' => [ 830 'parent' => [ 831 'location' => 'path', 832 'type' => 'string', 833 'required' => true, 834 ], 835 'pageSize' => [ 836 'location' => 'query', 837 'type' => 'integer', 838 ], 839 'pageToken' => [ 840 'location' => 'query', 841 'type' => 'string', 842 ], 843 ], 844 ],'patch' => [ 845 'path' => 'v1/{+name}', 846 'httpMethod' => 'PATCH', 847 'parameters' => [ 848 'name' => [ 849 'location' => 'path', 850 'type' => 'string', 851 'required' => true, 852 ], 853 'updateMask' => [ 854 'location' => 'query', 855 'type' => 'string', 856 ], 857 ], 858 ], 859 ] 860 ] 861 ); 862 $this->organizations_operations = new SecurityCommandCenter\Resource\OrganizationsOperations( 863 $this, 864 $this->serviceName, 865 'operations', 866 [ 867 'methods' => [ 868 'cancel' => [ 869 'path' => 'v1/{+name}:cancel', 870 'httpMethod' => 'POST', 871 'parameters' => [ 872 'name' => [ 873 'location' => 'path', 874 'type' => 'string', 875 'required' => true, 876 ], 877 ], 878 ],'delete' => [ 879 'path' => 'v1/{+name}', 880 'httpMethod' => 'DELETE', 881 'parameters' => [ 882 'name' => [ 883 'location' => 'path', 884 'type' => 'string', 885 'required' => true, 886 ], 887 ], 888 ],'get' => [ 889 'path' => 'v1/{+name}', 890 'httpMethod' => 'GET', 891 'parameters' => [ 892 'name' => [ 893 'location' => 'path', 894 'type' => 'string', 895 'required' => true, 896 ], 897 ], 898 ],'list' => [ 899 'path' => 'v1/{+name}', 900 'httpMethod' => 'GET', 901 'parameters' => [ 902 'name' => [ 903 'location' => 'path', 904 'type' => 'string', 905 'required' => true, 906 ], 907 'filter' => [ 908 'location' => 'query', 909 'type' => 'string', 910 ], 911 'pageSize' => [ 912 'location' => 'query', 913 'type' => 'integer', 914 ], 915 'pageToken' => [ 916 'location' => 'query', 917 'type' => 'string', 918 ], 919 ], 920 ], 921 ] 922 ] 923 ); 924 $this->organizations_sources = new SecurityCommandCenter\Resource\OrganizationsSources( 925 $this, 926 $this->serviceName, 927 'sources', 928 [ 929 'methods' => [ 930 'create' => [ 931 'path' => 'v1/{+parent}/sources', 932 'httpMethod' => 'POST', 933 'parameters' => [ 934 'parent' => [ 935 'location' => 'path', 936 'type' => 'string', 937 'required' => true, 938 ], 939 ], 940 ],'get' => [ 941 'path' => 'v1/{+name}', 942 'httpMethod' => 'GET', 943 'parameters' => [ 944 'name' => [ 945 'location' => 'path', 946 'type' => 'string', 947 'required' => true, 948 ], 949 ], 950 ],'getIamPolicy' => [ 951 'path' => 'v1/{+resource}:getIamPolicy', 952 'httpMethod' => 'POST', 953 'parameters' => [ 954 'resource' => [ 955 'location' => 'path', 956 'type' => 'string', 957 'required' => true, 958 ], 959 ], 960 ],'list' => [ 961 'path' => 'v1/{+parent}/sources', 962 'httpMethod' => 'GET', 963 'parameters' => [ 964 'parent' => [ 965 'location' => 'path', 966 'type' => 'string', 967 'required' => true, 968 ], 969 'pageSize' => [ 970 'location' => 'query', 971 'type' => 'integer', 972 ], 973 'pageToken' => [ 974 'location' => 'query', 975 'type' => 'string', 976 ], 977 ], 978 ],'patch' => [ 979 'path' => 'v1/{+name}', 980 'httpMethod' => 'PATCH', 981 'parameters' => [ 982 'name' => [ 983 'location' => 'path', 984 'type' => 'string', 985 'required' => true, 986 ], 987 'updateMask' => [ 988 'location' => 'query', 989 'type' => 'string', 990 ], 991 ], 992 ],'setIamPolicy' => [ 993 'path' => 'v1/{+resource}:setIamPolicy', 994 'httpMethod' => 'POST', 995 'parameters' => [ 996 'resource' => [ 997 'location' => 'path', 998 'type' => 'string', 999 'required' => true, 1000 ], 1001 ], 1002 ],'testIamPermissions' => [ 1003 'path' => 'v1/{+resource}:testIamPermissions', 1004 'httpMethod' => 'POST', 1005 'parameters' => [ 1006 'resource' => [ 1007 'location' => 'path', 1008 'type' => 'string', 1009 'required' => true, 1010 ], 1011 ], 1012 ], 1013 ] 1014 ] 1015 ); 1016 $this->organizations_sources_findings = new SecurityCommandCenter\Resource\OrganizationsSourcesFindings( 1017 $this, 1018 $this->serviceName, 1019 'findings', 1020 [ 1021 'methods' => [ 1022 'create' => [ 1023 'path' => 'v1/{+parent}/findings', 1024 'httpMethod' => 'POST', 1025 'parameters' => [ 1026 'parent' => [ 1027 'location' => 'path', 1028 'type' => 'string', 1029 'required' => true, 1030 ], 1031 'findingId' => [ 1032 'location' => 'query', 1033 'type' => 'string', 1034 ], 1035 ], 1036 ],'group' => [ 1037 'path' => 'v1/{+parent}/findings:group', 1038 'httpMethod' => 'POST', 1039 'parameters' => [ 1040 'parent' => [ 1041 'location' => 'path', 1042 'type' => 'string', 1043 'required' => true, 1044 ], 1045 ], 1046 ],'list' => [ 1047 'path' => 'v1/{+parent}/findings', 1048 'httpMethod' => 'GET', 1049 'parameters' => [ 1050 'parent' => [ 1051 'location' => 'path', 1052 'type' => 'string', 1053 'required' => true, 1054 ], 1055 'compareDuration' => [ 1056 'location' => 'query', 1057 'type' => 'string', 1058 ], 1059 'fieldMask' => [ 1060 'location' => 'query', 1061 'type' => 'string', 1062 ], 1063 'filter' => [ 1064 'location' => 'query', 1065 'type' => 'string', 1066 ], 1067 'orderBy' => [ 1068 'location' => 'query', 1069 'type' => 'string', 1070 ], 1071 'pageSize' => [ 1072 'location' => 'query', 1073 'type' => 'integer', 1074 ], 1075 'pageToken' => [ 1076 'location' => 'query', 1077 'type' => 'string', 1078 ], 1079 'readTime' => [ 1080 'location' => 'query', 1081 'type' => 'string', 1082 ], 1083 ], 1084 ],'patch' => [ 1085 'path' => 'v1/{+name}', 1086 'httpMethod' => 'PATCH', 1087 'parameters' => [ 1088 'name' => [ 1089 'location' => 'path', 1090 'type' => 'string', 1091 'required' => true, 1092 ], 1093 'updateMask' => [ 1094 'location' => 'query', 1095 'type' => 'string', 1096 ], 1097 ], 1098 ],'setMute' => [ 1099 'path' => 'v1/{+name}:setMute', 1100 'httpMethod' => 'POST', 1101 'parameters' => [ 1102 'name' => [ 1103 'location' => 'path', 1104 'type' => 'string', 1105 'required' => true, 1106 ], 1107 ], 1108 ],'setState' => [ 1109 'path' => 'v1/{+name}:setState', 1110 'httpMethod' => 'POST', 1111 'parameters' => [ 1112 'name' => [ 1113 'location' => 'path', 1114 'type' => 'string', 1115 'required' => true, 1116 ], 1117 ], 1118 ],'updateSecurityMarks' => [ 1119 'path' => 'v1/{+name}', 1120 'httpMethod' => 'PATCH', 1121 'parameters' => [ 1122 'name' => [ 1123 'location' => 'path', 1124 'type' => 'string', 1125 'required' => true, 1126 ], 1127 'startTime' => [ 1128 'location' => 'query', 1129 'type' => 'string', 1130 ], 1131 'updateMask' => [ 1132 'location' => 'query', 1133 'type' => 'string', 1134 ], 1135 ], 1136 ], 1137 ] 1138 ] 1139 ); 1140 $this->organizations_sources_findings_externalSystems = new SecurityCommandCenter\Resource\OrganizationsSourcesFindingsExternalSystems( 1141 $this, 1142 $this->serviceName, 1143 'externalSystems', 1144 [ 1145 'methods' => [ 1146 'patch' => [ 1147 'path' => 'v1/{+name}', 1148 'httpMethod' => 'PATCH', 1149 'parameters' => [ 1150 'name' => [ 1151 'location' => 'path', 1152 'type' => 'string', 1153 'required' => true, 1154 ], 1155 'updateMask' => [ 1156 'location' => 'query', 1157 'type' => 'string', 1158 ], 1159 ], 1160 ], 1161 ] 1162 ] 1163 ); 1164 $this->projects_assets = new SecurityCommandCenter\Resource\ProjectsAssets( 1165 $this, 1166 $this->serviceName, 1167 'assets', 1168 [ 1169 'methods' => [ 1170 'group' => [ 1171 'path' => 'v1/{+parent}/assets:group', 1172 'httpMethod' => 'POST', 1173 'parameters' => [ 1174 'parent' => [ 1175 'location' => 'path', 1176 'type' => 'string', 1177 'required' => true, 1178 ], 1179 ], 1180 ],'list' => [ 1181 'path' => 'v1/{+parent}/assets', 1182 'httpMethod' => 'GET', 1183 'parameters' => [ 1184 'parent' => [ 1185 'location' => 'path', 1186 'type' => 'string', 1187 'required' => true, 1188 ], 1189 'compareDuration' => [ 1190 'location' => 'query', 1191 'type' => 'string', 1192 ], 1193 'fieldMask' => [ 1194 'location' => 'query', 1195 'type' => 'string', 1196 ], 1197 'filter' => [ 1198 'location' => 'query', 1199 'type' => 'string', 1200 ], 1201 'orderBy' => [ 1202 'location' => 'query', 1203 'type' => 'string', 1204 ], 1205 'pageSize' => [ 1206 'location' => 'query', 1207 'type' => 'integer', 1208 ], 1209 'pageToken' => [ 1210 'location' => 'query', 1211 'type' => 'string', 1212 ], 1213 'readTime' => [ 1214 'location' => 'query', 1215 'type' => 'string', 1216 ], 1217 ], 1218 ],'updateSecurityMarks' => [ 1219 'path' => 'v1/{+name}', 1220 'httpMethod' => 'PATCH', 1221 'parameters' => [ 1222 'name' => [ 1223 'location' => 'path', 1224 'type' => 'string', 1225 'required' => true, 1226 ], 1227 'startTime' => [ 1228 'location' => 'query', 1229 'type' => 'string', 1230 ], 1231 'updateMask' => [ 1232 'location' => 'query', 1233 'type' => 'string', 1234 ], 1235 ], 1236 ], 1237 ] 1238 ] 1239 ); 1240 $this->projects_bigQueryExports = new SecurityCommandCenter\Resource\ProjectsBigQueryExports( 1241 $this, 1242 $this->serviceName, 1243 'bigQueryExports', 1244 [ 1245 'methods' => [ 1246 'create' => [ 1247 'path' => 'v1/{+parent}/bigQueryExports', 1248 'httpMethod' => 'POST', 1249 'parameters' => [ 1250 'parent' => [ 1251 'location' => 'path', 1252 'type' => 'string', 1253 'required' => true, 1254 ], 1255 'bigQueryExportId' => [ 1256 'location' => 'query', 1257 'type' => 'string', 1258 ], 1259 ], 1260 ],'delete' => [ 1261 'path' => 'v1/{+name}', 1262 'httpMethod' => 'DELETE', 1263 'parameters' => [ 1264 'name' => [ 1265 'location' => 'path', 1266 'type' => 'string', 1267 'required' => true, 1268 ], 1269 ], 1270 ],'get' => [ 1271 'path' => 'v1/{+name}', 1272 'httpMethod' => 'GET', 1273 'parameters' => [ 1274 'name' => [ 1275 'location' => 'path', 1276 'type' => 'string', 1277 'required' => true, 1278 ], 1279 ], 1280 ],'list' => [ 1281 'path' => 'v1/{+parent}/bigQueryExports', 1282 'httpMethod' => 'GET', 1283 'parameters' => [ 1284 'parent' => [ 1285 'location' => 'path', 1286 'type' => 'string', 1287 'required' => true, 1288 ], 1289 'pageSize' => [ 1290 'location' => 'query', 1291 'type' => 'integer', 1292 ], 1293 'pageToken' => [ 1294 'location' => 'query', 1295 'type' => 'string', 1296 ], 1297 ], 1298 ],'patch' => [ 1299 'path' => 'v1/{+name}', 1300 'httpMethod' => 'PATCH', 1301 'parameters' => [ 1302 'name' => [ 1303 'location' => 'path', 1304 'type' => 'string', 1305 'required' => true, 1306 ], 1307 'updateMask' => [ 1308 'location' => 'query', 1309 'type' => 'string', 1310 ], 1311 ], 1312 ], 1313 ] 1314 ] 1315 ); 1316 $this->projects_findings = new SecurityCommandCenter\Resource\ProjectsFindings( 1317 $this, 1318 $this->serviceName, 1319 'findings', 1320 [ 1321 'methods' => [ 1322 'bulkMute' => [ 1323 'path' => 'v1/{+parent}/findings:bulkMute', 1324 'httpMethod' => 'POST', 1325 'parameters' => [ 1326 'parent' => [ 1327 'location' => 'path', 1328 'type' => 'string', 1329 'required' => true, 1330 ], 1331 ], 1332 ], 1333 ] 1334 ] 1335 ); 1336 $this->projects_muteConfigs = new SecurityCommandCenter\Resource\ProjectsMuteConfigs( 1337 $this, 1338 $this->serviceName, 1339 'muteConfigs', 1340 [ 1341 'methods' => [ 1342 'create' => [ 1343 'path' => 'v1/{+parent}/muteConfigs', 1344 'httpMethod' => 'POST', 1345 'parameters' => [ 1346 'parent' => [ 1347 'location' => 'path', 1348 'type' => 'string', 1349 'required' => true, 1350 ], 1351 'muteConfigId' => [ 1352 'location' => 'query', 1353 'type' => 'string', 1354 ], 1355 ], 1356 ],'delete' => [ 1357 'path' => 'v1/{+name}', 1358 'httpMethod' => 'DELETE', 1359 'parameters' => [ 1360 'name' => [ 1361 'location' => 'path', 1362 'type' => 'string', 1363 'required' => true, 1364 ], 1365 ], 1366 ],'get' => [ 1367 'path' => 'v1/{+name}', 1368 'httpMethod' => 'GET', 1369 'parameters' => [ 1370 'name' => [ 1371 'location' => 'path', 1372 'type' => 'string', 1373 'required' => true, 1374 ], 1375 ], 1376 ],'list' => [ 1377 'path' => 'v1/{+parent}/muteConfigs', 1378 'httpMethod' => 'GET', 1379 'parameters' => [ 1380 'parent' => [ 1381 'location' => 'path', 1382 'type' => 'string', 1383 'required' => true, 1384 ], 1385 'pageSize' => [ 1386 'location' => 'query', 1387 'type' => 'integer', 1388 ], 1389 'pageToken' => [ 1390 'location' => 'query', 1391 'type' => 'string', 1392 ], 1393 ], 1394 ],'patch' => [ 1395 'path' => 'v1/{+name}', 1396 'httpMethod' => 'PATCH', 1397 'parameters' => [ 1398 'name' => [ 1399 'location' => 'path', 1400 'type' => 'string', 1401 'required' => true, 1402 ], 1403 'updateMask' => [ 1404 'location' => 'query', 1405 'type' => 'string', 1406 ], 1407 ], 1408 ], 1409 ] 1410 ] 1411 ); 1412 $this->projects_sources = new SecurityCommandCenter\Resource\ProjectsSources( 1413 $this, 1414 $this->serviceName, 1415 'sources', 1416 [ 1417 'methods' => [ 1418 'list' => [ 1419 'path' => 'v1/{+parent}/sources', 1420 'httpMethod' => 'GET', 1421 'parameters' => [ 1422 'parent' => [ 1423 'location' => 'path', 1424 'type' => 'string', 1425 'required' => true, 1426 ], 1427 'pageSize' => [ 1428 'location' => 'query', 1429 'type' => 'integer', 1430 ], 1431 'pageToken' => [ 1432 'location' => 'query', 1433 'type' => 'string', 1434 ], 1435 ], 1436 ], 1437 ] 1438 ] 1439 ); 1440 $this->projects_sources_findings = new SecurityCommandCenter\Resource\ProjectsSourcesFindings( 1441 $this, 1442 $this->serviceName, 1443 'findings', 1444 [ 1445 'methods' => [ 1446 'group' => [ 1447 'path' => 'v1/{+parent}/findings:group', 1448 'httpMethod' => 'POST', 1449 'parameters' => [ 1450 'parent' => [ 1451 'location' => 'path', 1452 'type' => 'string', 1453 'required' => true, 1454 ], 1455 ], 1456 ],'list' => [ 1457 'path' => 'v1/{+parent}/findings', 1458 'httpMethod' => 'GET', 1459 'parameters' => [ 1460 'parent' => [ 1461 'location' => 'path', 1462 'type' => 'string', 1463 'required' => true, 1464 ], 1465 'compareDuration' => [ 1466 'location' => 'query', 1467 'type' => 'string', 1468 ], 1469 'fieldMask' => [ 1470 'location' => 'query', 1471 'type' => 'string', 1472 ], 1473 'filter' => [ 1474 'location' => 'query', 1475 'type' => 'string', 1476 ], 1477 'orderBy' => [ 1478 'location' => 'query', 1479 'type' => 'string', 1480 ], 1481 'pageSize' => [ 1482 'location' => 'query', 1483 'type' => 'integer', 1484 ], 1485 'pageToken' => [ 1486 'location' => 'query', 1487 'type' => 'string', 1488 ], 1489 'readTime' => [ 1490 'location' => 'query', 1491 'type' => 'string', 1492 ], 1493 ], 1494 ],'patch' => [ 1495 'path' => 'v1/{+name}', 1496 'httpMethod' => 'PATCH', 1497 'parameters' => [ 1498 'name' => [ 1499 'location' => 'path', 1500 'type' => 'string', 1501 'required' => true, 1502 ], 1503 'updateMask' => [ 1504 'location' => 'query', 1505 'type' => 'string', 1506 ], 1507 ], 1508 ],'setMute' => [ 1509 'path' => 'v1/{+name}:setMute', 1510 'httpMethod' => 'POST', 1511 'parameters' => [ 1512 'name' => [ 1513 'location' => 'path', 1514 'type' => 'string', 1515 'required' => true, 1516 ], 1517 ], 1518 ],'setState' => [ 1519 'path' => 'v1/{+name}:setState', 1520 'httpMethod' => 'POST', 1521 'parameters' => [ 1522 'name' => [ 1523 'location' => 'path', 1524 'type' => 'string', 1525 'required' => true, 1526 ], 1527 ], 1528 ],'updateSecurityMarks' => [ 1529 'path' => 'v1/{+name}', 1530 'httpMethod' => 'PATCH', 1531 'parameters' => [ 1532 'name' => [ 1533 'location' => 'path', 1534 'type' => 'string', 1535 'required' => true, 1536 ], 1537 'startTime' => [ 1538 'location' => 'query', 1539 'type' => 'string', 1540 ], 1541 'updateMask' => [ 1542 'location' => 'query', 1543 'type' => 'string', 1544 ], 1545 ], 1546 ], 1547 ] 1548 ] 1549 ); 1550 $this->projects_sources_findings_externalSystems = new SecurityCommandCenter\Resource\ProjectsSourcesFindingsExternalSystems( 1551 $this, 1552 $this->serviceName, 1553 'externalSystems', 1554 [ 1555 'methods' => [ 1556 'patch' => [ 1557 'path' => 'v1/{+name}', 1558 'httpMethod' => 'PATCH', 1559 'parameters' => [ 1560 'name' => [ 1561 'location' => 'path', 1562 'type' => 'string', 1563 'required' => true, 1564 ], 1565 'updateMask' => [ 1566 'location' => 'query', 1567 'type' => 'string', 1568 ], 1569 ], 1570 ], 1571 ] 1572 ] 1573 ); 1574 } 1575} 1576 1577// Adding a class alias for backwards compatibility with the previous class name. 1578class_alias(SecurityCommandCenter::class, 'Google_Service_SecurityCommandCenter'); 1579