From 74aa420e22185ab3e808ac36b166822933b986ac Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 13 Sep 2024 18:00:30 +0000 Subject: [PATCH 1/2] fix!: Field behavior for field `display_name` in message `.google.cloud.cloudcontrolspartner.v1beta.Customer` is changed feat: Field behavior for field `customer_onboarding_state` in message `.google.cloud.cloudcontrolspartner.v1beta.Customer` is changed feat: Field behavior for field `is_onboarded` in message `.google.cloud.cloudcontrolspartner.v1beta.Customer` is changed feat: A new value `ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER` is added to enum `.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission` docs: A comment for field `display_name` in message `.google.cloud.cloudcontrolspartner.v1beta.Customer` is changed PiperOrigin-RevId: 674282504 Source-Link: https://github.com/googleapis/googleapis/commit/ffbe78335c0b7efe1f0c7f44713e44fa30f7c7d9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee0f8c5be62f917333559bded6665302ec98b5c9 Copy-Tag: eyJwIjoiQ29udHJvbHNQYXJ0bmVyLy5Pd2xCb3QueWFtbCIsImgiOiJlZTBmOGM1YmU2MmY5MTczMzM1NTliZGVkNjY2NTMwMmVjOThiNWM5In0= --- .../V1Beta/AccessApprovalRequests.php | Bin 0 -> 2501 bytes .../V1Beta/CompletionState.php | Bin 0 -> 1127 bytes .../Cloudcontrolspartner/V1Beta/Core.php | 57 ++ .../V1Beta/CustomerWorkloads.php | Bin 0 -> 3181 bytes .../Cloudcontrolspartner/V1Beta/Customers.php | Bin 0 -> 2625 bytes .../V1Beta/EkmConnections.php | Bin 0 -> 1970 bytes .../V1Beta/Monitoring.php | 33 + .../V1Beta/PartnerPermissions.php | Bin 0 -> 1849 bytes .../Cloudcontrolspartner/V1Beta/Partners.php | Bin 0 -> 2030 bytes .../V1Beta/Violations.php | Bin 0 -> 3506 bytes .../V1beta/AccessApprovalRequest.php | 207 ++++++ .../V1beta/AccessReason.php | 101 +++ .../V1beta/AccessReason/Type.php | 109 +++ .../V1beta/CompletionState.php | 75 ++ .../CloudControlsPartner/V1beta/Customer.php | 183 +++++ .../V1beta/CustomerOnboardingState.php | 67 ++ .../V1beta/CustomerOnboardingStep.php | 189 +++++ .../V1beta/CustomerOnboardingStep/Step.php | 64 ++ .../V1beta/EkmConnection.php | 149 ++++ .../V1beta/EkmConnection/ConnectionError.php | 105 +++ .../V1beta/EkmConnection/ConnectionState.php | 78 +++ .../V1beta/EkmConnections.php | 105 +++ .../V1beta/EkmMetadata.php | 105 +++ .../V1beta/EkmMetadata/EkmSolution.php | 80 +++ .../V1beta/GetCustomerRequest.php | 86 +++ .../V1beta/GetEkmConnectionsRequest.php | 86 +++ .../V1beta/GetPartnerPermissionsRequest.php | 86 +++ .../V1beta/GetPartnerRequest.php | 86 +++ .../V1beta/GetViolationRequest.php | 86 +++ .../V1beta/GetWorkloadRequest.php | 86 +++ .../ListAccessApprovalRequestsRequest.php | 243 +++++++ .../ListAccessApprovalRequestsResponse.php | 139 ++++ .../V1beta/ListCustomersRequest.php | 230 ++++++ .../V1beta/ListCustomersResponse.php | 139 ++++ .../V1beta/ListViolationsRequest.php | 287 ++++++++ .../V1beta/ListViolationsResponse.php | 143 ++++ .../V1beta/ListWorkloadsRequest.php | 235 +++++++ .../V1beta/ListWorkloadsResponse.php | 139 ++++ .../V1beta/OperationMetadata.php | 307 ++++++++ .../CloudControlsPartner/V1beta/Partner.php | 311 ++++++++ .../V1beta/PartnerPermissions.php | 105 +++ .../V1beta/PartnerPermissions/Permission.php | 83 +++ .../Cloud/CloudControlsPartner/V1beta/Sku.php | 117 ++++ .../CloudControlsPartner/V1beta/Violation.php | 445 ++++++++++++ .../V1beta/Violation/Remediation.php | 161 +++++ .../Violation/Remediation/Instructions.php | 124 ++++ .../Remediation/Instructions/Console.php | 138 ++++ .../Remediation/Instructions/Gcloud.php | 138 ++++ .../Violation/Remediation/RemediationType.php | 90 +++ .../V1beta/Violation/State.php | 71 ++ .../CloudControlsPartner/V1beta/Workload.php | 365 ++++++++++ .../V1beta/Workload/Partner.php | 93 +++ .../V1beta/WorkloadOnboardingState.php | 67 ++ .../V1beta/WorkloadOnboardingStep.php | 189 +++++ .../V1beta/WorkloadOnboardingStep/Step.php | 64 ++ .../get_customer.php | 76 ++ .../get_ekm_connections.php | 77 ++ .../get_partner.php | 72 ++ .../get_partner_permissions.php | 77 ++ .../get_workload.php | 77 ++ .../list_access_approval_requests.php | 84 +++ .../list_customers.php | 80 +++ .../list_workloads.php | 82 +++ .../get_violation.php | 78 +++ .../list_violations.php | 89 +++ .../Client/CloudControlsPartnerCoreClient.php | 586 ++++++++++++++++ .../CloudControlsPartnerMonitoringClient.php | 318 +++++++++ .../v1beta/src/V1beta/gapic_metadata.json | 77 ++ ...d_controls_partner_core_client_config.json | 74 ++ ...ontrols_partner_core_descriptor_config.php | 156 +++++ ...ntrols_partner_core_rest_client_config.php | 117 ++++ ...rols_partner_monitoring_client_config.json | 44 ++ ...s_partner_monitoring_descriptor_config.php | 64 ++ ..._partner_monitoring_rest_client_config.php | 51 ++ .../CloudControlsPartnerCoreClientTest.php | 662 ++++++++++++++++++ ...oudControlsPartnerMonitoringClientTest.php | 245 +++++++ 76 files changed, 9832 insertions(+) create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CompletionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Customers.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Partners.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessApprovalRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php create mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php new file mode 100644 index 0000000000000000000000000000000000000000..c4d9bb53f8ba8e2df6499da58180a937aa77fef5 GIT binary patch literal 2501 zcmb_eQE%H+6vjzgt#@MtL%Xa)aFky4rJ`qM=CU#<@wYxxU7} zDeJ2I1AYmwz+d2jSKfHq^CW%%NJw1!-lS3LvQ3Z&+qw6g@0|19bIv_q+>Z}qa0|9^ zgcC&Z0QOHHJ;X3h2qiuVVShXv;spBSC=NoLC=j+RxNo`8XqoO!rkav*;$sbt2pNS~ z^+Pfq@TX5AnvgJ!Q9>EKdVH^sDN>Q|<23b9%xoN^&`a>QW1P}d$!!79z=tVCl)Y{T zsTV{64Nw?7V;tpw7z<$B|D162VNtihNwZ136|UdpjnKvmH2f*Uo5U6!y%B z;v_<0uZ2@T31UhTn~7@L2-6w)*-HJ6Fq^>zLs;iNYT7v`cOXs1c-}gM38v#D+RpvX z04B4qUICeU9Q1Yr91a@z5FH03(X_Lu&Ok0wb+9=5SJs-*;RfuCDLRUaE#@?S{AD0W z(+7hYN4qQw>$9k`7&pOBZ-Vy!lzwuZ11WhP^XEdMDLjuit_zbW4%9?Y!E<=y1F@B7 zG&_EkPUGbQwLi*WtuR65x4}|Y096S}_0>lCxqeCh1Y8j{;$=A165G1GwV?=4r$&?+ zsj>|!LIV$2eW8>@)pD-&*;MPL@hRLtC)bvD!1Xgk{4@?&w_sJk9a?&sL)zcc3;jX4GO{zL!WcLQ(K6x0|Y`^M5C5Nc`!>^mC&6=S2OE zBu_$u25fQqIT1Z+v0136sJK^6K3wNJiyB*Nh3mE7Bye*tNNHhgsc25}Be24HC61^# zef_y!`b*!I{{wC7U^PY~?4_)+<%zSL<&-2}10Y|gTKioBOZmpTpyEEZ4X?Z3v5ls=YZ|S}8}j>LquK4a)aXl%9*PBz;s%ktvl{xucf=X=NON= zM#rrz$-PZ*OXxaA$F}x6hUZ$I?O3gD(>1MqPv0|`3(N8bSa0rG-PW83db4SCI+c~i zk0o%I)$A)1*0@nz0r|yXOJ9G(+mh&PSvMGw;$ecd3o%a=^^~~3UA+85sou^f38k4$ z68zZ|gNn@u6@^a{zfMJaV(Q?p1>qi>JF>CnMd>3BtZ6y2cr8e48kg>`xBgBB%O8#(oC341eHF8 zZy`R3kK$7}KW$i21;JdL87AL+=bLlB^Y*H^EznCClALfX$O4kjAZ`g1oC%h)43cWO zBpgz|!Jefh@hqD**YRM{|5*JpCtuoS1Ggd83Oj#~C%gO?CA?e$nE)pVe zTTx|1P?pb2A#*x97eYB+6Nya;45R+FL@uzv@leyoo}x9eK^won=u2=1p)|u~30_S< zRqW_10{InHlF<}YLb;sKa!zw9D9-2?`RFbzaaIz^v5#F=d8)*Mx-iL8VxNKGRM?Y( z$s%=Or!!J@lQoOOTo9h)EcQv6a#{$+BMEig6%lo{)roz!O{?hW5^STxKo=Ahvdr>qBy#h9T#-xcxB#3C5oh@nf8vqx9p+zyrVsDqPHET$c&O>JpXeCjkoh*mIgSM u6QTz1SL?MQc3sW9T^eZDHR$9>kLBfQ?UQq3zdLUIt5Y@7m~w+Q2>k|&lY5T< literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php new file mode 100644 index 000000000000..51ec0af87bb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php @@ -0,0 +1,57 @@ +internalAddGeneratedFile( + ' +� +3google/cloud/cloudcontrolspartner/v1beta/core.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protoGgoogle/cloud/cloudcontrolspartner/v1beta/access_approval_requests.protoAgoogle/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto8google/cloud/cloudcontrolspartner/v1beta/customers.proto>google/cloud/cloudcontrolspartner/v1beta/ekm_connections.protoBgoogle/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto7google/cloud/cloudcontrolspartner/v1beta/partners.protogoogle/protobuf/timestamp.proto"� +OperationMetadata4 + create_time ( 2.google.protobuf.TimestampB�A1 +end_time ( 2.google.protobuf.TimestampB�A +target ( B�A +verb ( B�A +status_message ( B�A# +requested_cancellation (B�A + api_version ( B�A2� +CloudControlsPartnerCore� + GetWorkload<.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest2.google.cloud.cloudcontrolspartner.v1beta.Workload"Q�Aname���DB/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}� + ListWorkloads>.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest?.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse"S�Aparent���DB/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads� + GetCustomer<.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest2.google.cloud.cloudcontrolspartner.v1beta.Customer"E�Aname���86/v1beta/{name=organizations/*/locations/*/customers/*}� + ListCustomers>.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest?.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse"G�Aparent���86/v1beta/{parent=organizations/*/locations/*}/customers� +GetEkmConnectionsB.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest8.google.cloud.cloudcontrolspartner.v1beta.EkmConnections"`�Aname���SQ/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}� +GetPartnerPermissionsF.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest<.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions"d�Aname���WU/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}� +ListAccessApprovalRequestsK.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequestL.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse"o��Aparent���][/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests� + +GetPartner;.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest1.google.cloud.cloudcontrolspartner.v1beta.Partner"A�Aname���42/v1beta/{name=organizations/*/locations/*/partner}W�A#cloudcontrolspartner.googleapis.com�A.https://www.googleapis.com/auth/cloud-platformB� +,com.google.cloud.cloudcontrolspartner.v1betaB CoreProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb�(Google.Cloud.CloudControlsPartner.V1Beta�(Google\\Cloud\\CloudControlsPartner\\V1beta�+Google::Cloud::CloudControlsPartner::V1beta�Am +8cloudcontrolspartner.googleapis.com/OrganizationLocation1organizations/{organization}/locations/{location}bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php new file mode 100644 index 0000000000000000000000000000000000000000..9e4b88c8dd9f247aa509baadadf62f47dd4f6107 GIT binary patch literal 3181 zcmbtWTXWh*6fWS{uk)>yUBs?w6y z$?)2j_D6I&edBJFJLj9n{+^F+C^h1dz+$AY z^bQoZM-)GxjM~&ydZXQ45-2tu`i@HiRZ%KUrP1st)k?i{9gc={6xc*l29yq5QnXz< z>dU81Jr+>&@0@5~7YOT^X$o4H} zb!!5+Tjs#>IR)I^xnBa|4TNmh3PYtFUGOZ%M{ke7K|XY}O`?F$eCnft>y{z8T*4h}Ky1kD3QauSaUgS; zHS|wEDv1k^af)j0+M%6%`?$Q;Dm}inz8KU1s@C zF^K#tYvS7D+4Yz>(d5}fB7iR=08wI)ltmW1N($uP&ZBf(Dfkka<3*TDD2YO*lzOM9 z@fDQWrEVYU)#>Mwu%F`lDf|#E+5v%!OpcgK!I#DLYieY4e4RRpj6AiB<|SHgF1{j# z`)D=h0+V_@Y6X4A8%Q&97X+{#1Ao+;YHUn%f+VsEub|JNmH8ed1N`{ckJ zTAno^L*g+LRR59KjGMc_b;MbecBu`dLA_jB>^wmW5vk=eu(7nRonJk*C22ALXA&($ zYkUIu5Z?>mF#CYkG_aMY&FaJmRW8#I_>6`VU}K)#)F2DP2fAI zyA}%>&7EqyTCX*Z33g25h0&>Q8`&hjhi;uMY}9pgyWTMLdMBI0U!m(~i?@tMb`E#f z(2cX@%8kzRPIexv==KbPW}|6VpKNCrw7(MX^*<8mu1J9CLXuer^%JVlsfuw5;O}WL zusr9r2wqrxbM)`H7)KR8#LMxdJ;7$&sm8@PJz+Cmj&En;Ww@S>m-&AaXl2U@*|WI$ zw8>8+;3ix_^N=%;U{P^Be5WV>(^Y&vgD#B=tp)`~ro= z6_;9a9^qOpjy&KHd(Y~*oI+BCO#V5-H8OEu?7h-4Vv2lszGTRc(A799)7dgj_V}f&&0aRD5n0mQfH4Ia4aRJGaoAuh$Hi#ul|0E${=x}EJN>@%yl49U!C0_m@ z+fdZ(0JJ!urw_frN%7pv2iPg%@_QSn@tNQIJ6WiSxmPXoWAa&!2I{C=sB-Ro8;f?M z8Ckxjgu5^$^YQzA@{R=7G=Utwrld7ZO84ePBY&_qnUL^5s7{+#*u{V&WBBf3)ET%JcX_2Qc2T%ybU-7skw#RlmosMQ)NnSfU$XcX2sq3t)zS!GR0^gA+fY=N>sRoLKE@9oIF~0Usn;`+n{7KKtnX@K`7_8~I;2c2l3nSOZ9%S6%;&v0WAr3Idj*nl6eICNG<1-|@-?SY^ zfyXfkVC>KdJXE|5Rm|A-W=I4shfr78jiC}S*{y&h8aTdPN6e!*9?{@H)*T0!&7bTQ_*Ft|A7SK=s_4{tjtRA_ zi(Op=`6t&NO8UFD*IOHA*94b*6a(BBy+P|2G)H=X1!K4~4Ojch4t@F+PWn+9jppzl z2@)6QfW`3L0)M;*KL4-mHHym9l)P8hC7zm!_xpQE4kyGVn!u`#!2W~v)6cOR#-u?> zfDe-Z@Pi- zF$@6YD^9*efrLJ1ybm_V*cZYh!IIrf8P`FU&=I0T_bh)!cQRG@F$JzKRm?&G3^E$v zVvC~cjOc0k@;xl=T6zsf4VidAu!(U&1!;8UDSokvyK3J6(g+?E2FpfgWi0yLY|E4ng zBA8(UAVh%jVSL&pN4CoQI<%Gob1s&~eQ-7Yjw|g|PU`&ro6{4pv*08}M^bIO{Dn^S zR_!yFBwrrs!b7kjx3LR$`h!My_^93QHfpV-R-?Z2jv)K?HDm=lw{@eK{Hkb7KTixDUusa~b; usKAybBPX{dYs*sB?xv*1{af?T;9WIkEDR-ao3XcIAd!}8Y?y%=0Dl83NPn3C literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php new file mode 100644 index 0000000000000000000000000000000000000000..db2ac065e3923aea807ade21e8b264dcdc9a2650 GIT binary patch literal 1970 zcmb_dPjAyO6sIj9Y8cxBh=DkmfkY4^5d#S+V?$}1l}gZ7ZQ+0-6*qA^vosEl0|L}< z!hr)P;FItvICJ672|G^zQX~ZQ;JEgCzxT(#_ujqx(Ln^Rz$y+gLmd0C_Zsp83?oK4 z^=JTlNxzR7^yn}m0cHk-l?JRgI?$=qI+ulNOcUl|3l1n91laTfn)qtnbZ6aXO_Vj=2bSZ$Ub2|*umpn$v)A@9OI3SulEewFPfVd^H7 z3XRai`gN!#+iWKd_v71eqHIXs57IMr&6u1=}dyGV!vZfHVtO4eeT+0*vdS+I_ zkv`OwkCyd|le>_!1kYNBkYS#%a3}R!0*od*cS#cMh`9R%2Yv}3pqGR)%bG?t1^Jz7 z3ujNgR4Yxz%{`I@Zu|Zu&V4}~ed3w)^BVYG1bhF+7)@9DM#?y~E^xz8jJtRtvxFjI zvMdTkyUllbaC)9H+B!HYxww&oIlWjae6>$#O|ZJa+KoIc=qI=D8h`49F=xg4ko#u8 z&w=gK`9-%Crtmg4MBSNlnz8nrvH=Ro8^L8!KIYrmzaulC-uPm?9hqJdb2`LKNRPK8 z^A%->0Y$zz9B)UmIA_Xd(+3+>%;z0w;TH*xx%OZ#Pu5pE|HHoXHxX@qE`XIe8`^oW zDw2}5i0+PmfuI<;H%Gwca1r+TkcI}~Edg!d>1lLzYFYiu|@>&rbb6TxNYpoy*uQ#36 zqguNy;VMpDVjL}f%7ZPz%RkO{>CD{Y#%Y&q=AJ%Nl{>B=!Sn%LJ~>1wWW!@wy+pm8 z<;NfMdNrLNMp@1ewThglQ>m$@lA-3um$9gu%^LMt5O&41ku&UD{)Pg!tQ0x>EJ$0H glI|T(N8IgelODLGdihN2|83h(B~^1Cfe`>d0R%^)1poj5 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php new file mode 100644 index 000000000000..7204776e3f35 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +� +9google/cloud/cloudcontrolspartner/v1beta/monitoring.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.proto9google/cloud/cloudcontrolspartner/v1beta/violations.proto2� +CloudControlsPartnerMonitoring� +ListViolations?.google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest@.google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse"`�Aparent���QO/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations� + GetViolation=.google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest3.google.cloud.cloudcontrolspartner.v1beta.Violation"^�Aname���QO/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}W�A#cloudcontrolspartner.googleapis.com�A.https://www.googleapis.com/auth/cloud-platformB� +,com.google.cloud.cloudcontrolspartner.v1betaBMonitoringProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb�(Google.Cloud.CloudControlsPartner.V1Beta�(Google\\Cloud\\CloudControlsPartner\\V1beta�+Google::Cloud::CloudControlsPartner::V1betabproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php new file mode 100644 index 0000000000000000000000000000000000000000..0e9caaf8f375e0eb125a5cb6cb576163d26c8b4e GIT binary patch literal 1849 zcmbtV(Tw2rb1*;cA5wwnrL7NM+x0^TSQ62W-v9hGJ1 zFr;cC|4&s_>T`dgUyJ_pW zSCGT=qaF`F1|Uh}qJXYQ=q?k0*8uV>FGnd(V8LR>Z})K#;S4hzr}z~w{RB?pv_KqY zJ$6!N3FA~@wZX{})O`R2W)*usC%jcBa8A{&y2m>gS{Xw$i_@@=iiF~v5$f_#Rh=TX z=y~;|`=Ci%!Qlz)3XZC}M)CwQTB57jA*6_vG&`<&R{*ocEZopYEyv+0M(MbRF5;J% zP*q)4wFLRtRu45tzHwLGio?gaDO?+m7j>R;0d*J5DxUk`znh@<`O1;H0ziICskKifcBmyUD`Y*)J6X~9PMGrwzBdUw&)K zpGrnv&n7QLyZ5dIz;Y?w19x1*8(6+?Id(L(eb>;fQ_JXgu1QDWP}6n8_oKkm_#4eL zZ2eiJ+5N~E7@jFsBI3+3{Z31QU{~|~p=b1?r;hjJ%+dOOG;nMya6HR4J8fwf>@=X7 z>w3<)b{2WY&qKox{LYs25QO{d0LGI+q&v24=t0HO542$DcebTR;9wKMic91VUDxq~ zNY{KLI=76chS#~S{?&S`{m}y7*GIZ~n4-h{3=5e%ld|4NDI;_mXZRKW(z(GXudgm= zN=lOXi}`e>BxS+KC89ifKAkDQ5&BC?;xT_XpU&nMwmh6-F9o|MV(Uaa^lOO0E#g@3ZrdUw~E)h6Y(p1%+u&0Ms+ol~;ezH=c*(-T|DA`1jopjeN^r;xzxtKDZ9f#is#+sAx0PsB715&` c^{6t3-*ka4KY3Lz6!bebZ?2(lJ|3U$*ItrOd|8e+>o0ihMkdUxzhv))-| zXORH;ak$|Og5c@D;9^;Q&IB{`=8TLZ_hG%&IM_!m9?)<6kD2;rENd$#M zJMvNGHdL6x_Etru z1S={=%lah91ITEK=1+%^B9_u#Q=%O60f${@wr&zffRCMLC*MnQC2- zlBtxrbweNF#kfj!>Pn?s-|4@kW_h`*EXz+BZ2wUJ>so@wRj?*RUCzN=WusQOurC|? zU@bXMlX3wTD#g8BbJdv4-g#;qgDdEK;wB_ag)o!ynnd|=b(H$~B^qrG*V^7bjX+C)qvcG1g}tJtvrRnYqvcK$DW_kYEdZOuQOf`c3%uF3UuGC|}*x>_9%)bx$ rI||scB(i=iSX-8|9$u17b$@4eA>LI(VQz+ec78}pb<0n|6o7vK`8lYJ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php new file mode 100644 index 0000000000000000000000000000000000000000..4cd9be1697c0589a474a8ecd05d9acad17531b93 GIT binary patch literal 3506 zcmb_fPjlN;5XW|t#_P06)uuHW288KMT}Z8|(+(NvLy zBnQ%rk6gI$F__^Sz=7e+iI31L{Rlm=@9B?K$AzTD2l?q~|NeI0?!M0-I{OZM#5agV zT-7H!-#_C0eZo7g?c17d^8L|ZKwMt44;;fJZi(kNBz{|xd2ypDe~7G}J#sZt;fJ<8 zG>M>@_DBz&nr->6ZF-LC`Y2vFyxk|hDjXWNsrrU(c_pR=z)}wgQfY*5v};>PqpQB! zYcPSmIu#f^rv&zPZ`Y9cK7eMbp2zRTg5el={5hk(X=uFXqdJYhZg`4e8NQ*K#xwNv z0Y6Ypk0AR=+QG=usEIsfkSvW9Z}NdmN_*Y05t#>kWMZ3wg+TS1mQP$uHG3Px(_F*x zZMTi2mCBI#F~oGIcr#Q>#Tf&>7}!{;oG|hM@4F+C)XwuR@kg$8pV>_XjN?^r27pz^ z=xrLr)N5p4MeyB9W#ZLD$m>`;B#iK>xnekE1LNwe2hQm=%0~_fU_4Y2w^@cV^lyD( zgjiQ~J%)A@Q?wX^L7}+;KdivLH_lD27_gRDS_jXmEGz|Sz4~sbM0E_o4KWK6eD#Cy z6H9l@6Ty#w2?m}BUD@U8Ic1<1yk&0T_X^t9wte5#nOWu8|TxIE>Y#qzz#=KqXBDMqT)r2+z%ijcQ#OQAK)G*ru1 zY#G=kb z46|$Xuk(;gY;r?bG%OF#JF7h&3v#a9dP`lUW ztI&jGiF2_my{#DuPw6QSAowu@i%I)92QCj;n6Xx$fTH`hHY8P*8cYx8!WBHyn7iav zmGmIx%JToJvK}Z}eFXEN_G_>d`il`cP%WK?okrpUJp;sv0)rt_bsf8xjr~P24eP0g zfkDF6FX4PBmb(Irkt-wDIIE<>A8A;ciW0}edmV8Ln|)PoO52LO*A|tX?QUDFH#eK& z#_~Jd8WfWhHA!lT)on%UG?cc~YS#CZ-KNxH?8_yx7ykf zyR$jd+^4X9f^$RMMkD@}F~e;_Ey>ssyK<*lmzDaK_*kiT_S&+fJQnwqc1L<7*5%h2 zaE>d$`%`kHolad$xHngL40EjTa4T@BD_7-duohtf^-HZ?gf7Kh1lZY*-_scLtoU_Z zY*VP0GnL;{FRH(#;1m{i8f>T;cW_EJVGSHK$y8B`OBAE@E9pIaocJ z%EC`6xH|2t=OEC8Yd``YcD!@t^+?nidK$X5WRdTECE*)u_vlt`WVuAu_SL>gD>fE} z!V|dMAQS8(=20! v0>PCElN|m{QCBJfb$_1CTI)CB$#g9k>JxVWI_?google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest + */ +class AccessApprovalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The time at which approval was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The justification for which approval is being requested. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + */ + protected $requested_reason = null; + /** + * The requested expiration for the approval. If the request is approved, + * access will be granted from the time of approval until the expiration time. + * + * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; + */ + protected $requested_expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * @type \Google\Protobuf\Timestamp $request_time + * The time at which approval was requested. + * @type \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $requested_reason + * The justification for which approval is being requested. + * @type \Google\Protobuf\Timestamp $requested_expiration_time + * The requested expiration for the approval. If the request is approved, + * access will be granted from the time of approval until the expiration time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time at which approval was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which approval was requested. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The justification for which approval is being requested. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + * @return \Google\Cloud\CloudControlsPartner\V1beta\AccessReason|null + */ + public function getRequestedReason() + { + return $this->requested_reason; + } + + public function hasRequestedReason() + { + return isset($this->requested_reason); + } + + public function clearRequestedReason() + { + unset($this->requested_reason); + } + + /** + * The justification for which approval is being requested. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; + * @param \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $var + * @return $this + */ + public function setRequestedReason($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason::class); + $this->requested_reason = $var; + + return $this; + } + + /** + * The requested expiration for the approval. If the request is approved, + * access will be granted from the time of approval until the expiration time. + * + * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestedExpirationTime() + { + return $this->requested_expiration_time; + } + + public function hasRequestedExpirationTime() + { + return isset($this->requested_expiration_time); + } + + public function clearRequestedExpirationTime() + { + unset($this->requested_expiration_time); + } + + /** + * The requested expiration for the approval. If the request is approved, + * access will be granted from the time of approval until the expiration time. + * + * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestedExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->requested_expiration_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php new file mode 100644 index 000000000000..749bbd5e9e97 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php @@ -0,0 +1,101 @@ +google.cloud.cloudcontrolspartner.v1beta.AccessReason + */ +class AccessReason extends \Google\Protobuf\Internal\Message +{ + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; + */ + protected $type = 0; + /** + * More detail about certain reason types. See comments for each type above. + * + * Generated from protobuf field string detail = 2; + */ + protected $detail = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of access justification. + * @type string $detail + * More detail about certain reason types. See comments for each type above. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of access justification. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason\Type::class); + $this->type = $var; + + return $this; + } + + /** + * More detail about certain reason types. See comments for each type above. + * + * Generated from protobuf field string detail = 2; + * @return string + */ + public function getDetail() + { + return $this->detail; + } + + /** + * More detail about certain reason types. See comments for each type above. + * + * Generated from protobuf field string detail = 2; + * @param string $var + * @return $this + */ + public function setDetail($var) + { + GPBUtil::checkString($var, True); + $this->detail = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php new file mode 100644 index 000000000000..02d25f921413 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php @@ -0,0 +1,109 @@ +google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type + */ +class Type +{ + /** + * Default value for proto, shouldn't be used. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Customer made a request or raised an issue that required the principal to + * access customer data. `detail` is of the form ("#####" is the issue ID): + * - "Feedback Report: #####" + * - "Case Number: #####" + * - "Case ID: #####" + * - "E-PIN Reference: #####" + * - "Google-#####" + * - "T-#####" + * + * Generated from protobuf enum CUSTOMER_INITIATED_SUPPORT = 1; + */ + const CUSTOMER_INITIATED_SUPPORT = 1; + /** + * The principal accessed customer data in order to diagnose or resolve a + * suspected issue in services. Often this access is used to confirm that + * customers are not affected by a suspected service issue or to remediate a + * reversible system issue. + * + * Generated from protobuf enum GOOGLE_INITIATED_SERVICE = 2; + */ + const GOOGLE_INITIATED_SERVICE = 2; + /** + * Google initiated service for security, fraud, abuse, or compliance + * purposes. + * + * Generated from protobuf enum GOOGLE_INITIATED_REVIEW = 3; + */ + const GOOGLE_INITIATED_REVIEW = 3; + /** + * The principal was compelled to access customer data in order to respond + * to a legal third party data request or process, including legal processes + * from customers themselves. + * + * Generated from protobuf enum THIRD_PARTY_DATA_REQUEST = 4; + */ + const THIRD_PARTY_DATA_REQUEST = 4; + /** + * The principal accessed customer data in order to diagnose or resolve a + * suspected issue in services or a known outage. + * + * Generated from protobuf enum GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; + */ + const GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; + /** + * Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but + * with universe agnostic naming. The principal accessed customer data in + * order to diagnose or resolve a suspected issue in services or a known + * outage, or for security, fraud, abuse, or compliance review purposes. + * + * Generated from protobuf enum CLOUD_INITIATED_ACCESS = 6; + */ + const CLOUD_INITIATED_ACCESS = 6; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::CUSTOMER_INITIATED_SUPPORT => 'CUSTOMER_INITIATED_SUPPORT', + self::GOOGLE_INITIATED_SERVICE => 'GOOGLE_INITIATED_SERVICE', + self::GOOGLE_INITIATED_REVIEW => 'GOOGLE_INITIATED_REVIEW', + self::THIRD_PARTY_DATA_REQUEST => 'THIRD_PARTY_DATA_REQUEST', + self::GOOGLE_RESPONSE_TO_PRODUCTION_ALERT => 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT', + self::CLOUD_INITIATED_ACCESS => 'CLOUD_INITIATED_ACCESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason_Type::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php new file mode 100644 index 000000000000..fd149c354a3e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php @@ -0,0 +1,75 @@ +google.cloud.cloudcontrolspartner.v1beta.CompletionState + */ +class CompletionState +{ + /** + * Unspecified completion state. + * + * Generated from protobuf enum COMPLETION_STATE_UNSPECIFIED = 0; + */ + const COMPLETION_STATE_UNSPECIFIED = 0; + /** + * Task started (has start date) but not yet completed. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * Succeeded state. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * Failed state. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Not applicable state. + * + * Generated from protobuf enum NOT_APPLICABLE = 4; + */ + const NOT_APPLICABLE = 4; + + private static $valueToName = [ + self::COMPLETION_STATE_UNSPECIFIED => 'COMPLETION_STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::NOT_APPLICABLE => 'NOT_APPLICABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php new file mode 100644 index 000000000000..30e58e7966ae --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php @@ -0,0 +1,183 @@ +google.cloud.cloudcontrolspartner.v1beta.Customer + */ +class Customer extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Display name for the customer + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_onboarding_state = null; + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_onboarded = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * @type string $display_name + * Required. Display name for the customer + * @type \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $customer_onboarding_state + * Output only. Container for customer onboarding steps + * @type bool $is_onboarded + * Output only. Indicates whether a customer is fully onboarded + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Display name for the customer + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name for the customer + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState|null + */ + public function getCustomerOnboardingState() + { + return $this->customer_onboarding_state; + } + + public function hasCustomerOnboardingState() + { + return isset($this->customer_onboarding_state); + } + + public function clearCustomerOnboardingState() + { + unset($this->customer_onboarding_state); + } + + /** + * Output only. Container for customer onboarding steps + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $var + * @return $this + */ + public function setCustomerOnboardingState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState::class); + $this->customer_onboarding_state = $var; + + return $this; + } + + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsOnboarded() + { + return $this->is_onboarded; + } + + /** + * Output only. Indicates whether a customer is fully onboarded + * + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsOnboarded($var) + { + GPBUtil::checkBool($var); + $this->is_onboarded = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php new file mode 100644 index 000000000000..d71f9c029eb1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php @@ -0,0 +1,67 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState + */ +class CustomerOnboardingState extends \Google\Protobuf\Internal\Message +{ + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + */ + private $onboarding_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps + * List of customer onboarding steps + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOnboardingSteps() + { + return $this->onboarding_steps; + } + + /** + * List of customer onboarding steps + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOnboardingSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep::class); + $this->onboarding_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php new file mode 100644 index 000000000000..bccf8c9fd75e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php @@ -0,0 +1,189 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep + */ +class CustomerOnboardingStep extends \Google\Protobuf\Internal\Message +{ + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + */ + protected $step = 0; + /** + * The starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + */ + protected $completion_time = null; + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The onboarding step + * @type \Google\Protobuf\Timestamp $start_time + * The starting time of the onboarding step + * @type \Google\Protobuf\Timestamp $completion_time + * The completion time of the onboarding step + * @type int $completion_state + * Output only. Current state of the step + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The onboarding step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep\Step::class); + $this->step = $var; + + return $this; + } + + /** + * The starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The starting time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCompletionTime() + { + return $this->completion_time; + } + + public function hasCompletionTime() + { + return isset($this->completion_time); + } + + public function clearCompletionTime() + { + unset($this->completion_time); + } + + /** + * The completion time of the onboarding step + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCompletionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->completion_time = $var; + + return $this; + } + + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompletionState() + { + return $this->completion_state; + } + + /** + * Output only. Current state of the step + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompletionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); + $this->completion_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php new file mode 100644 index 000000000000..bdfd00ad05df --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php @@ -0,0 +1,64 @@ +google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step + */ +class Step +{ + /** + * Unspecified step + * + * Generated from protobuf enum STEP_UNSPECIFIED = 0; + */ + const STEP_UNSPECIFIED = 0; + /** + * KAJ Enrollment + * + * Generated from protobuf enum KAJ_ENROLLMENT = 1; + */ + const KAJ_ENROLLMENT = 1; + /** + * Customer Environment + * + * Generated from protobuf enum CUSTOMER_ENVIRONMENT = 2; + */ + const CUSTOMER_ENVIRONMENT = 2; + + private static $valueToName = [ + self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', + self::KAJ_ENROLLMENT => 'KAJ_ENROLLMENT', + self::CUSTOMER_ENVIRONMENT => 'CUSTOMER_ENVIRONMENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep_Step::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php new file mode 100644 index 000000000000..c6499a11c4c7 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php @@ -0,0 +1,149 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection + */ +class EkmConnection extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + */ + protected $connection_name = ''; + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $connection_state = 0; + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + */ + protected $connection_error = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $connection_name + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * @type int $connection_state + * Output only. The connection state + * @type \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $connection_error + * The connection error that occurred if any + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + * @return string + */ + public function getConnectionName() + { + return $this->connection_name; + } + + /** + * Resource name of the EKM connection in the format: + * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} + * + * Generated from protobuf field string connection_name = 1; + * @param string $var + * @return $this + */ + public function setConnectionName($var) + { + GPBUtil::checkString($var, True); + $this->connection_name = $var; + + return $this; + } + + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getConnectionState() + { + return $this->connection_state; + } + + /** + * Output only. The connection state + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setConnectionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionState::class); + $this->connection_state = $var; + + return $this; + } + + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + * @return \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError|null + */ + public function getConnectionError() + { + return $this->connection_error; + } + + public function hasConnectionError() + { + return isset($this->connection_error); + } + + public function clearConnectionError() + { + unset($this->connection_error); + } + + /** + * The connection error that occurred if any + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; + * @param \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $var + * @return $this + */ + public function setConnectionError($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError::class); + $this->connection_error = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php new file mode 100644 index 000000000000..9aca53df2b73 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError + */ +class ConnectionError extends \Google\Protobuf\Internal\Message +{ + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + */ + protected $error_domain = ''; + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $error_domain + * The error domain for the error + * @type string $error_message + * The error message for the error + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + * @return string + */ + public function getErrorDomain() + { + return $this->error_domain; + } + + /** + * The error domain for the error + * + * Generated from protobuf field string error_domain = 1; + * @param string $var + * @return $this + */ + public function setErrorDomain($var) + { + GPBUtil::checkString($var, True); + $this->error_domain = $var; + + return $this; + } + + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * The error message for the error + * + * Generated from protobuf field string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConnectionError::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionError::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php new file mode 100644 index 000000000000..cb82ba238616 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php @@ -0,0 +1,78 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState + */ +class ConnectionState +{ + /** + * Unspecified EKM connection state + * + * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; + */ + const CONNECTION_STATE_UNSPECIFIED = 0; + /** + * Available EKM connection state + * + * Generated from protobuf enum AVAILABLE = 1; + */ + const AVAILABLE = 1; + /** + * Not available EKM connection state + * + * Generated from protobuf enum NOT_AVAILABLE = 2; + */ + const NOT_AVAILABLE = 2; + /** + * Error EKM connection state + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + /** + * Permission denied EKM connection state + * + * Generated from protobuf enum PERMISSION_DENIED = 4; + */ + const PERMISSION_DENIED = 4; + + private static $valueToName = [ + self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', + self::AVAILABLE => 'AVAILABLE', + self::NOT_AVAILABLE => 'NOT_AVAILABLE', + self::ERROR => 'ERROR', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConnectionState::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionState::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php new file mode 100644 index 000000000000..7394d8a0c25d --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmConnections + */ +class EkmConnections extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + */ + private $ekm_connections; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $ekm_connections + * The EKM connections associated with the workload + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEkmConnections() + { + return $this->ekm_connections; + } + + /** + * The EKM connections associated with the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEkmConnections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection::class); + $this->ekm_connections = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php new file mode 100644 index 000000000000..0f9d50a25cb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmMetadata + */ +class EkmMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + */ + protected $ekm_solution = 0; + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + */ + protected $ekm_endpoint_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $ekm_solution + * The Cloud EKM partner. + * @type string $ekm_endpoint_uri + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + * @return int + */ + public function getEkmSolution() + { + return $this->ekm_solution; + } + + /** + * The Cloud EKM partner. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; + * @param int $var + * @return $this + */ + public function setEkmSolution($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata\EkmSolution::class); + $this->ekm_solution = $var; + + return $this; + } + + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + * @return string + */ + public function getEkmEndpointUri() + { + return $this->ekm_endpoint_uri; + } + + /** + * Endpoint for sending requests to the EKM for key provisioning during + * Assured Workload creation. + * + * Generated from protobuf field string ekm_endpoint_uri = 2; + * @param string $var + * @return $this + */ + public function setEkmEndpointUri($var) + { + GPBUtil::checkString($var, True); + $this->ekm_endpoint_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php new file mode 100644 index 000000000000..38cd6012fc5c --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php @@ -0,0 +1,80 @@ +google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution + */ +class EkmSolution +{ + /** + * Unspecified EKM solution + * + * Generated from protobuf enum EKM_SOLUTION_UNSPECIFIED = 0; + */ + const EKM_SOLUTION_UNSPECIFIED = 0; + /** + * EKM Partner Fortanix + * + * Generated from protobuf enum FORTANIX = 1; + */ + const FORTANIX = 1; + /** + * EKM Partner FutureX + * + * Generated from protobuf enum FUTUREX = 2; + */ + const FUTUREX = 2; + /** + * EKM Partner Thales + * + * Generated from protobuf enum THALES = 3; + */ + const THALES = 3; + /** + * EKM Partner Virtu + * + * Generated from protobuf enum VIRTRU = 4; + */ + const VIRTRU = 4; + + private static $valueToName = [ + self::EKM_SOLUTION_UNSPECIFIED => 'EKM_SOLUTION_UNSPECIFIED', + self::FORTANIX => 'FORTANIX', + self::FUTUREX => 'FUTUREX', + self::THALES => 'THALES', + self::VIRTRU => 'VIRTRU', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EkmSolution::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata_EkmSolution::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php new file mode 100644 index 000000000000..d1ae3b4b2209 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest + */ +class GetCustomerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetCustomerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php new file mode 100644 index 000000000000..6381546761ca --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest + */ +class GetEkmConnectionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * Please see {@see CloudControlsPartnerCoreClient::ekmConnectionsName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetEkmConnectionsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php new file mode 100644 index 000000000000..158f69da500b --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest + */ +class GetPartnerPermissionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * Please see {@see CloudControlsPartnerCoreClient::partnerPermissionsName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerPermissionsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the resource to get in the format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php new file mode 100644 index 000000000000..603cedb4779e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest + */ +class GetPartnerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * Please see {@see CloudControlsPartnerCoreClient::partnerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/partner` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php new file mode 100644 index 000000000000..129ad52806bf --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest + */ +class GetViolationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * Please see {@see CloudControlsPartnerMonitoringClient::violationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetViolationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php new file mode 100644 index 000000000000..bf359b185d58 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php @@ -0,0 +1,86 @@ +google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest + */ +class GetWorkloadRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\GetWorkloadRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php new file mode 100644 index 000000000000..a288ad168456 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php @@ -0,0 +1,243 @@ +google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest + */ +class ListAccessApprovalRequestsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int $page_size + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * @type string $filter + * Optional. Filtering results. + * @type string $order_by + * Optional. Hint for how to order the results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of access requests to return. The service may + * return fewer than this value. If unspecified, at most 500 access requests + * will be returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent + * page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php new file mode 100644 index 000000000000..4e257b26bee2 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse + */ +class ListAccessApprovalRequestsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + */ + private $access_approval_requests; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $access_approval_requests + * List of access approval requests + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); + parent::__construct($data); + } + + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessApprovalRequests() + { + return $this->access_approval_requests; + } + + /** + * List of access approval requests + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessApprovalRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest::class); + $this->access_approval_requests = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php new file mode 100644 index 000000000000..e5bec2eab2cd --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php @@ -0,0 +1,230 @@ +google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest + */ +class ListCustomersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * Please see {@see CloudControlsPartnerCoreClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListCustomersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * @type int $page_size + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * @type string $page_token + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. Filtering results + * @type string $order_by + * Optional. Hint for how to order the results + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource + * Format: `organizations/{organization}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of Customers to return. The service may return fewer + * than this value. If unspecified, at most 500 Customers will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListCustomers` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php new file mode 100644 index 000000000000..fd4717f8acc4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse + */ +class ListCustomersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + */ + private $customers; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $customers + * List of customers + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); + parent::__construct($data); + } + + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomers() + { + return $this->customers; + } + + /** + * List of customers + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Customer::class); + $this->customers = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php new file mode 100644 index 000000000000..02890b69ad17 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php @@ -0,0 +1,287 @@ +google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest + */ +class ListViolationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListViolations` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $interval = null; + + /** + * @param string $parent Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * Please see {@see CloudControlsPartnerMonitoringClient::workloadName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListViolationsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int $page_size + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * @type string $page_token + * Optional. A page token, received from a previous `ListViolations` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. Filtering results + * @type string $order_by + * Optional. Hint for how to order the results + * @type \Google\Type\Interval $interval + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource + * Format + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of customers row to return. The service may + * return fewer than this value. If unspecified, at most 10 customers will be + * returned. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListViolations` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListViolations` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Hint for how to order the results + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Interval|null + */ + public function getInterval() + { + return $this->interval; + } + + public function hasInterval() + { + return isset($this->interval); + } + + public function clearInterval() + { + unset($this->interval); + } + + /** + * Optional. Specifies the interval for retrieving violations. + * if unspecified, all violations will be returned. + * + * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInterval($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->interval = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php new file mode 100644 index 000000000000..d6d5892a6aa9 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php @@ -0,0 +1,143 @@ +google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse + */ +class ListViolationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + */ + private $violations; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $violations + * List of violation + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getViolations() + { + return $this->violations; + } + + /** + * List of violation + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Violation::class); + $this->violations = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Workloads that could not be reached due to permission errors or any other + * error. Ref: https://google.aip.dev/217 + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php new file mode 100644 index 000000000000..5f150ef9c1ef --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php @@ -0,0 +1,235 @@ +google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest + */ +class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. + * + * @return \Google\Cloud\CloudControlsPartner\V1beta\ListWorkloadsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * @type int $page_size + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * @type string $page_token + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * @type string $filter + * Optional. Filtering results. + * @type string $order_by + * Optional. Hint for how to order the results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of workloads to return. The service may return fewer + * than this value. If unspecified, at most 500 workloads will be returned. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListWorkloads` call. + * Provide this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Hint for how to order the results. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php new file mode 100644 index 000000000000..56683381ab44 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php @@ -0,0 +1,139 @@ +google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse + */ +class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + */ + private $workloads; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads + * List of customer workloads + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWorkloads() + { + return $this->workloads; + } + + /** + * List of customer workloads + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWorkloads($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Workload::class); + $this->workloads = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php new file mode 100644 index 000000000000..31d052f949a4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.cloudcontrolspartner.v1beta.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. Human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Core::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have been cancelled successfully + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php new file mode 100644 index 000000000000..73c989a106bf --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php @@ -0,0 +1,311 @@ +google.cloud.cloudcontrolspartner.v1beta.Partner + */ +class Partner extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + */ + private $skus; + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + */ + private $ekm_solutions; + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + */ + private $operated_cloud_regions; + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + */ + protected $partner_project_id = ''; + /** + * Output only. Time the resource was created + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last time the resource was updated + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $skus + * List of SKUs the partner is offering + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $ekm_solutions + * List of Google Cloud supported EKM partners supported by the partner + * @type array|\Google\Protobuf\Internal\RepeatedField $operated_cloud_regions + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * @type string $partner_project_id + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the resource was created + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last time the resource was updated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the partner. + * Format: `organizations/{organization}/locations/{location}/partner` + * Example: "organizations/123456/locations/us-central1/partner" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkus() + { + return $this->skus; + } + + /** + * List of SKUs the partner is offering + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkus($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Sku::class); + $this->skus = $arr; + + return $this; + } + + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEkmSolutions() + { + return $this->ekm_solutions; + } + + /** + * List of Google Cloud supported EKM partners supported by the partner + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEkmSolutions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata::class); + $this->ekm_solutions = $arr; + + return $this; + } + + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperatedCloudRegions() + { + return $this->operated_cloud_regions; + } + + /** + * List of Google Cloud regions that the partner sells services to customers. + * Valid Google Cloud regions found here: + * https://cloud.google.com/compute/docs/regions-zones + * + * Generated from protobuf field repeated string operated_cloud_regions = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperatedCloudRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->operated_cloud_regions = $arr; + + return $this; + } + + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + * @return string + */ + public function getPartnerProjectId() + { + return $this->partner_project_id; + } + + /** + * Google Cloud project ID in the partner's Google Cloud organization for + * receiving enhanced Logs for Partners. + * + * Generated from protobuf field string partner_project_id = 7; + * @param string $var + * @return $this + */ + public function setPartnerProjectId($var) + { + GPBUtil::checkString($var, True); + $this->partner_project_id = $var; + + return $this; + } + + /** + * Output only. Time the resource was created + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time the resource was created + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The last time the resource was updated + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last time the resource was updated + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php new file mode 100644 index 000000000000..d20811b7aaba --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php @@ -0,0 +1,105 @@ +google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions + */ +class PartnerPermissions extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + */ + private $partner_permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * @type array|\Google\Protobuf\Internal\RepeatedField $partner_permissions + * The partner permissions granted for the workload + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartnerPermissions() + { + return $this->partner_permissions; + } + + /** + * The partner permissions granted for the workload + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartnerPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions\Permission::class); + $this->partner_permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php new file mode 100644 index 000000000000..f3df3144b646 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php @@ -0,0 +1,83 @@ +google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission + */ +class Permission +{ + /** + * Unspecified partner permission + * + * Generated from protobuf enum PERMISSION_UNSPECIFIED = 0; + */ + const PERMISSION_UNSPECIFIED = 0; + /** + * Permission for Access Transparency and emergency logs + * + * Generated from protobuf enum ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; + */ + const ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; + /** + * Permission for Assured Workloads monitoring violations + * + * Generated from protobuf enum ASSURED_WORKLOADS_MONITORING = 2; + */ + const ASSURED_WORKLOADS_MONITORING = 2; + /** + * Permission for Access Approval requests + * + * Generated from protobuf enum ACCESS_APPROVAL_REQUESTS = 3; + */ + const ACCESS_APPROVAL_REQUESTS = 3; + /** + * Permission for External Key Manager connection status + * + * Generated from protobuf enum ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; + */ + const ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; + /** + * Permission for support case details for Access Transparency log entries + * + * Generated from protobuf enum ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; + */ + const ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; + + private static $valueToName = [ + self::PERMISSION_UNSPECIFIED => 'PERMISSION_UNSPECIFIED', + self::ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS => 'ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS', + self::ASSURED_WORKLOADS_MONITORING => 'ASSURED_WORKLOADS_MONITORING', + self::ACCESS_APPROVAL_REQUESTS => 'ACCESS_APPROVAL_REQUESTS', + self::ASSURED_WORKLOADS_EKM_CONNECTION_STATUS => 'ASSURED_WORKLOADS_EKM_CONNECTION_STATUS', + self::ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER => 'ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Permission::class, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions_Permission::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php new file mode 100644 index 000000000000..9fb94628a7cb --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php @@ -0,0 +1,117 @@ +google.cloud.cloudcontrolspartner.v1beta.Sku + */ +class Sku extends \Google\Protobuf\Internal\Message +{ + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * @type string $display_name + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); + parent::__construct($data); + } + + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Argentum product SKU, that is associated with the partner offerings to + * customers used by Syntro for billing purposes. SKUs can represent resold + * Google products or support services. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the product identified by the SKU. A partner may want to + * show partner branded names for their offerings such as local sovereign + * cloud solutions. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php new file mode 100644 index 000000000000..125282910530 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php @@ -0,0 +1,445 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Description for the Violation. + * e.g. OrgPolicy gcp.resourceLocations has non compliant value. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. Time of the event which triggered the Violation. + * + * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $begin_time = null; + /** + * Output only. The last time when the Violation record was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Time of the event which fixed the Violation. + * If the violation is ACTIVE this will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resolve_time = null; + /** + * Output only. Category under which this violation is mapped. + * e.g. Location, Service Usage, Access, Encryption, etc. + * + * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $category = ''; + /** + * Output only. State of the violation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Immutable. Name of the OrgPolicy which was modified with + * non-compliant change and resulted this violation. Format: + * `projects/{project_number}/policies/{constraint_name}` + * `folders/{folder_id}/policies/{constraint_name}` + * `organizations/{organization_id}/policies/{constraint_name}` + * + * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $non_compliant_org_policy = ''; + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + */ + protected $folder_id = 0; + /** + * Output only. Compliance violation remediation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remediation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * @type string $description + * Output only. Description for the Violation. + * e.g. OrgPolicy gcp.resourceLocations has non compliant value. + * @type \Google\Protobuf\Timestamp $begin_time + * Output only. Time of the event which triggered the Violation. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last time when the Violation record was updated. + * @type \Google\Protobuf\Timestamp $resolve_time + * Output only. Time of the event which fixed the Violation. + * If the violation is ACTIVE this will be empty. + * @type string $category + * Output only. Category under which this violation is mapped. + * e.g. Location, Service Usage, Access, Encryption, etc. + * @type int $state + * Output only. State of the violation + * @type string $non_compliant_org_policy + * Output only. Immutable. Name of the OrgPolicy which was modified with + * non-compliant change and resulted this violation. Format: + * `projects/{project_number}/policies/{constraint_name}` + * `folders/{folder_id}/policies/{constraint_name}` + * `organizations/{organization_id}/policies/{constraint_name}` + * @type int|string $folder_id + * The folder_id of the violation + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $remediation + * Output only. Compliance violation remediation + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Description for the Violation. + * e.g. OrgPolicy gcp.resourceLocations has non compliant value. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. Description for the Violation. + * e.g. OrgPolicy gcp.resourceLocations has non compliant value. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Time of the event which triggered the Violation. + * + * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBeginTime() + { + return $this->begin_time; + } + + public function hasBeginTime() + { + return isset($this->begin_time); + } + + public function clearBeginTime() + { + unset($this->begin_time); + } + + /** + * Output only. Time of the event which triggered the Violation. + * + * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBeginTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->begin_time = $var; + + return $this; + } + + /** + * Output only. The last time when the Violation record was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last time when the Violation record was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Time of the event which fixed the Violation. + * If the violation is ACTIVE this will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getResolveTime() + { + return $this->resolve_time; + } + + public function hasResolveTime() + { + return isset($this->resolve_time); + } + + public function clearResolveTime() + { + unset($this->resolve_time); + } + + /** + * Output only. Time of the event which fixed the Violation. + * If the violation is ACTIVE this will be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setResolveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->resolve_time = $var; + + return $this; + } + + /** + * Output only. Category under which this violation is mapped. + * e.g. Location, Service Usage, Access, Encryption, etc. + * + * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Output only. Category under which this violation is mapped. + * e.g. Location, Service Usage, Access, Encryption, etc. + * + * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * Output only. State of the violation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the violation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Immutable. Name of the OrgPolicy which was modified with + * non-compliant change and resulted this violation. Format: + * `projects/{project_number}/policies/{constraint_name}` + * `folders/{folder_id}/policies/{constraint_name}` + * `organizations/{organization_id}/policies/{constraint_name}` + * + * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getNonCompliantOrgPolicy() + { + return $this->non_compliant_org_policy; + } + + /** + * Output only. Immutable. Name of the OrgPolicy which was modified with + * non-compliant change and resulted this violation. Format: + * `projects/{project_number}/policies/{constraint_name}` + * `folders/{folder_id}/policies/{constraint_name}` + * `organizations/{organization_id}/policies/{constraint_name}` + * + * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setNonCompliantOrgPolicy($var) + { + GPBUtil::checkString($var, True); + $this->non_compliant_org_policy = $var; + + return $this; + } + + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + * @return int|string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * The folder_id of the violation + * + * Generated from protobuf field int64 folder_id = 9; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->folder_id = $var; + + return $this; + } + + /** + * Output only. Compliance violation remediation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation|null + */ + public function getRemediation() + { + return $this->remediation; + } + + public function hasRemediation() + { + return isset($this->remediation); + } + + public function clearRemediation() + { + unset($this->remediation); + } + + /** + * Output only. Compliance violation remediation + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $var + * @return $this + */ + public function setRemediation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation::class); + $this->remediation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php new file mode 100644 index 000000000000..54d44de4c703 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php @@ -0,0 +1,161 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation + */ +class Remediation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Remediation instructions to resolve violations + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instructions = null; + /** + * Values that can resolve the violation + * For example: for list org policy violations, this will either be the list + * of allowed or denied values + * + * Generated from protobuf field repeated string compliant_values = 2; + */ + private $compliant_values; + /** + * Output only. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remediation_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions $instructions + * Required. Remediation instructions to resolve violations + * @type array|\Google\Protobuf\Internal\RepeatedField $compliant_values + * Values that can resolve the violation + * For example: for list org policy violations, this will either be the list + * of allowed or denied values + * @type int $remediation_type + * Output only. Remediation type based on the type of org policy values + * violated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Required. Remediation instructions to resolve violations + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions|null + */ + public function getInstructions() + { + return $this->instructions; + } + + public function hasInstructions() + { + return isset($this->instructions); + } + + public function clearInstructions() + { + unset($this->instructions); + } + + /** + * Required. Remediation instructions to resolve violations + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions $var + * @return $this + */ + public function setInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions::class); + $this->instructions = $var; + + return $this; + } + + /** + * Values that can resolve the violation + * For example: for list org policy violations, this will either be the list + * of allowed or denied values + * + * Generated from protobuf field repeated string compliant_values = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCompliantValues() + { + return $this->compliant_values; + } + + /** + * Values that can resolve the violation + * For example: for list org policy violations, this will either be the list + * of allowed or denied values + * + * Generated from protobuf field repeated string compliant_values = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCompliantValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->compliant_values = $arr; + + return $this; + } + + /** + * Output only. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRemediationType() + { + return $this->remediation_type; + } + + /** + * Output only. Remediation type based on the type of org policy values + * violated + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRemediationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\RemediationType::class); + $this->remediation_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Remediation::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php new file mode 100644 index 000000000000..d2dc4c3979ba --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php @@ -0,0 +1,124 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions + */ +class Instructions extends \Google\Protobuf\Internal\Message +{ + /** + * Remediation instructions to resolve violation via gcloud cli + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; + */ + protected $gcloud_instructions = null; + /** + * Remediation instructions to resolve violation via cloud console + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; + */ + protected $console_instructions = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $gcloud_instructions + * Remediation instructions to resolve violation via gcloud cli + * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $console_instructions + * Remediation instructions to resolve violation via cloud console + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Remediation instructions to resolve violation via gcloud cli + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; + * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud|null + */ + public function getGcloudInstructions() + { + return $this->gcloud_instructions; + } + + public function hasGcloudInstructions() + { + return isset($this->gcloud_instructions); + } + + public function clearGcloudInstructions() + { + unset($this->gcloud_instructions); + } + + /** + * Remediation instructions to resolve violation via gcloud cli + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $var + * @return $this + */ + public function setGcloudInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud::class); + $this->gcloud_instructions = $var; + + return $this; + } + + /** + * Remediation instructions to resolve violation via cloud console + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; + * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console|null + */ + public function getConsoleInstructions() + { + return $this->console_instructions; + } + + public function hasConsoleInstructions() + { + return isset($this->console_instructions); + } + + public function clearConsoleInstructions() + { + unset($this->console_instructions); + } + + /** + * Remediation instructions to resolve violation via cloud console + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; + * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $var + * @return $this + */ + public function setConsoleInstructions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console::class); + $this->console_instructions = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Instructions::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php new file mode 100644 index 000000000000..c746d8a4efb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php @@ -0,0 +1,138 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console + */ +class Console extends \Google\Protobuf\Internal\Message +{ + /** + * Link to console page where violations can be resolved + * + * Generated from protobuf field repeated string console_uris = 1; + */ + private $console_uris; + /** + * Steps to resolve violation via cloud console + * + * Generated from protobuf field repeated string steps = 2; + */ + private $steps; + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + */ + private $additional_links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $console_uris + * Link to console page where violations can be resolved + * @type array|\Google\Protobuf\Internal\RepeatedField $steps + * Steps to resolve violation via cloud console + * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links + * Additional urls for more information about steps + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Link to console page where violations can be resolved + * + * Generated from protobuf field repeated string console_uris = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConsoleUris() + { + return $this->console_uris; + } + + /** + * Link to console page where violations can be resolved + * + * Generated from protobuf field repeated string console_uris = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConsoleUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->console_uris = $arr; + + return $this; + } + + /** + * Steps to resolve violation via cloud console + * + * Generated from protobuf field repeated string steps = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSteps() + { + return $this->steps; + } + + /** + * Steps to resolve violation via cloud console + * + * Generated from protobuf field repeated string steps = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->steps = $arr; + + return $this; + } + + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalLinks() + { + return $this->additional_links; + } + + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->additional_links = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Console::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Console::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php new file mode 100644 index 000000000000..e990db571e51 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php @@ -0,0 +1,138 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud + */ +class Gcloud extends \Google\Protobuf\Internal\Message +{ + /** + * Gcloud command to resolve violation + * + * Generated from protobuf field repeated string gcloud_commands = 1; + */ + private $gcloud_commands; + /** + * Steps to resolve violation via gcloud cli + * + * Generated from protobuf field repeated string steps = 2; + */ + private $steps; + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + */ + private $additional_links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $gcloud_commands + * Gcloud command to resolve violation + * @type array|\Google\Protobuf\Internal\RepeatedField $steps + * Steps to resolve violation via gcloud cli + * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links + * Additional urls for more information about steps + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); + parent::__construct($data); + } + + /** + * Gcloud command to resolve violation + * + * Generated from protobuf field repeated string gcloud_commands = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGcloudCommands() + { + return $this->gcloud_commands; + } + + /** + * Gcloud command to resolve violation + * + * Generated from protobuf field repeated string gcloud_commands = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGcloudCommands($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->gcloud_commands = $arr; + + return $this; + } + + /** + * Steps to resolve violation via gcloud cli + * + * Generated from protobuf field repeated string steps = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSteps() + { + return $this->steps; + } + + /** + * Steps to resolve violation via gcloud cli + * + * Generated from protobuf field repeated string steps = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->steps = $arr; + + return $this; + } + + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalLinks() + { + return $this->additional_links; + } + + /** + * Additional urls for more information about steps + * + * Generated from protobuf field repeated string additional_links = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->additional_links = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Gcloud::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Gcloud::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php new file mode 100644 index 000000000000..01ab1e0f7e75 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php @@ -0,0 +1,90 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType + */ +class RemediationType +{ + /** + * Unspecified remediation type + * + * Generated from protobuf enum REMEDIATION_TYPE_UNSPECIFIED = 0; + */ + const REMEDIATION_TYPE_UNSPECIFIED = 0; + /** + * Remediation type for boolean org policy + * + * Generated from protobuf enum REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; + */ + const REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; + /** + * Remediation type for list org policy which have allowed values in the + * monitoring rule + * + * Generated from protobuf enum REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; + */ + const REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; + /** + * Remediation type for list org policy which have denied values in the + * monitoring rule + * + * Generated from protobuf enum REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; + */ + const REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; + /** + * Remediation type for gcp.restrictCmekCryptoKeyProjects + * + * Generated from protobuf enum REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; + */ + const REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; + /** + * Remediation type for resource violation. + * + * Generated from protobuf enum REMEDIATION_RESOURCE_VIOLATION = 5; + */ + const REMEDIATION_RESOURCE_VIOLATION = 5; + + private static $valueToName = [ + self::REMEDIATION_TYPE_UNSPECIFIED => 'REMEDIATION_TYPE_UNSPECIFIED', + self::REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION => 'REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION', + self::REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION', + self::REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION', + self::REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION => 'REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION', + self::REMEDIATION_RESOURCE_VIOLATION => 'REMEDIATION_RESOURCE_VIOLATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RemediationType::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_RemediationType::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php new file mode 100644 index 000000000000..0f0aa1953b19 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php @@ -0,0 +1,71 @@ +google.cloud.cloudcontrolspartner.v1beta.Violation.State + */ +class State +{ + /** + * Unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Violation is resolved. + * + * Generated from protobuf enum RESOLVED = 1; + */ + const RESOLVED = 1; + /** + * Violation is Unresolved + * + * Generated from protobuf enum UNRESOLVED = 2; + */ + const UNRESOLVED = 2; + /** + * Violation is Exception + * + * Generated from protobuf enum EXCEPTION = 3; + */ + const EXCEPTION = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RESOLVED => 'RESOLVED', + self::UNRESOLVED => 'UNRESOLVED', + self::EXCEPTION => 'EXCEPTION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_State::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php new file mode 100644 index 000000000000..4427d1c428c1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php @@ -0,0 +1,365 @@ +google.cloud.cloudcontrolspartner.v1beta.Workload + */ +class Workload extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $folder_id = 0; + /** + * Output only. Time the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $folder = ''; + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + */ + protected $workload_onboarding_state = null; + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + */ + protected $is_onboarded = false; + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + */ + protected $key_management_project_id = ''; + /** + * The Google Cloud location of the workload + * + * Generated from protobuf field string location = 8; + */ + protected $location = ''; + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + */ + protected $partner = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * @type int|string $folder_id + * Output only. Folder id this workload is associated with + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time the resource was created. + * @type string $folder + * Output only. The name of container folder of the assured workload + * @type \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $workload_onboarding_state + * Container for workload onboarding steps. + * @type bool $is_onboarded + * Indicates whether a workload is fully onboarded. + * @type string $key_management_project_id + * The project id of the key management project for the workload + * @type string $location + * The Google Cloud location of the workload + * @type int $partner + * Partner associated with this workload. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * Output only. Folder id this workload is associated with + * + * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->folder_id = $var; + + return $this; + } + + /** + * Output only. Time the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFolder() + { + return $this->folder; + } + + /** + * Output only. The name of container folder of the assured workload + * + * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkString($var, True); + $this->folder = $var; + + return $this; + } + + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + * @return \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState|null + */ + public function getWorkloadOnboardingState() + { + return $this->workload_onboarding_state; + } + + public function hasWorkloadOnboardingState() + { + return isset($this->workload_onboarding_state); + } + + public function clearWorkloadOnboardingState() + { + unset($this->workload_onboarding_state); + } + + /** + * Container for workload onboarding steps. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; + * @param \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $var + * @return $this + */ + public function setWorkloadOnboardingState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState::class); + $this->workload_onboarding_state = $var; + + return $this; + } + + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + * @return bool + */ + public function getIsOnboarded() + { + return $this->is_onboarded; + } + + /** + * Indicates whether a workload is fully onboarded. + * + * Generated from protobuf field bool is_onboarded = 6; + * @param bool $var + * @return $this + */ + public function setIsOnboarded($var) + { + GPBUtil::checkBool($var); + $this->is_onboarded = $var; + + return $this; + } + + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + * @return string + */ + public function getKeyManagementProjectId() + { + return $this->key_management_project_id; + } + + /** + * The project id of the key management project for the workload + * + * Generated from protobuf field string key_management_project_id = 7; + * @param string $var + * @return $this + */ + public function setKeyManagementProjectId($var) + { + GPBUtil::checkString($var, True); + $this->key_management_project_id = $var; + + return $this; + } + + /** + * The Google Cloud location of the workload + * + * Generated from protobuf field string location = 8; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * The Google Cloud location of the workload + * + * Generated from protobuf field string location = 8; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + * @return int + */ + public function getPartner() + { + return $this->partner; + } + + /** + * Partner associated with this workload. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; + * @param int $var + * @return $this + */ + public function setPartner($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Workload\Partner::class); + $this->partner = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php new file mode 100644 index 000000000000..200d42c02ac4 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php @@ -0,0 +1,93 @@ +google.cloud.cloudcontrolspartner.v1beta.Workload.Partner + */ +class Partner +{ + /** + * Unknown Partner. + * + * Generated from protobuf enum PARTNER_UNSPECIFIED = 0; + */ + const PARTNER_UNSPECIFIED = 0; + /** + * Enum representing S3NS (Thales) partner. + * + * Generated from protobuf enum PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; + */ + const PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; + /** + * Enum representing T_SYSTEM (TSI) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; + /** + * Enum representing SIA_MINSAIT (Indra) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; + /** + * Enum representing PSN (TIM) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; + /** + * Enum representing CNTXT (Kingdom of Saudi Arabia) partner. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; + /** + * Enum representing CNXT (Kingdom of Saudi Arabia) partner offering without + * EKM provisioning. + * + * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; + */ + const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; + + private static $valueToName = [ + self::PARTNER_UNSPECIFIED => 'PARTNER_UNSPECIFIED', + self::PARTNER_LOCAL_CONTROLS_BY_S3NS => 'PARTNER_LOCAL_CONTROLS_BY_S3NS', + self::PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS => 'PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS', + self::PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT => 'PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT', + self::PARTNER_SOVEREIGN_CONTROLS_BY_PSN => 'PARTNER_SOVEREIGN_CONTROLS_BY_PSN', + self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT', + self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Partner::class, \Google\Cloud\CloudControlsPartner\V1beta\Workload_Partner::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php new file mode 100644 index 000000000000..27796c879a36 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php @@ -0,0 +1,67 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState + */ +class WorkloadOnboardingState extends \Google\Protobuf\Internal\Message +{ + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + */ + private $onboarding_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps + * List of workload onboarding steps. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOnboardingSteps() + { + return $this->onboarding_steps; + } + + /** + * List of workload onboarding steps. + * + * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; + * @param array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOnboardingSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep::class); + $this->onboarding_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php new file mode 100644 index 000000000000..42e6bfd84712 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php @@ -0,0 +1,189 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep + */ +class WorkloadOnboardingStep extends \Google\Protobuf\Internal\Message +{ + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + */ + protected $step = 0; + /** + * The starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + */ + protected $completion_time = null; + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $step + * The onboarding step. + * @type \Google\Protobuf\Timestamp $start_time + * The starting time of the onboarding step. + * @type \Google\Protobuf\Timestamp $completion_time + * The completion time of the onboarding step. + * @type int $completion_state + * Output only. The completion state of the onboarding step. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); + parent::__construct($data); + } + + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + * @return int + */ + public function getStep() + { + return $this->step; + } + + /** + * The onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; + * @param int $var + * @return $this + */ + public function setStep($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep\Step::class); + $this->step = $var; + + return $this; + } + + /** + * The starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The starting time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCompletionTime() + { + return $this->completion_time; + } + + public function hasCompletionTime() + { + return isset($this->completion_time); + } + + public function clearCompletionTime() + { + unset($this->completion_time); + } + + /** + * The completion time of the onboarding step. + * + * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCompletionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->completion_time = $var; + + return $this; + } + + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompletionState() + { + return $this->completion_state; + } + + /** + * Output only. The completion state of the onboarding step. + * + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompletionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); + $this->completion_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php new file mode 100644 index 000000000000..250843304815 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php @@ -0,0 +1,64 @@ +google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step + */ +class Step +{ + /** + * Unspecified step. + * + * Generated from protobuf enum STEP_UNSPECIFIED = 0; + */ + const STEP_UNSPECIFIED = 0; + /** + * EKM Provisioned step. + * + * Generated from protobuf enum EKM_PROVISIONED = 1; + */ + const EKM_PROVISIONED = 1; + /** + * Signed Access Approval step. + * + * Generated from protobuf enum SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; + */ + const SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; + + private static $valueToName = [ + self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', + self::EKM_PROVISIONED => 'EKM_PROVISIONED', + self::SIGNED_ACCESS_APPROVAL_CONFIGURED => 'SIGNED_ACCESS_APPROVAL_CONFIGURED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep_Step::class); + diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php new file mode 100644 index 000000000000..09c19aa62278 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Customer $response */ + $response = $cloudControlsPartnerCoreClient->getCustomer($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::customerName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]' + ); + + get_customer_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetCustomer_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php new file mode 100644 index 000000000000..f49e5fad3624 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EkmConnections $response */ + $response = $cloudControlsPartnerCoreClient->getEkmConnections($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::ekmConnectionsName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_ekm_connections_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetEkmConnections_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php new file mode 100644 index 000000000000..6e8039934d34 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Partner $response */ + $response = $cloudControlsPartnerCoreClient->getPartner($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::partnerName('[ORGANIZATION]', '[LOCATION]'); + + get_partner_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartner_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php new file mode 100644 index 000000000000..4d1290326cb0 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PartnerPermissions $response */ + $response = $cloudControlsPartnerCoreClient->getPartnerPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::partnerPermissionsName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_partner_permissions_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartnerPermissions_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php new file mode 100644 index 000000000000..517db77037e5 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Workload $response */ + $response = $cloudControlsPartnerCoreClient->getWorkload($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerCoreClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + get_workload_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetWorkload_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php new file mode 100644 index 000000000000..07dbcd899359 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php @@ -0,0 +1,84 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->listAccessApprovalRequests($request); + + /** @var AccessApprovalRequest $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudControlsPartnerCoreClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + list_access_approval_requests_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListAccessApprovalRequests_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php new file mode 100644 index 000000000000..83e1cbb8dd86 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->listCustomers($request); + + /** @var Customer $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudControlsPartnerCoreClient::organizationLocationName( + '[ORGANIZATION]', + '[LOCATION]' + ); + + list_customers_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListCustomers_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php new file mode 100644 index 000000000000..b6f060e4a8ab --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerCoreClient->listWorkloads($request); + + /** @var Workload $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudControlsPartnerCoreClient::customerName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]' + ); + + list_workloads_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListWorkloads_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php new file mode 100644 index 000000000000..76e77b0a7d2e --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Violation $response */ + $response = $cloudControlsPartnerMonitoringClient->getViolation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudControlsPartnerMonitoringClient::violationName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]', + '[VIOLATION]' + ); + + get_violation_sample($formattedName); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_GetViolation_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php new file mode 100644 index 000000000000..456fadac7de1 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php @@ -0,0 +1,89 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudControlsPartnerMonitoringClient->listViolations($request); + + /** @var Violation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudControlsPartnerMonitoringClient::workloadName( + '[ORGANIZATION]', + '[LOCATION]', + '[CUSTOMER]', + '[WORKLOAD]' + ); + + list_violations_sample($formattedParent); +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_ListViolations_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php new file mode 100644 index 000000000000..5fb35e334572 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php @@ -0,0 +1,586 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cloud_controls_partner_core_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a customer + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * + * @return string The formatted customer resource. + * + * @experimental + */ + public static function customerName(string $organization, string $location, string $customer): string + { + return self::getPathTemplate('customer')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * ekm_connections resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted ekm_connections resource. + * + * @experimental + */ + public static function ekmConnectionsName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('ekmConnections')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted organization_location resource. + * + * @experimental + */ + public static function organizationLocationName(string $organization, string $location): string + { + return self::getPathTemplate('organizationLocation')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a partner + * resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted partner resource. + * + * @experimental + */ + public static function partnerName(string $organization, string $location): string + { + return self::getPathTemplate('partner')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * partner_permissions resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted partner_permissions resource. + * + * @experimental + */ + public static function partnerPermissionsName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('partnerPermissions')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a workload + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted workload resource. + * + * @experimental + */ + public static function workloadName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('workload')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - customer: organizations/{organization}/locations/{location}/customers/{customer} + * - ekmConnections: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + * - organizationLocation: organizations/{organization}/locations/{location} + * - partner: organizations/{organization}/locations/{location}/partner + * - partnerPermissions: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + * - workload: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'cloudcontrolspartner.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Gets details of a single customer + * + * The async variant is {@see CloudControlsPartnerCoreClient::getCustomerAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php + * + * @param GetCustomerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Customer + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getCustomer(GetCustomerRequest $request, array $callOptions = []): Customer + { + return $this->startApiCall('GetCustomer', $request, $callOptions)->wait(); + } + + /** + * Gets the EKM connections associated with a workload + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::getEkmConnectionsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php + * + * @param GetEkmConnectionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return EkmConnections + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getEkmConnections(GetEkmConnectionsRequest $request, array $callOptions = []): EkmConnections + { + return $this->startApiCall('GetEkmConnections', $request, $callOptions)->wait(); + } + + /** + * Get details of a Partner. + * + * The async variant is {@see CloudControlsPartnerCoreClient::getPartnerAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php + * + * @param GetPartnerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Partner + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getPartner(GetPartnerRequest $request, array $callOptions = []): Partner + { + return $this->startApiCall('GetPartner', $request, $callOptions)->wait(); + } + + /** + * Gets the partner permissions granted for a workload + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::getPartnerPermissionsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php + * + * @param GetPartnerPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PartnerPermissions + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getPartnerPermissions(GetPartnerPermissionsRequest $request, array $callOptions = []): PartnerPermissions + { + return $this->startApiCall('GetPartnerPermissions', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single workload + * + * The async variant is {@see CloudControlsPartnerCoreClient::getWorkloadAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php + * + * @param GetWorkloadRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Workload + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getWorkload(GetWorkloadRequest $request, array $callOptions = []): Workload + { + return $this->startApiCall('GetWorkload', $request, $callOptions)->wait(); + } + + /** + * Deprecated: Only returns access approval requests directly associated with + * an assured workload folder. + * + * The async variant is + * {@see CloudControlsPartnerCoreClient::listAccessApprovalRequestsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php + * + * @param ListAccessApprovalRequestsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + * + * @deprecated This method will be removed in the next major version update. + */ + public function listAccessApprovalRequests(ListAccessApprovalRequestsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccessApprovalRequests', $request, $callOptions); + } + + /** + * Lists customers of a partner identified by its Google Cloud organization ID + * + * The async variant is {@see CloudControlsPartnerCoreClient::listCustomersAsync()} + * . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php + * + * @param ListCustomersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listCustomers(ListCustomersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomers', $request, $callOptions); + } + + /** + * Lists customer workloads for a given customer org id + * + * The async variant is {@see CloudControlsPartnerCoreClient::listWorkloadsAsync()} + * . + * + * @example samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php + * + * @param ListWorkloadsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listWorkloads(ListWorkloadsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkloads', $request, $callOptions); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php new file mode 100644 index 000000000000..115b68b51155 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php @@ -0,0 +1,318 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a violation + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * @param string $violation + * + * @return string The formatted violation resource. + * + * @experimental + */ + public static function violationName(string $organization, string $location, string $customer, string $workload, string $violation): string + { + return self::getPathTemplate('violation')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + 'violation' => $violation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a workload + * resource. + * + * @param string $organization + * @param string $location + * @param string $customer + * @param string $workload + * + * @return string The formatted workload resource. + * + * @experimental + */ + public static function workloadName(string $organization, string $location, string $customer, string $workload): string + { + return self::getPathTemplate('workload')->render([ + 'organization' => $organization, + 'location' => $location, + 'customer' => $customer, + 'workload' => $workload, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - violation: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + * - workload: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'cloudcontrolspartner.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Gets details of a single Violation. + * + * The async variant is + * {@see CloudControlsPartnerMonitoringClient::getViolationAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php + * + * @param GetViolationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Violation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getViolation(GetViolationRequest $request, array $callOptions = []): Violation + { + return $this->startApiCall('GetViolation', $request, $callOptions)->wait(); + } + + /** + * Lists Violations for a workload + * Callers may also choose to read across multiple Customers or for a single + * customer as per + * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash + * character) as a wildcard character instead of {customer} & {workload}. + * Format: + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` + * + * The async variant is + * {@see CloudControlsPartnerMonitoringClient::listViolationsAsync()} . + * + * @example samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php + * + * @param ListViolationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listViolations(ListViolationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListViolations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 000000000000..26122625ba86 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,77 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.cloudcontrolspartner.v1beta", + "libraryPackage": "Google\\Cloud\\CloudControlsPartner\\V1beta", + "services": { + "CloudControlsPartnerCore": { + "clients": { + "grpc": { + "libraryClient": "CloudControlsPartnerCoreGapicClient", + "rpcs": { + "GetCustomer": { + "methods": [ + "getCustomer" + ] + }, + "GetEkmConnections": { + "methods": [ + "getEkmConnections" + ] + }, + "GetPartner": { + "methods": [ + "getPartner" + ] + }, + "GetPartnerPermissions": { + "methods": [ + "getPartnerPermissions" + ] + }, + "GetWorkload": { + "methods": [ + "getWorkload" + ] + }, + "ListAccessApprovalRequests": { + "methods": [ + "listAccessApprovalRequests" + ] + }, + "ListCustomers": { + "methods": [ + "listCustomers" + ] + }, + "ListWorkloads": { + "methods": [ + "listWorkloads" + ] + } + } + } + } + }, + "CloudControlsPartnerMonitoring": { + "clients": { + "grpc": { + "libraryClient": "CloudControlsPartnerMonitoringGapicClient", + "rpcs": { + "GetViolation": { + "methods": [ + "getViolation" + ] + }, + "ListViolations": { + "methods": [ + "listViolations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json new file mode 100644 index 000000000000..84b4915423a3 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json @@ -0,0 +1,74 @@ +{ + "interfaces": { + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEkmConnections": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetPartner": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPartnerPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetWorkload": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccessApprovalRequests": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListWorkloads": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php new file mode 100644 index 000000000000..f3f5186c4791 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php @@ -0,0 +1,156 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ + 'GetCustomer' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Customer', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEkmConnections' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\EkmConnections', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPartner' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Partner', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPartnerPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkload' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Workload', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAccessApprovalRequests' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccessApprovalRequests', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListCustomersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkloads' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkloads', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListWorkloadsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'customer' => 'organizations/{organization}/locations/{location}/customers/{customer}', + 'ekmConnections' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'partner' => 'organizations/{organization}/locations/{location}/partner', + 'partnerPermissions' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions', + 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php new file mode 100644 index 000000000000..3dd6f9afb6b6 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php @@ -0,0 +1,117 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ + 'GetCustomer' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEkmConnections' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPartner' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/partner}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPartnerPermissions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkload' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAccessApprovalRequests' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*}/customers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkloads' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json new file mode 100644 index 000000000000..d91bd4599987 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json @@ -0,0 +1,44 @@ +{ + "interfaces": { + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "GetViolation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListViolations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php new file mode 100644 index 000000000000..df21bc1ae902 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php @@ -0,0 +1,64 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ + 'GetViolation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Violation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListViolations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getViolations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListViolationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'templateMap' => [ + 'violation' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}', + 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', + ], + ], + ], +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php new file mode 100644 index 000000000000..f3eb5ee07389 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php @@ -0,0 +1,51 @@ + [ + 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ + 'GetViolation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListViolations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php new file mode 100644 index 000000000000..8fc6af6a3c65 --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php @@ -0,0 +1,662 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudControlsPartnerCoreClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudControlsPartnerCoreClient($options); + } + + /** @test */ + public function getCustomerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isOnboarded = false; + $expectedResponse = new Customer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsOnboarded($isOnboarded); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomer($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomer($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEkmConnectionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new EkmConnections(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetEkmConnectionsRequest()) + ->setName($formattedName); + $response = $gapicClient->getEkmConnections($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetEkmConnections', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEkmConnectionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetEkmConnectionsRequest()) + ->setName($formattedName); + try { + $gapicClient->getEkmConnections($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $partnerProjectId = 'partnerProjectId438161368'; + $expectedResponse = new Partner(); + $expectedResponse->setName($name2); + $expectedResponse->setPartnerProjectId($partnerProjectId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); + $request = (new GetPartnerRequest()) + ->setName($formattedName); + $response = $gapicClient->getPartner($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartner', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); + $request = (new GetPartnerRequest()) + ->setName($formattedName); + try { + $gapicClient->getPartner($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new PartnerPermissions(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetPartnerPermissionsRequest()) + ->setName($formattedName); + $response = $gapicClient->getPartnerPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartnerPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetPartnerPermissionsRequest()) + ->setName($formattedName); + try { + $gapicClient->getPartnerPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkloadTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $folderId = 527488652; + $folder = 'folder-1268966290'; + $isOnboarded = false; + $keyManagementProjectId = 'keyManagementProjectId1004472221'; + $location = 'location1901043637'; + $expectedResponse = new Workload(); + $expectedResponse->setName($name2); + $expectedResponse->setFolderId($folderId); + $expectedResponse->setFolder($folder); + $expectedResponse->setIsOnboarded($isOnboarded); + $expectedResponse->setKeyManagementProjectId($keyManagementProjectId); + $expectedResponse->setLocation($location); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetWorkloadRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkload($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetWorkload', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkloadExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new GetWorkloadRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkload($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessApprovalRequestsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accessApprovalRequestsElement = new AccessApprovalRequest(); + $accessApprovalRequests = [ + $accessApprovalRequestsElement, + ]; + $expectedResponse = new ListAccessApprovalRequestsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccessApprovalRequests($accessApprovalRequests); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListAccessApprovalRequestsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAccessApprovalRequests($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccessApprovalRequests()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListAccessApprovalRequests', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessApprovalRequestsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListAccessApprovalRequestsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAccessApprovalRequests($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customersElement = new Customer(); + $customers = [ + $customersElement, + ]; + $expectedResponse = new ListCustomersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomers($customers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCustomersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListCustomers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCustomersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkloadsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workloadsElement = new Workload(); + $workloads = [ + $workloadsElement, + ]; + $expectedResponse = new ListWorkloadsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkloads($workloads); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new ListWorkloadsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkloads($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkloads()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListWorkloads', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkloadsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new ListWorkloadsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkloads($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomerAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $isOnboarded = false; + $expectedResponse = new Customer(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setIsOnboarded($isOnboarded); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); + $request = (new GetCustomerRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomerAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php new file mode 100644 index 000000000000..840872e3024d --- /dev/null +++ b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php @@ -0,0 +1,245 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudControlsPartnerMonitoringClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudControlsPartnerMonitoringClient($options); + } + + /** @test */ + public function getViolationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $category = 'category50511102'; + $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; + $folderId = 527488652; + $expectedResponse = new Violation(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setCategory($category); + $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); + $expectedResponse->setFolderId($folderId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); + $request = (new GetViolationRequest()) + ->setName($formattedName); + $response = $gapicClient->getViolation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getViolationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); + $request = (new GetViolationRequest()) + ->setName($formattedName); + try { + $gapicClient->getViolation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViolationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $violationsElement = new Violation(); + $violations = [ + $violationsElement, + ]; + $expectedResponse = new ListViolationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setViolations($violations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListViolationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listViolations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getViolations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/ListViolations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViolationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); + $request = (new ListViolationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listViolations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getViolationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $category = 'category50511102'; + $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; + $folderId = 527488652; + $expectedResponse = new Violation(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setCategory($category); + $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); + $expectedResponse->setFolderId($folderId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); + $request = (new GetViolationRequest()) + ->setName($formattedName); + $response = $gapicClient->getViolationAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From b54dc7bd5f9808656618f91c24d397b39ec3cc78 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 13 Sep 2024 18:03:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- ControlsPartner/metadata/V1Beta/Customers.php | Bin 2610 -> 2625 bytes .../metadata/V1Beta/PartnerPermissions.php | Bin 1799 -> 1849 bytes ControlsPartner/src/V1beta/Customer.php | 42 +- .../V1beta/PartnerPermissions/Permission.php | 7 + .../V1Beta/AccessApprovalRequests.php | Bin 2501 -> 0 bytes .../V1Beta/CompletionState.php | Bin 1127 -> 0 bytes .../Cloudcontrolspartner/V1Beta/Core.php | 57 -- .../V1Beta/CustomerWorkloads.php | Bin 3181 -> 0 bytes .../Cloudcontrolspartner/V1Beta/Customers.php | Bin 2625 -> 0 bytes .../V1Beta/EkmConnections.php | Bin 1970 -> 0 bytes .../V1Beta/Monitoring.php | 33 - .../V1Beta/PartnerPermissions.php | Bin 1849 -> 0 bytes .../Cloudcontrolspartner/V1Beta/Partners.php | Bin 2030 -> 0 bytes .../V1Beta/Violations.php | Bin 3506 -> 0 bytes .../V1beta/AccessApprovalRequest.php | 207 ------ .../V1beta/AccessReason.php | 101 --- .../V1beta/AccessReason/Type.php | 109 --- .../V1beta/CompletionState.php | 75 -- .../CloudControlsPartner/V1beta/Customer.php | 183 ----- .../V1beta/CustomerOnboardingState.php | 67 -- .../V1beta/CustomerOnboardingStep.php | 189 ----- .../V1beta/CustomerOnboardingStep/Step.php | 64 -- .../V1beta/EkmConnection.php | 149 ---- .../V1beta/EkmConnection/ConnectionError.php | 105 --- .../V1beta/EkmConnection/ConnectionState.php | 78 --- .../V1beta/EkmConnections.php | 105 --- .../V1beta/EkmMetadata.php | 105 --- .../V1beta/EkmMetadata/EkmSolution.php | 80 --- .../V1beta/GetCustomerRequest.php | 86 --- .../V1beta/GetEkmConnectionsRequest.php | 86 --- .../V1beta/GetPartnerPermissionsRequest.php | 86 --- .../V1beta/GetPartnerRequest.php | 86 --- .../V1beta/GetViolationRequest.php | 86 --- .../V1beta/GetWorkloadRequest.php | 86 --- .../ListAccessApprovalRequestsRequest.php | 243 ------- .../ListAccessApprovalRequestsResponse.php | 139 ---- .../V1beta/ListCustomersRequest.php | 230 ------ .../V1beta/ListCustomersResponse.php | 139 ---- .../V1beta/ListViolationsRequest.php | 287 -------- .../V1beta/ListViolationsResponse.php | 143 ---- .../V1beta/ListWorkloadsRequest.php | 235 ------- .../V1beta/ListWorkloadsResponse.php | 139 ---- .../V1beta/OperationMetadata.php | 307 -------- .../CloudControlsPartner/V1beta/Partner.php | 311 -------- .../V1beta/PartnerPermissions.php | 105 --- .../V1beta/PartnerPermissions/Permission.php | 83 --- .../Cloud/CloudControlsPartner/V1beta/Sku.php | 117 ---- .../CloudControlsPartner/V1beta/Violation.php | 445 ------------ .../V1beta/Violation/Remediation.php | 161 ----- .../Violation/Remediation/Instructions.php | 124 ---- .../Remediation/Instructions/Console.php | 138 ---- .../Remediation/Instructions/Gcloud.php | 138 ---- .../Violation/Remediation/RemediationType.php | 90 --- .../V1beta/Violation/State.php | 71 -- .../CloudControlsPartner/V1beta/Workload.php | 365 ---------- .../V1beta/Workload/Partner.php | 93 --- .../V1beta/WorkloadOnboardingState.php | 67 -- .../V1beta/WorkloadOnboardingStep.php | 189 ----- .../V1beta/WorkloadOnboardingStep/Step.php | 64 -- .../get_customer.php | 76 -- .../get_ekm_connections.php | 77 -- .../get_partner.php | 72 -- .../get_partner_permissions.php | 77 -- .../get_workload.php | 77 -- .../list_access_approval_requests.php | 84 --- .../list_customers.php | 80 --- .../list_workloads.php | 82 --- .../get_violation.php | 78 --- .../list_violations.php | 89 --- .../Client/CloudControlsPartnerCoreClient.php | 586 ---------------- .../CloudControlsPartnerMonitoringClient.php | 318 --------- .../v1beta/src/V1beta/gapic_metadata.json | 77 -- ...d_controls_partner_core_client_config.json | 74 -- ...ontrols_partner_core_descriptor_config.php | 156 ----- ...ntrols_partner_core_rest_client_config.php | 117 ---- ...rols_partner_monitoring_client_config.json | 44 -- ...s_partner_monitoring_descriptor_config.php | 64 -- ..._partner_monitoring_rest_client_config.php | 51 -- .../CloudControlsPartnerCoreClientTest.php | 662 ------------------ ...oudControlsPartnerMonitoringClientTest.php | 245 ------- 80 files changed, 28 insertions(+), 9853 deletions(-) delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CompletionState.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Customers.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Partners.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessApprovalRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php delete mode 100644 owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php diff --git a/ControlsPartner/metadata/V1Beta/Customers.php b/ControlsPartner/metadata/V1Beta/Customers.php index 850dae4fc13795171766dc65e8de6c4652f56827..38eb9f2770494500f56a9c1665262de8f874cee7 100644 GIT binary patch delta 96 zcmdlaa!_OgD>KU{UM`D?-WHP`nO87gnEZ-aUPh9OCndAEASbahJ})shRf0)@QG?To t`GF&oQ08O>mJ|gLn^_2`EVDR1KQAdiu_z@qMS=yWi~}sSc^1nIRseRH8@>Pl delta 65 zcmV-H0KWgh6tWbs1p@@*4GK7sOE{B31E>MPlj;K>7ZeH%WNCA7Y+-p{ZeeX@7y=*x XCmU9yq diff --git a/ControlsPartner/metadata/V1Beta/PartnerPermissions.php b/ControlsPartner/metadata/V1Beta/PartnerPermissions.php index 9ed127dd4842622727c1c61e2583e1956b6528d9..0e9caaf8f375e0eb125a5cb6cb576163d26c8b4e 100644 GIT binary patch delta 87 zcmZqY+sU_~k%{Fk2ba@CZ>Pz}ncNt6PUd6oXZ$sJ9`h+9ApAVPz}ncNuLC-X7)GoF|{kNMQ*SuFFJ0OUjr*8l(j diff --git a/ControlsPartner/src/V1beta/Customer.php b/ControlsPartner/src/V1beta/Customer.php index 397998029016..30e58e7966ae 100644 --- a/ControlsPartner/src/V1beta/Customer.php +++ b/ControlsPartner/src/V1beta/Customer.php @@ -23,21 +23,21 @@ class Customer extends \Google\Protobuf\Internal\Message */ protected $name = ''; /** - * The customer organization's display name. E.g. "google.com". + * Required. Display name for the customer * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ protected $display_name = ''; /** - * Container for customer onboarding steps + * Output only. Container for customer onboarding steps * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3; + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $customer_onboarding_state = null; /** - * Indicates whether a customer is fully onboarded + * Output only. Indicates whether a customer is fully onboarded * - * Generated from protobuf field bool is_onboarded = 4; + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $is_onboarded = false; @@ -51,11 +51,11 @@ class Customer extends \Google\Protobuf\Internal\Message * Identifier. Format: * `organizations/{organization}/locations/{location}/customers/{customer}` * @type string $display_name - * The customer organization's display name. E.g. "google.com". + * Required. Display name for the customer * @type \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $customer_onboarding_state - * Container for customer onboarding steps + * Output only. Container for customer onboarding steps * @type bool $is_onboarded - * Indicates whether a customer is fully onboarded + * Output only. Indicates whether a customer is fully onboarded * } */ public function __construct($data = NULL) { @@ -92,9 +92,9 @@ public function setName($var) } /** - * The customer organization's display name. E.g. "google.com". + * Required. Display name for the customer * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getDisplayName() @@ -103,9 +103,9 @@ public function getDisplayName() } /** - * The customer organization's display name. E.g. "google.com". + * Required. Display name for the customer * - * Generated from protobuf field string display_name = 2; + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -118,9 +118,9 @@ public function setDisplayName($var) } /** - * Container for customer onboarding steps + * Output only. Container for customer onboarding steps * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3; + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState|null */ public function getCustomerOnboardingState() @@ -139,9 +139,9 @@ public function clearCustomerOnboardingState() } /** - * Container for customer onboarding steps + * Output only. Container for customer onboarding steps * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3; + * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $var * @return $this */ @@ -154,9 +154,9 @@ public function setCustomerOnboardingState($var) } /** - * Indicates whether a customer is fully onboarded + * Output only. Indicates whether a customer is fully onboarded * - * Generated from protobuf field bool is_onboarded = 4; + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return bool */ public function getIsOnboarded() @@ -165,9 +165,9 @@ public function getIsOnboarded() } /** - * Indicates whether a customer is fully onboarded + * Output only. Indicates whether a customer is fully onboarded * - * Generated from protobuf field bool is_onboarded = 4; + * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param bool $var * @return $this */ diff --git a/ControlsPartner/src/V1beta/PartnerPermissions/Permission.php b/ControlsPartner/src/V1beta/PartnerPermissions/Permission.php index 99eb2c66ca6d..f6b66a59130b 100644 --- a/ControlsPartner/src/V1beta/PartnerPermissions/Permission.php +++ b/ControlsPartner/src/V1beta/PartnerPermissions/Permission.php @@ -41,6 +41,12 @@ class Permission * Generated from protobuf enum ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; */ const ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; + /** + * Permission for support case details for Access Transparency log entries + * + * Generated from protobuf enum ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; + */ + const ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; private static $valueToName = [ self::PERMISSION_UNSPECIFIED => 'PERMISSION_UNSPECIFIED', @@ -48,6 +54,7 @@ class Permission self::ASSURED_WORKLOADS_MONITORING => 'ASSURED_WORKLOADS_MONITORING', self::ACCESS_APPROVAL_REQUESTS => 'ACCESS_APPROVAL_REQUESTS', self::ASSURED_WORKLOADS_EKM_CONNECTION_STATUS => 'ASSURED_WORKLOADS_EKM_CONNECTION_STATUS', + self::ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER => 'ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER', ]; public static function name($value) diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/AccessApprovalRequests.php deleted file mode 100644 index c4d9bb53f8ba8e2df6499da58180a937aa77fef5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2501 zcmb_eQE%H+6vjzgt#@MtL%Xa)aFky4rJ`qM=CU#<@wYxxU7} zDeJ2I1AYmwz+d2jSKfHq^CW%%NJw1!-lS3LvQ3Z&+qw6g@0|19bIv_q+>Z}qa0|9^ zgcC&Z0QOHHJ;X3h2qiuVVShXv;spBSC=NoLC=j+RxNo`8XqoO!rkav*;$sbt2pNS~ z^+Pfq@TX5AnvgJ!Q9>EKdVH^sDN>Q|<23b9%xoN^&`a>QW1P}d$!!79z=tVCl)Y{T zsTV{64Nw?7V;tpw7z<$B|D162VNtihNwZ136|UdpjnKvmH2f*Uo5U6!y%B z;v_<0uZ2@T31UhTn~7@L2-6w)*-HJ6Fq^>zLs;iNYT7v`cOXs1c-}gM38v#D+RpvX z04B4qUICeU9Q1Yr91a@z5FH03(X_Lu&Ok0wb+9=5SJs-*;RfuCDLRUaE#@?S{AD0W z(+7hYN4qQw>$9k`7&pOBZ-Vy!lzwuZ11WhP^XEdMDLjuit_zbW4%9?Y!E<=y1F@B7 zG&_EkPUGbQwLi*WtuR65x4}|Y096S}_0>lCxqeCh1Y8j{;$=A165G1GwV?=4r$&?+ zsj>|!LIV$2eW8>@)pD-&*;MPL@hRLtC)bvD!1Xgk{4@?&w_sJk9a?&sL)zcc3;jX4GO{zL!WcLQ(K6x0|Y`^M5C5Nc`!>^mC&6=S2OE zBu_$u25fQqIT1Z+v0136sJK^6K3wNJiyB*Nh3mE7Bye*tNNHhgsc25}Be24HC61^# zef_y!`b*!I{{wC7U^PY~?4_)+<%zSL<&-2}10Y|gTKioBOZmpTpyEEZ4X?Z3v5ls=YZ|S}8}j>LquK4a)aXl%9*PBz;s%ktvl{xucf=X=NON= zM#rrz$-PZ*OXxaA$F}x6hUZ$I?O3gD(>1MqPv0|`3(N8bSa0rG-PW83db4SCI+c~i zk0o%I)$A)1*0@nz0r|yXOJ9G(+mh&PSvMGw;$ecd3o%a=^^~~3UA+85sou^f38k4$ z68zZ|gNn@u6@^a{zfMJaV(Q?p1>qi>JF>CnMd>3BtZ6y2cr8e48kg>`xBgBB%O8#(oC341eHF8 zZy`R3kK$7}KW$i21;JdL87AL+=bLlB^Y*H^EznCClALfX$O4kjAZ`g1oC%h)43cWO zBpgz|!Jefh@hqD**YRM{|5*JpCtuoS1Ggd83Oj#~C%gO?CA?e$nE)pVe zTTx|1P?pb2A#*x97eYB+6Nya;45R+FL@uzv@leyoo}x9eK^won=u2=1p)|u~30_S< zRqW_10{InHlF<}YLb;sKa!zw9D9-2?`RFbzaaIz^v5#F=d8)*Mx-iL8VxNKGRM?Y( z$s%=Or!!J@lQoOOTo9h)EcQv6a#{$+BMEig6%lo{)roz!O{?hW5^STxKo=Ahvdr>qBy#h9T#-xcxB#3C5oh@nf8vqx9p+zyrVsDqPHET$c&O>JpXeCjkoh*mIgSM u6QTz1SL?MQc3sW9T^eZDHR$9>kLBfQ?UQq3zdLUIt5Y@7m~w+Q2>k|&lY5T< diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php deleted file mode 100644 index 51ec0af87bb0..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Core.php +++ /dev/null @@ -1,57 +0,0 @@ -internalAddGeneratedFile( - ' -� -3google/cloud/cloudcontrolspartner/v1beta/core.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protoGgoogle/cloud/cloudcontrolspartner/v1beta/access_approval_requests.protoAgoogle/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto8google/cloud/cloudcontrolspartner/v1beta/customers.proto>google/cloud/cloudcontrolspartner/v1beta/ekm_connections.protoBgoogle/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto7google/cloud/cloudcontrolspartner/v1beta/partners.protogoogle/protobuf/timestamp.proto"� -OperationMetadata4 - create_time ( 2.google.protobuf.TimestampB�A1 -end_time ( 2.google.protobuf.TimestampB�A -target ( B�A -verb ( B�A -status_message ( B�A# -requested_cancellation (B�A - api_version ( B�A2� -CloudControlsPartnerCore� - GetWorkload<.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest2.google.cloud.cloudcontrolspartner.v1beta.Workload"Q�Aname���DB/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}� - ListWorkloads>.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest?.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse"S�Aparent���DB/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads� - GetCustomer<.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest2.google.cloud.cloudcontrolspartner.v1beta.Customer"E�Aname���86/v1beta/{name=organizations/*/locations/*/customers/*}� - ListCustomers>.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest?.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse"G�Aparent���86/v1beta/{parent=organizations/*/locations/*}/customers� -GetEkmConnectionsB.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest8.google.cloud.cloudcontrolspartner.v1beta.EkmConnections"`�Aname���SQ/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}� -GetPartnerPermissionsF.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest<.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions"d�Aname���WU/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}� -ListAccessApprovalRequestsK.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequestL.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse"o��Aparent���][/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests� - -GetPartner;.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest1.google.cloud.cloudcontrolspartner.v1beta.Partner"A�Aname���42/v1beta/{name=organizations/*/locations/*/partner}W�A#cloudcontrolspartner.googleapis.com�A.https://www.googleapis.com/auth/cloud-platformB� -,com.google.cloud.cloudcontrolspartner.v1betaB CoreProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb�(Google.Cloud.CloudControlsPartner.V1Beta�(Google\\Cloud\\CloudControlsPartner\\V1beta�+Google::Cloud::CloudControlsPartner::V1beta�Am -8cloudcontrolspartner.googleapis.com/OrganizationLocation1organizations/{organization}/locations/{location}bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/CustomerWorkloads.php deleted file mode 100644 index 9e4b88c8dd9f247aa509baadadf62f47dd4f6107..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3181 zcmbtWTXWh*6fWS{uk)>yUBs?w6y z$?)2j_D6I&edBJFJLj9n{+^F+C^h1dz+$AY z^bQoZM-)GxjM~&ydZXQ45-2tu`i@HiRZ%KUrP1st)k?i{9gc={6xc*l29yq5QnXz< z>dU81Jr+>&@0@5~7YOT^X$o4H} zb!!5+Tjs#>IR)I^xnBa|4TNmh3PYtFUGOZ%M{ke7K|XY}O`?F$eCnft>y{z8T*4h}Ky1kD3QauSaUgS; zHS|wEDv1k^af)j0+M%6%`?$Q;Dm}inz8KU1s@C zF^K#tYvS7D+4Yz>(d5}fB7iR=08wI)ltmW1N($uP&ZBf(Dfkka<3*TDD2YO*lzOM9 z@fDQWrEVYU)#>Mwu%F`lDf|#E+5v%!OpcgK!I#DLYieY4e4RRpj6AiB<|SHgF1{j# z`)D=h0+V_@Y6X4A8%Q&97X+{#1Ao+;YHUn%f+VsEub|JNmH8ed1N`{ckJ zTAno^L*g+LRR59KjGMc_b;MbecBu`dLA_jB>^wmW5vk=eu(7nRonJk*C22ALXA&($ zYkUIu5Z?>mF#CYkG_aMY&FaJmRW8#I_>6`VU}K)#)F2DP2fAI zyA}%>&7EqyTCX*Z33g25h0&>Q8`&hjhi;uMY}9pgyWTMLdMBI0U!m(~i?@tMb`E#f z(2cX@%8kzRPIexv==KbPW}|6VpKNCrw7(MX^*<8mu1J9CLXuer^%JVlsfuw5;O}WL zusr9r2wqrxbM)`H7)KR8#LMxdJ;7$&sm8@PJz+Cmj&En;Ww@S>m-&AaXl2U@*|WI$ zw8>8+;3ix_^N=%;U{P^Be5WV>(^Y&vgD#B=tp)`~ro= z6_;9a9^qOpjy&KHd(Y~*oI+BCO#V5-H8OEu?7h-4Vv2lszGTRc(A799)7dgj_V}f&&0aRD5n0mQfH4Ia4aRJGaoAuh$Hi#ul|0E${=x}EJN>@%yl49U!C0_m@ z+fdZ(0JJ!urw_frN%7pv2iPg%@_QSn@tNQIJ6WiSxmPXoWAa&!2I{C=sB-Ro8;f?M z8Ckxjgu5^$^YQzA@{R=7G=Utwrld7ZO84ePBY&_qnUL^5s7{+#*u{V&WBBf3)ET%JcX_2Qc2T%ybU-7skw#RlmosMQ)NnSfU$XcX2sq3t)zS!GR0^gA+fY=N>sRoLKE@9oIF~0Usn;`+n{7KKtnX@K`7_8~I;2c2l3nSOZ9%S6%;&v0WAr3Idj*nl6eICNG<1-|@-?SY^ zfyXfkVC>KdJXE|5Rm|A-W=I4shfr78jiC}S*{y&h8aTdPN6e!*9?{@H)*T0!&7bTQ_*Ft|A7SK=s_4{tjtRA_ zi(Op=`6t&NO8UFD*IOHA*94b*6a(BBy+P|2G)H=X1!K4~4Ojch4t@F+PWn+9jppzl z2@)6QfW`3L0)M;*KL4-mHHym9l)P8hC7zm!_xpQE4kyGVn!u`#!2W~v)6cOR#-u?> zfDe-Z@Pi- zF$@6YD^9*efrLJ1ybm_V*cZYh!IIrf8P`FU&=I0T_bh)!cQRG@F$JzKRm?&G3^E$v zVvC~cjOc0k@;xl=T6zsf4VidAu!(U&1!;8UDSokvyK3J6(g+?E2FpfgWi0yLY|E4ng zBA8(UAVh%jVSL&pN4CoQI<%Gob1s&~eQ-7Yjw|g|PU`&ro6{4pv*08}M^bIO{Dn^S zR_!yFBwrrs!b7kjx3LR$`h!My_^93QHfpV-R-?Z2jv)K?HDm=lw{@eK{Hkb7KTixDUusa~b; usKAybBPX{dYs*sB?xv*1{af?T;9WIkEDR-ao3XcIAd!}8Y?y%=0Dl83NPn3C diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/EkmConnections.php deleted file mode 100644 index db2ac065e3923aea807ade21e8b264dcdc9a2650..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1970 zcmb_dPjAyO6sIj9Y8cxBh=DkmfkY4^5d#S+V?$}1l}gZ7ZQ+0-6*qA^vosEl0|L}< z!hr)P;FItvICJ672|G^zQX~ZQ;JEgCzxT(#_ujqx(Ln^Rz$y+gLmd0C_Zsp83?oK4 z^=JTlNxzR7^yn}m0cHk-l?JRgI?$=qI+ulNOcUl|3l1n91laTfn)qtnbZ6aXO_Vj=2bSZ$Ub2|*umpn$v)A@9OI3SulEewFPfVd^H7 z3XRai`gN!#+iWKd_v71eqHIXs57IMr&6u1=}dyGV!vZfHVtO4eeT+0*vdS+I_ zkv`OwkCyd|le>_!1kYNBkYS#%a3}R!0*od*cS#cMh`9R%2Yv}3pqGR)%bG?t1^Jz7 z3ujNgR4Yxz%{`I@Zu|Zu&V4}~ed3w)^BVYG1bhF+7)@9DM#?y~E^xz8jJtRtvxFjI zvMdTkyUllbaC)9H+B!HYxww&oIlWjae6>$#O|ZJa+KoIc=qI=D8h`49F=xg4ko#u8 z&w=gK`9-%Crtmg4MBSNlnz8nrvH=Ro8^L8!KIYrmzaulC-uPm?9hqJdb2`LKNRPK8 z^A%->0Y$zz9B)UmIA_Xd(+3+>%;z0w;TH*xx%OZ#Pu5pE|HHoXHxX@qE`XIe8`^oW zDw2}5i0+PmfuI<;H%Gwca1r+TkcI}~Edg!d>1lLzYFYiu|@>&rbb6TxNYpoy*uQ#36 zqguNy;VMpDVjL}f%7ZPz%RkO{>CD{Y#%Y&q=AJ%Nl{>B=!Sn%LJ~>1wWW!@wy+pm8 z<;NfMdNrLNMp@1ewThglQ>m$@lA-3um$9gu%^LMt5O&41ku&UD{)Pg!tQ0x>EJ$0H glI|T(N8IgelODLGdihN2|83h(B~^1Cfe`>d0R%^)1poj5 diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php deleted file mode 100644 index 7204776e3f35..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Monitoring.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' -� -9google/cloud/cloudcontrolspartner/v1beta/monitoring.proto(google.cloud.cloudcontrolspartner.v1betagoogle/api/client.proto9google/cloud/cloudcontrolspartner/v1beta/violations.proto2� -CloudControlsPartnerMonitoring� -ListViolations?.google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest@.google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse"`�Aparent���QO/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations� - GetViolation=.google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest3.google.cloud.cloudcontrolspartner.v1beta.Violation"^�Aname���QO/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}W�A#cloudcontrolspartner.googleapis.com�A.https://www.googleapis.com/auth/cloud-platformB� -,com.google.cloud.cloudcontrolspartner.v1betaBMonitoringProtoPZ`cloud.google.com/go/cloudcontrolspartner/apiv1beta/cloudcontrolspartnerpb;cloudcontrolspartnerpb�(Google.Cloud.CloudControlsPartner.V1Beta�(Google\\Cloud\\CloudControlsPartner\\V1beta�+Google::Cloud::CloudControlsPartner::V1betabproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/PartnerPermissions.php deleted file mode 100644 index 0e9caaf8f375e0eb125a5cb6cb576163d26c8b4e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1849 zcmbtV(Tw2rb1*;cA5wwnrL7NM+x0^TSQ62W-v9hGJ1 zFr;cC|4&s_>T`dgUyJ_pW zSCGT=qaF`F1|Uh}qJXYQ=q?k0*8uV>FGnd(V8LR>Z})K#;S4hzr}z~w{RB?pv_KqY zJ$6!N3FA~@wZX{})O`R2W)*usC%jcBa8A{&y2m>gS{Xw$i_@@=iiF~v5$f_#Rh=TX z=y~;|`=Ci%!Qlz)3XZC}M)CwQTB57jA*6_vG&`<&R{*ocEZopYEyv+0M(MbRF5;J% zP*q)4wFLRtRu45tzHwLGio?gaDO?+m7j>R;0d*J5DxUk`znh@<`O1;H0ziICskKifcBmyUD`Y*)J6X~9PMGrwzBdUw&)K zpGrnv&n7QLyZ5dIz;Y?w19x1*8(6+?Id(L(eb>;fQ_JXgu1QDWP}6n8_oKkm_#4eL zZ2eiJ+5N~E7@jFsBI3+3{Z31QU{~|~p=b1?r;hjJ%+dOOG;nMya6HR4J8fwf>@=X7 z>w3<)b{2WY&qKox{LYs25QO{d0LGI+q&v24=t0HO542$DcebTR;9wKMic91VUDxq~ zNY{KLI=76chS#~S{?&S`{m}y7*GIZ~n4-h{3=5e%ld|4NDI;_mXZRKW(z(GXudgm= zN=lOXi}`e>BxS+KC89ifKAkDQ5&BC?;xT_XpU&nMwmh6-F9o|MV(Uaa^lOO0E#g@3ZrdUw~E)h6Y(p1%+u&0Ms+ol~;ezH=c*(-T|DA`1jopjeN^r;xzxtKDZ9f#is#+sAx0PsB715&` c^{6t3-*ka4KY3Lz6!bebZ?2(lJ|3U$*ItrOd|8e+>o0ihMkdUxzhv))-| zXORH;ak$|Og5c@D;9^;Q&IB{`=8TLZ_hG%&IM_!m9?)<6kD2;rENd$#M zJMvNGHdL6x_Etru z1S={=%lah91ITEK=1+%^B9_u#Q=%O60f${@wr&zffRCMLC*MnQC2- zlBtxrbweNF#kfj!>Pn?s-|4@kW_h`*EXz+BZ2wUJ>so@wRj?*RUCzN=WusQOurC|? zU@bXMlX3wTD#g8BbJdv4-g#;qgDdEK;wB_ag)o!ynnd|=b(H$~B^qrG*V^7bjX+C)qvcG1g}tJtvrRnYqvcK$DW_kYEdZOuQOf`c3%uF3UuGC|}*x>_9%)bx$ rI||scB(i=iSX-8|9$u17b$@4eA>LI(VQz+ec78}pb<0n|6o7vK`8lYJ diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/GPBMetadata/Google/Cloud/Cloudcontrolspartner/V1Beta/Violations.php deleted file mode 100644 index 4cd9be1697c0589a474a8ecd05d9acad17531b93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3506 zcmb_fPjlN;5XW|t#_P06)uuHW288KMT}Z8|(+(NvLy zBnQ%rk6gI$F__^Sz=7e+iI31L{Rlm=@9B?K$AzTD2l?q~|NeI0?!M0-I{OZM#5agV zT-7H!-#_C0eZo7g?c17d^8L|ZKwMt44;;fJZi(kNBz{|xd2ypDe~7G}J#sZt;fJ<8 zG>M>@_DBz&nr->6ZF-LC`Y2vFyxk|hDjXWNsrrU(c_pR=z)}wgQfY*5v};>PqpQB! zYcPSmIu#f^rv&zPZ`Y9cK7eMbp2zRTg5el={5hk(X=uFXqdJYhZg`4e8NQ*K#xwNv z0Y6Ypk0AR=+QG=usEIsfkSvW9Z}NdmN_*Y05t#>kWMZ3wg+TS1mQP$uHG3Px(_F*x zZMTi2mCBI#F~oGIcr#Q>#Tf&>7}!{;oG|hM@4F+C)XwuR@kg$8pV>_XjN?^r27pz^ z=xrLr)N5p4MeyB9W#ZLD$m>`;B#iK>xnekE1LNwe2hQm=%0~_fU_4Y2w^@cV^lyD( zgjiQ~J%)A@Q?wX^L7}+;KdivLH_lD27_gRDS_jXmEGz|Sz4~sbM0E_o4KWK6eD#Cy z6H9l@6Ty#w2?m}BUD@U8Ic1<1yk&0T_X^t9wte5#nOWu8|TxIE>Y#qzz#=KqXBDMqT)r2+z%ijcQ#OQAK)G*ru1 zY#G=kb z46|$Xuk(;gY;r?bG%OF#JF7h&3v#a9dP`lUW ztI&jGiF2_my{#DuPw6QSAowu@i%I)92QCj;n6Xx$fTH`hHY8P*8cYx8!WBHyn7iav zmGmIx%JToJvK}Z}eFXEN_G_>d`il`cP%WK?okrpUJp;sv0)rt_bsf8xjr~P24eP0g zfkDF6FX4PBmb(Irkt-wDIIE<>A8A;ciW0}edmV8Ln|)PoO52LO*A|tX?QUDFH#eK& z#_~Jd8WfWhHA!lT)on%UG?cc~YS#CZ-KNxH?8_yx7ykf zyR$jd+^4X9f^$RMMkD@}F~e;_Ey>ssyK<*lmzDaK_*kiT_S&+fJQnwqc1L<7*5%h2 zaE>d$`%`kHolad$xHngL40EjTa4T@BD_7-duohtf^-HZ?gf7Kh1lZY*-_scLtoU_Z zY*VP0GnL;{FRH(#;1m{i8f>T;cW_EJVGSHK$y8B`OBAE@E9pIaocJ z%EC`6xH|2t=OEC8Yd``YcD!@t^+?nidK$X5WRdTECE*)u_vlt`WVuAu_SL>gD>fE} z!V|dMAQS8(=20! v0>PCElN|m{QCBJfb$_1CTI)CB$#g9k>JxVWI_?google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest - */ -class AccessApprovalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; - */ - protected $requested_reason = null; - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; - */ - protected $requested_expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` - * @type \Google\Protobuf\Timestamp $request_time - * The time at which approval was requested. - * @type \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $requested_reason - * The justification for which approval is being requested. - * @type \Google\Protobuf\Timestamp $requested_expiration_time - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; - * @return \Google\Cloud\CloudControlsPartner\V1beta\AccessReason|null - */ - public function getRequestedReason() - { - return $this->requested_reason; - } - - public function hasRequestedReason() - { - return isset($this->requested_reason); - } - - public function clearRequestedReason() - { - unset($this->requested_reason); - } - - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason requested_reason = 3; - * @param \Google\Cloud\CloudControlsPartner\V1beta\AccessReason $var - * @return $this - */ - public function setRequestedReason($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason::class); - $this->requested_reason = $var; - - return $this; - } - - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestedExpirationTime() - { - return $this->requested_expiration_time; - } - - public function hasRequestedExpirationTime() - { - return isset($this->requested_expiration_time); - } - - public function clearRequestedExpirationTime() - { - unset($this->requested_expiration_time); - } - - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestedExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->requested_expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php deleted file mode 100644 index 749bbd5e9e97..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.AccessReason - */ -class AccessReason extends \Google\Protobuf\Internal\Message -{ - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; - */ - protected $type = 0; - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - */ - protected $detail = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of access justification. - * @type string $detail - * More detail about certain reason types. See comments for each type above. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); - parent::__construct($data); - } - - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason\Type::class); - $this->type = $var; - - return $this; - } - - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php deleted file mode 100644 index 02d25f921413..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/AccessReason/Type.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.AccessReason.Type - */ -class Type -{ - /** - * Default value for proto, shouldn't be used. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Customer made a request or raised an issue that required the principal to - * access customer data. `detail` is of the form ("#####" is the issue ID): - * - "Feedback Report: #####" - * - "Case Number: #####" - * - "Case ID: #####" - * - "E-PIN Reference: #####" - * - "Google-#####" - * - "T-#####" - * - * Generated from protobuf enum CUSTOMER_INITIATED_SUPPORT = 1; - */ - const CUSTOMER_INITIATED_SUPPORT = 1; - /** - * The principal accessed customer data in order to diagnose or resolve a - * suspected issue in services. Often this access is used to confirm that - * customers are not affected by a suspected service issue or to remediate a - * reversible system issue. - * - * Generated from protobuf enum GOOGLE_INITIATED_SERVICE = 2; - */ - const GOOGLE_INITIATED_SERVICE = 2; - /** - * Google initiated service for security, fraud, abuse, or compliance - * purposes. - * - * Generated from protobuf enum GOOGLE_INITIATED_REVIEW = 3; - */ - const GOOGLE_INITIATED_REVIEW = 3; - /** - * The principal was compelled to access customer data in order to respond - * to a legal third party data request or process, including legal processes - * from customers themselves. - * - * Generated from protobuf enum THIRD_PARTY_DATA_REQUEST = 4; - */ - const THIRD_PARTY_DATA_REQUEST = 4; - /** - * The principal accessed customer data in order to diagnose or resolve a - * suspected issue in services or a known outage. - * - * Generated from protobuf enum GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; - */ - const GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; - /** - * Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but - * with universe agnostic naming. The principal accessed customer data in - * order to diagnose or resolve a suspected issue in services or a known - * outage, or for security, fraud, abuse, or compliance review purposes. - * - * Generated from protobuf enum CLOUD_INITIATED_ACCESS = 6; - */ - const CLOUD_INITIATED_ACCESS = 6; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::CUSTOMER_INITIATED_SUPPORT => 'CUSTOMER_INITIATED_SUPPORT', - self::GOOGLE_INITIATED_SERVICE => 'GOOGLE_INITIATED_SERVICE', - self::GOOGLE_INITIATED_REVIEW => 'GOOGLE_INITIATED_REVIEW', - self::THIRD_PARTY_DATA_REQUEST => 'THIRD_PARTY_DATA_REQUEST', - self::GOOGLE_RESPONSE_TO_PRODUCTION_ALERT => 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT', - self::CLOUD_INITIATED_ACCESS => 'CLOUD_INITIATED_ACCESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\CloudControlsPartner\V1beta\AccessReason_Type::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php deleted file mode 100644 index fd149c354a3e..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CompletionState.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.CompletionState - */ -class CompletionState -{ - /** - * Unspecified completion state. - * - * Generated from protobuf enum COMPLETION_STATE_UNSPECIFIED = 0; - */ - const COMPLETION_STATE_UNSPECIFIED = 0; - /** - * Task started (has start date) but not yet completed. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * Succeeded state. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * Failed state. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * Not applicable state. - * - * Generated from protobuf enum NOT_APPLICABLE = 4; - */ - const NOT_APPLICABLE = 4; - - private static $valueToName = [ - self::COMPLETION_STATE_UNSPECIFIED => 'COMPLETION_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::NOT_APPLICABLE => 'NOT_APPLICABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php deleted file mode 100644 index 30e58e7966ae..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Customer.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Customer - */ -class Customer extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Display name for the customer - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. Container for customer onboarding steps - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $customer_onboarding_state = null; - /** - * Output only. Indicates whether a customer is fully onboarded - * - * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $is_onboarded = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * @type string $display_name - * Required. Display name for the customer - * @type \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $customer_onboarding_state - * Output only. Container for customer onboarding steps - * @type bool $is_onboarded - * Output only. Indicates whether a customer is fully onboarded - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Display name for the customer - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for the customer - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Container for customer onboarding steps - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState|null - */ - public function getCustomerOnboardingState() - { - return $this->customer_onboarding_state; - } - - public function hasCustomerOnboardingState() - { - return isset($this->customer_onboarding_state); - } - - public function clearCustomerOnboardingState() - { - unset($this->customer_onboarding_state); - } - - /** - * Output only. Container for customer onboarding steps - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState customer_onboarding_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState $var - * @return $this - */ - public function setCustomerOnboardingState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingState::class); - $this->customer_onboarding_state = $var; - - return $this; - } - - /** - * Output only. Indicates whether a customer is fully onboarded - * - * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getIsOnboarded() - { - return $this->is_onboarded; - } - - /** - * Output only. Indicates whether a customer is fully onboarded - * - * Generated from protobuf field bool is_onboarded = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setIsOnboarded($var) - { - GPBUtil::checkBool($var); - $this->is_onboarded = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php deleted file mode 100644 index d71f9c029eb1..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingState.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingState - */ -class CustomerOnboardingState extends \Google\Protobuf\Internal\Message -{ - /** - * List of customer onboarding steps - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; - */ - private $onboarding_steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps - * List of customer onboarding steps - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * List of customer onboarding steps - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOnboardingSteps() - { - return $this->onboarding_steps; - } - - /** - * List of customer onboarding steps - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep onboarding_steps = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOnboardingSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep::class); - $this->onboarding_steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php deleted file mode 100644 index bccf8c9fd75e..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep - */ -class CustomerOnboardingStep extends \Google\Protobuf\Internal\Message -{ - /** - * The onboarding step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; - */ - protected $step = 0; - /** - * The starting time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * The completion time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - */ - protected $completion_time = null; - /** - * Output only. Current state of the step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $completion_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $step - * The onboarding step - * @type \Google\Protobuf\Timestamp $start_time - * The starting time of the onboarding step - * @type \Google\Protobuf\Timestamp $completion_time - * The completion time of the onboarding step - * @type int $completion_state - * Output only. Current state of the step - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * The onboarding step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; - * @return int - */ - public function getStep() - { - return $this->step; - } - - /** - * The onboarding step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step step = 1; - * @param int $var - * @return $this - */ - public function setStep($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep\Step::class); - $this->step = $var; - - return $this; - } - - /** - * The starting time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The starting time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The completion time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCompletionTime() - { - return $this->completion_time; - } - - public function hasCompletionTime() - { - return isset($this->completion_time); - } - - public function clearCompletionTime() - { - unset($this->completion_time); - } - - /** - * The completion time of the onboarding step - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCompletionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->completion_time = $var; - - return $this; - } - - /** - * Output only. Current state of the step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompletionState() - { - return $this->completion_state; - } - - /** - * Output only. Current state of the step - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompletionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); - $this->completion_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php deleted file mode 100644 index bdfd00ad05df..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/CustomerOnboardingStep/Step.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.CustomerOnboardingStep.Step - */ -class Step -{ - /** - * Unspecified step - * - * Generated from protobuf enum STEP_UNSPECIFIED = 0; - */ - const STEP_UNSPECIFIED = 0; - /** - * KAJ Enrollment - * - * Generated from protobuf enum KAJ_ENROLLMENT = 1; - */ - const KAJ_ENROLLMENT = 1; - /** - * Customer Environment - * - * Generated from protobuf enum CUSTOMER_ENVIRONMENT = 2; - */ - const CUSTOMER_ENVIRONMENT = 2; - - private static $valueToName = [ - self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', - self::KAJ_ENROLLMENT => 'KAJ_ENROLLMENT', - self::CUSTOMER_ENVIRONMENT => 'CUSTOMER_ENVIRONMENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\CustomerOnboardingStep_Step::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php deleted file mode 100644 index c6499a11c4c7..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmConnection - */ -class EkmConnection extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the EKM connection in the format: - * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} - * - * Generated from protobuf field string connection_name = 1; - */ - protected $connection_name = ''; - /** - * Output only. The connection state - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $connection_state = 0; - /** - * The connection error that occurred if any - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; - */ - protected $connection_error = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $connection_name - * Resource name of the EKM connection in the format: - * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} - * @type int $connection_state - * Output only. The connection state - * @type \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $connection_error - * The connection error that occurred if any - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the EKM connection in the format: - * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} - * - * Generated from protobuf field string connection_name = 1; - * @return string - */ - public function getConnectionName() - { - return $this->connection_name; - } - - /** - * Resource name of the EKM connection in the format: - * projects/{project}/locations/{location}/ekmConnections/{ekm_connection} - * - * Generated from protobuf field string connection_name = 1; - * @param string $var - * @return $this - */ - public function setConnectionName($var) - { - GPBUtil::checkString($var, True); - $this->connection_name = $var; - - return $this; - } - - /** - * Output only. The connection state - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getConnectionState() - { - return $this->connection_state; - } - - /** - * Output only. The connection state - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setConnectionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionState::class); - $this->connection_state = $var; - - return $this; - } - - /** - * The connection error that occurred if any - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; - * @return \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError|null - */ - public function getConnectionError() - { - return $this->connection_error; - } - - public function hasConnectionError() - { - return isset($this->connection_error); - } - - public function clearConnectionError() - { - unset($this->connection_error); - } - - /** - * The connection error that occurred if any - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3; - * @param \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError $var - * @return $this - */ - public function setConnectionError($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection\ConnectionError::class); - $this->connection_error = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php deleted file mode 100644 index 9aca53df2b73..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionError.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError - */ -class ConnectionError extends \Google\Protobuf\Internal\Message -{ - /** - * The error domain for the error - * - * Generated from protobuf field string error_domain = 1; - */ - protected $error_domain = ''; - /** - * The error message for the error - * - * Generated from protobuf field string error_message = 2; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_domain - * The error domain for the error - * @type string $error_message - * The error message for the error - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); - parent::__construct($data); - } - - /** - * The error domain for the error - * - * Generated from protobuf field string error_domain = 1; - * @return string - */ - public function getErrorDomain() - { - return $this->error_domain; - } - - /** - * The error domain for the error - * - * Generated from protobuf field string error_domain = 1; - * @param string $var - * @return $this - */ - public function setErrorDomain($var) - { - GPBUtil::checkString($var, True); - $this->error_domain = $var; - - return $this; - } - - /** - * The error message for the error - * - * Generated from protobuf field string error_message = 2; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * The error message for the error - * - * Generated from protobuf field string error_message = 2; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConnectionError::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionError::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php deleted file mode 100644 index cb82ba238616..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnection/ConnectionState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState - */ -class ConnectionState -{ - /** - * Unspecified EKM connection state - * - * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; - */ - const CONNECTION_STATE_UNSPECIFIED = 0; - /** - * Available EKM connection state - * - * Generated from protobuf enum AVAILABLE = 1; - */ - const AVAILABLE = 1; - /** - * Not available EKM connection state - * - * Generated from protobuf enum NOT_AVAILABLE = 2; - */ - const NOT_AVAILABLE = 2; - /** - * Error EKM connection state - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - /** - * Permission denied EKM connection state - * - * Generated from protobuf enum PERMISSION_DENIED = 4; - */ - const PERMISSION_DENIED = 4; - - private static $valueToName = [ - self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', - self::AVAILABLE => 'AVAILABLE', - self::NOT_AVAILABLE => 'NOT_AVAILABLE', - self::ERROR => 'ERROR', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConnectionState::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection_ConnectionState::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php deleted file mode 100644 index 7394d8a0c25d..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmConnections.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmConnections - */ -class EkmConnections extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The EKM connections associated with the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; - */ - private $ekm_connections; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $ekm_connections - * The EKM connections associated with the workload - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The EKM connections associated with the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEkmConnections() - { - return $this->ekm_connections; - } - - /** - * The EKM connections associated with the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEkmConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection::class); - $this->ekm_connections = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php deleted file mode 100644 index 0f9d50a25cb0..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmMetadata - */ -class EkmMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud EKM partner. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; - */ - protected $ekm_solution = 0; - /** - * Endpoint for sending requests to the EKM for key provisioning during - * Assured Workload creation. - * - * Generated from protobuf field string ekm_endpoint_uri = 2; - */ - protected $ekm_endpoint_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $ekm_solution - * The Cloud EKM partner. - * @type string $ekm_endpoint_uri - * Endpoint for sending requests to the EKM for key provisioning during - * Assured Workload creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud EKM partner. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; - * @return int - */ - public function getEkmSolution() - { - return $this->ekm_solution; - } - - /** - * The Cloud EKM partner. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution ekm_solution = 1; - * @param int $var - * @return $this - */ - public function setEkmSolution($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata\EkmSolution::class); - $this->ekm_solution = $var; - - return $this; - } - - /** - * Endpoint for sending requests to the EKM for key provisioning during - * Assured Workload creation. - * - * Generated from protobuf field string ekm_endpoint_uri = 2; - * @return string - */ - public function getEkmEndpointUri() - { - return $this->ekm_endpoint_uri; - } - - /** - * Endpoint for sending requests to the EKM for key provisioning during - * Assured Workload creation. - * - * Generated from protobuf field string ekm_endpoint_uri = 2; - * @param string $var - * @return $this - */ - public function setEkmEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->ekm_endpoint_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php deleted file mode 100644 index 38cd6012fc5c..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/EkmMetadata/EkmSolution.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.EkmMetadata.EkmSolution - */ -class EkmSolution -{ - /** - * Unspecified EKM solution - * - * Generated from protobuf enum EKM_SOLUTION_UNSPECIFIED = 0; - */ - const EKM_SOLUTION_UNSPECIFIED = 0; - /** - * EKM Partner Fortanix - * - * Generated from protobuf enum FORTANIX = 1; - */ - const FORTANIX = 1; - /** - * EKM Partner FutureX - * - * Generated from protobuf enum FUTUREX = 2; - */ - const FUTUREX = 2; - /** - * EKM Partner Thales - * - * Generated from protobuf enum THALES = 3; - */ - const THALES = 3; - /** - * EKM Partner Virtu - * - * Generated from protobuf enum VIRTRU = 4; - */ - const VIRTRU = 4; - - private static $valueToName = [ - self::EKM_SOLUTION_UNSPECIFIED => 'EKM_SOLUTION_UNSPECIFIED', - self::FORTANIX => 'FORTANIX', - self::FUTUREX => 'FUTUREX', - self::THALES => 'THALES', - self::VIRTRU => 'VIRTRU', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EkmSolution::class, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata_EkmSolution::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php deleted file mode 100644 index d1ae3b4b2209..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetCustomerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest - */ -class GetCustomerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetCustomerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php deleted file mode 100644 index 6381546761ca..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetEkmConnectionsRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest - */ -class GetEkmConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * Please see {@see CloudControlsPartnerCoreClient::ekmConnectionsName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetEkmConnectionsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php deleted file mode 100644 index 158f69da500b..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerPermissionsRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest - */ -class GetPartnerPermissionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource to get in the format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource to get in the format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * Please see {@see CloudControlsPartnerCoreClient::partnerPermissionsName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerPermissionsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource to get in the format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource to get in the format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource to get in the format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php deleted file mode 100644 index 603cedb4779e..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetPartnerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest - */ -class GetPartnerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/partner` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * `organizations/{organization}/locations/{location}/partner` - * Please see {@see CloudControlsPartnerCoreClient::partnerName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetPartnerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * `organizations/{organization}/locations/{location}/partner` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/partner` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/partner` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php deleted file mode 100644 index 129ad52806bf..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetViolationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest - */ -class GetViolationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * Please see {@see CloudControlsPartnerMonitoringClient::violationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetViolationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php deleted file mode 100644 index bf359b185d58..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/GetWorkloadRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest - */ -class GetWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\GetWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php deleted file mode 100644 index a288ad168456..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest - */ -class ListAccessApprovalRequestsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of access requests to return. The service may - * return fewer than this value. If unspecified, at most 500 access requests - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent - * page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * Please see {@see CloudControlsPartnerCoreClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * @type int $page_size - * Optional. The maximum number of access requests to return. The service may - * return fewer than this value. If unspecified, at most 500 access requests - * will be returned. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent - * page. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of access requests to return. The service may - * return fewer than this value. If unspecified, at most 500 access requests - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of access requests to return. The service may - * return fewer than this value. If unspecified, at most 500 access requests - * will be returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent - * page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent - * page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php deleted file mode 100644 index 4e257b26bee2..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListAccessApprovalRequestsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse - */ -class ListAccessApprovalRequestsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of access approval requests - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; - */ - private $access_approval_requests; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $access_approval_requests - * List of access approval requests - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\AccessApprovalRequests::initOnce(); - parent::__construct($data); - } - - /** - * List of access approval requests - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessApprovalRequests() - { - return $this->access_approval_requests; - } - - /** - * List of access approval requests - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest access_approval_requests = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessApprovalRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\AccessApprovalRequest::class); - $this->access_approval_requests = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php deleted file mode 100644 index e5bec2eab2cd..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest - */ -class ListCustomersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource - * Format: `organizations/{organization}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of Customers to return. The service may return fewer - * than this value. If unspecified, at most 500 Customers will be returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomers` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource - * Format: `organizations/{organization}/locations/{location}` - * Please see {@see CloudControlsPartnerCoreClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\ListCustomersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource - * Format: `organizations/{organization}/locations/{location}` - * @type int $page_size - * The maximum number of Customers to return. The service may return fewer - * than this value. If unspecified, at most 500 Customers will be returned. - * @type string $page_token - * A page token, received from a previous `ListCustomers` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource - * Format: `organizations/{organization}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource - * Format: `organizations/{organization}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of Customers to return. The service may return fewer - * than this value. If unspecified, at most 500 Customers will be returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of Customers to return. The service may return fewer - * than this value. If unspecified, at most 500 Customers will be returned. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomers` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomers` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php deleted file mode 100644 index fd4717f8acc4..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListCustomersResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse - */ -class ListCustomersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of customers - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; - */ - private $customers; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $customers - * List of customers - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce(); - parent::__construct($data); - } - - /** - * List of customers - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomers() - { - return $this->customers; - } - - /** - * List of customers - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Customer customers = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Customer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Customer::class); - $this->customers = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php deleted file mode 100644 index 02890b69ad17..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsRequest.php +++ /dev/null @@ -1,287 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest - */ -class ListViolationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource - * Format - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of customers row to return. The service may - * return fewer than this value. If unspecified, at most 10 customers will be - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListViolations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Specifies the interval for retrieving violations. - * if unspecified, all violations will be returned. - * - * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $interval = null; - - /** - * @param string $parent Required. Parent resource - * Format - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * Please see {@see CloudControlsPartnerMonitoringClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\ListViolationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource - * Format - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * @type int $page_size - * Optional. The maximum number of customers row to return. The service may - * return fewer than this value. If unspecified, at most 10 customers will be - * returned. - * @type string $page_token - * Optional. A page token, received from a previous `ListViolations` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * @type \Google\Type\Interval $interval - * Optional. Specifies the interval for retrieving violations. - * if unspecified, all violations will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource - * Format - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource - * Format - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of customers row to return. The service may - * return fewer than this value. If unspecified, at most 10 customers will be - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of customers row to return. The service may - * return fewer than this value. If unspecified, at most 10 customers will be - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListViolations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListViolations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Specifies the interval for retrieving violations. - * if unspecified, all violations will be returned. - * - * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Interval|null - */ - public function getInterval() - { - return $this->interval; - } - - public function hasInterval() - { - return isset($this->interval); - } - - public function clearInterval() - { - unset($this->interval); - } - - /** - * Optional. Specifies the interval for retrieving violations. - * if unspecified, all violations will be returned. - * - * Generated from protobuf field .google.type.Interval interval = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setInterval($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->interval = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php deleted file mode 100644 index d6d5892a6aa9..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListViolationsResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse - */ -class ListViolationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of violation - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; - */ - private $violations; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Workloads that could not be reached due to permission errors or any other - * error. Ref: https://google.aip.dev/217 - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $violations - * List of violation - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Workloads that could not be reached due to permission errors or any other - * error. Ref: https://google.aip.dev/217 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * List of violation - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getViolations() - { - return $this->violations; - } - - /** - * List of violation - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Violation violations = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Violation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Violation::class); - $this->violations = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Workloads that could not be reached due to permission errors or any other - * error. Ref: https://google.aip.dev/217 - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Workloads that could not be reached due to permission errors or any other - * error. Ref: https://google.aip.dev/217 - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php deleted file mode 100644 index 5f150ef9c1ef..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsRequest.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest - */ -class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of workloads to return. The service may return fewer - * than this value. If unspecified, at most 500 workloads will be returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListWorkloads` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field. - * - * @return \Google\Cloud\CloudControlsPartner\V1beta\ListWorkloadsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * @type int $page_size - * The maximum number of workloads to return. The service may return fewer - * than this value. If unspecified, at most 500 workloads will be returned. - * @type string $page_token - * A page token, received from a previous `ListWorkloads` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of workloads to return. The service may return fewer - * than this value. If unspecified, at most 500 workloads will be returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of workloads to return. The service may return fewer - * than this value. If unspecified, at most 500 workloads will be returned. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListWorkloads` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListWorkloads` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php deleted file mode 100644 index 56683381ab44..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/ListWorkloadsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse - */ -class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of customer workloads - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; - */ - private $workloads; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads - * List of customer workloads - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * List of customer workloads - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkloads() - { - return $this->workloads; - } - - /** - * List of customer workloads - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Workload workloads = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Workload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkloads($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Workload::class); - $this->workloads = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php deleted file mode 100644 index 31d052f949a4..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Core::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php deleted file mode 100644 index 73c989a106bf..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Partner.php +++ /dev/null @@ -1,311 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Partner - */ -class Partner extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the partner. - * Format: `organizations/{organization}/locations/{location}/partner` - * Example: "organizations/123456/locations/us-central1/partner" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * List of SKUs the partner is offering - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; - */ - private $skus; - /** - * List of Google Cloud supported EKM partners supported by the partner - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; - */ - private $ekm_solutions; - /** - * List of Google Cloud regions that the partner sells services to customers. - * Valid Google Cloud regions found here: - * https://cloud.google.com/compute/docs/regions-zones - * - * Generated from protobuf field repeated string operated_cloud_regions = 5; - */ - private $operated_cloud_regions; - /** - * Google Cloud project ID in the partner's Google Cloud organization for - * receiving enhanced Logs for Partners. - * - * Generated from protobuf field string partner_project_id = 7; - */ - protected $partner_project_id = ''; - /** - * Output only. Time the resource was created - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last time the resource was updated - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the partner. - * Format: `organizations/{organization}/locations/{location}/partner` - * Example: "organizations/123456/locations/us-central1/partner" - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $skus - * List of SKUs the partner is offering - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $ekm_solutions - * List of Google Cloud supported EKM partners supported by the partner - * @type array|\Google\Protobuf\Internal\RepeatedField $operated_cloud_regions - * List of Google Cloud regions that the partner sells services to customers. - * Valid Google Cloud regions found here: - * https://cloud.google.com/compute/docs/regions-zones - * @type string $partner_project_id - * Google Cloud project ID in the partner's Google Cloud organization for - * receiving enhanced Logs for Partners. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the resource was created - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last time the resource was updated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the partner. - * Format: `organizations/{organization}/locations/{location}/partner` - * Example: "organizations/123456/locations/us-central1/partner" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the partner. - * Format: `organizations/{organization}/locations/{location}/partner` - * Example: "organizations/123456/locations/us-central1/partner" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * List of SKUs the partner is offering - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkus() - { - return $this->skus; - } - - /** - * List of SKUs the partner is offering - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.Sku skus = 3; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\Sku>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkus($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\Sku::class); - $this->skus = $arr; - - return $this; - } - - /** - * List of Google Cloud supported EKM partners supported by the partner - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEkmSolutions() - { - return $this->ekm_solutions; - } - - /** - * List of Google Cloud supported EKM partners supported by the partner - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.EkmMetadata ekm_solutions = 4; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEkmSolutions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmMetadata::class); - $this->ekm_solutions = $arr; - - return $this; - } - - /** - * List of Google Cloud regions that the partner sells services to customers. - * Valid Google Cloud regions found here: - * https://cloud.google.com/compute/docs/regions-zones - * - * Generated from protobuf field repeated string operated_cloud_regions = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperatedCloudRegions() - { - return $this->operated_cloud_regions; - } - - /** - * List of Google Cloud regions that the partner sells services to customers. - * Valid Google Cloud regions found here: - * https://cloud.google.com/compute/docs/regions-zones - * - * Generated from protobuf field repeated string operated_cloud_regions = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperatedCloudRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->operated_cloud_regions = $arr; - - return $this; - } - - /** - * Google Cloud project ID in the partner's Google Cloud organization for - * receiving enhanced Logs for Partners. - * - * Generated from protobuf field string partner_project_id = 7; - * @return string - */ - public function getPartnerProjectId() - { - return $this->partner_project_id; - } - - /** - * Google Cloud project ID in the partner's Google Cloud organization for - * receiving enhanced Logs for Partners. - * - * Generated from protobuf field string partner_project_id = 7; - * @param string $var - * @return $this - */ - public function setPartnerProjectId($var) - { - GPBUtil::checkString($var, True); - $this->partner_project_id = $var; - - return $this; - } - - /** - * Output only. Time the resource was created - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time the resource was created - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last time the resource was updated - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last time the resource was updated - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php deleted file mode 100644 index d20811b7aaba..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions - */ -class PartnerPermissions extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The partner permissions granted for the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; - */ - private $partner_permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * @type array|\Google\Protobuf\Internal\RepeatedField $partner_permissions - * The partner permissions granted for the workload - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\PartnerPermissions::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The partner permissions granted for the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPartnerPermissions() - { - return $this->partner_permissions; - } - - /** - * The partner permissions granted for the workload - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPartnerPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions\Permission::class); - $this->partner_permissions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php deleted file mode 100644 index f3df3144b646..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/PartnerPermissions/Permission.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission - */ -class Permission -{ - /** - * Unspecified partner permission - * - * Generated from protobuf enum PERMISSION_UNSPECIFIED = 0; - */ - const PERMISSION_UNSPECIFIED = 0; - /** - * Permission for Access Transparency and emergency logs - * - * Generated from protobuf enum ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; - */ - const ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS = 1; - /** - * Permission for Assured Workloads monitoring violations - * - * Generated from protobuf enum ASSURED_WORKLOADS_MONITORING = 2; - */ - const ASSURED_WORKLOADS_MONITORING = 2; - /** - * Permission for Access Approval requests - * - * Generated from protobuf enum ACCESS_APPROVAL_REQUESTS = 3; - */ - const ACCESS_APPROVAL_REQUESTS = 3; - /** - * Permission for External Key Manager connection status - * - * Generated from protobuf enum ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; - */ - const ASSURED_WORKLOADS_EKM_CONNECTION_STATUS = 4; - /** - * Permission for support case details for Access Transparency log entries - * - * Generated from protobuf enum ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; - */ - const ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER = 5; - - private static $valueToName = [ - self::PERMISSION_UNSPECIFIED => 'PERMISSION_UNSPECIFIED', - self::ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS => 'ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS', - self::ASSURED_WORKLOADS_MONITORING => 'ASSURED_WORKLOADS_MONITORING', - self::ACCESS_APPROVAL_REQUESTS => 'ACCESS_APPROVAL_REQUESTS', - self::ASSURED_WORKLOADS_EKM_CONNECTION_STATUS => 'ASSURED_WORKLOADS_EKM_CONNECTION_STATUS', - self::ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER => 'ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Permission::class, \Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions_Permission::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php deleted file mode 100644 index 9fb94628a7cb..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Sku.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Sku - */ -class Sku extends \Google\Protobuf\Internal\Message -{ - /** - * Argentum product SKU, that is associated with the partner offerings to - * customers used by Syntro for billing purposes. SKUs can represent resold - * Google products or support services. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Display name of the product identified by the SKU. A partner may want to - * show partner branded names for their offerings such as local sovereign - * cloud solutions. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Argentum product SKU, that is associated with the partner offerings to - * customers used by Syntro for billing purposes. SKUs can represent resold - * Google products or support services. - * @type string $display_name - * Display name of the product identified by the SKU. A partner may want to - * show partner branded names for their offerings such as local sovereign - * cloud solutions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Partners::initOnce(); - parent::__construct($data); - } - - /** - * Argentum product SKU, that is associated with the partner offerings to - * customers used by Syntro for billing purposes. SKUs can represent resold - * Google products or support services. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Argentum product SKU, that is associated with the partner offerings to - * customers used by Syntro for billing purposes. SKUs can represent resold - * Google products or support services. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Display name of the product identified by the SKU. A partner may want to - * show partner branded names for their offerings such as local sovereign - * cloud solutions. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the product identified by the SKU. A partner may want to - * show partner branded names for their offerings such as local sovereign - * cloud solutions. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php deleted file mode 100644 index 125282910530..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation.php +++ /dev/null @@ -1,445 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $begin_time = null; - /** - * Output only. The last time when the Violation record was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolve_time = null; - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $category = ''; - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with - * non-compliant change and resulted this violation. Format: - * `projects/{project_number}/policies/{constraint_name}` - * `folders/{folder_id}/policies/{constraint_name}` - * `organizations/{organization_id}/policies/{constraint_name}` - * - * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $non_compliant_org_policy = ''; - /** - * The folder_id of the violation - * - * Generated from protobuf field int64 folder_id = 9; - */ - protected $folder_id = 0; - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remediation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * @type string $description - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * @type \Google\Protobuf\Timestamp $begin_time - * Output only. Time of the event which triggered the Violation. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last time when the Violation record was updated. - * @type \Google\Protobuf\Timestamp $resolve_time - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * @type string $category - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * @type int $state - * Output only. State of the violation - * @type string $non_compliant_org_policy - * Output only. Immutable. Name of the OrgPolicy which was modified with - * non-compliant change and resulted this violation. Format: - * `projects/{project_number}/policies/{constraint_name}` - * `folders/{folder_id}/policies/{constraint_name}` - * `organizations/{organization_id}/policies/{constraint_name}` - * @type int|string $folder_id - * The folder_id of the violation - * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $remediation - * Output only. Compliance violation remediation - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBeginTime() - { - return $this->begin_time; - } - - public function hasBeginTime() - { - return isset($this->begin_time); - } - - public function clearBeginTime() - { - unset($this->begin_time); - } - - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBeginTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->begin_time = $var; - - return $this; - } - - /** - * Output only. The last time when the Violation record was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last time when the Violation record was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getResolveTime() - { - return $this->resolve_time; - } - - public function hasResolveTime() - { - return isset($this->resolve_time); - } - - public function clearResolveTime() - { - unset($this->resolve_time); - } - - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setResolveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->resolve_time = $var; - - return $this; - } - - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with - * non-compliant change and resulted this violation. Format: - * `projects/{project_number}/policies/{constraint_name}` - * `folders/{folder_id}/policies/{constraint_name}` - * `organizations/{organization_id}/policies/{constraint_name}` - * - * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getNonCompliantOrgPolicy() - { - return $this->non_compliant_org_policy; - } - - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with - * non-compliant change and resulted this violation. Format: - * `projects/{project_number}/policies/{constraint_name}` - * `folders/{folder_id}/policies/{constraint_name}` - * `organizations/{organization_id}/policies/{constraint_name}` - * - * Generated from protobuf field string non_compliant_org_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setNonCompliantOrgPolicy($var) - { - GPBUtil::checkString($var, True); - $this->non_compliant_org_policy = $var; - - return $this; - } - - /** - * The folder_id of the violation - * - * Generated from protobuf field int64 folder_id = 9; - * @return int|string - */ - public function getFolderId() - { - return $this->folder_id; - } - - /** - * The folder_id of the violation - * - * Generated from protobuf field int64 folder_id = 9; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->folder_id = $var; - - return $this; - } - - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation|null - */ - public function getRemediation() - { - return $this->remediation; - } - - public function hasRemediation() - { - return isset($this->remediation); - } - - public function clearRemediation() - { - unset($this->remediation); - } - - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation $var - * @return $this - */ - public function setRemediation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation::class); - $this->remediation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php deleted file mode 100644 index 54d44de4c703..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation - */ -class Remediation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instructions = null; - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - */ - private $compliant_values; - /** - * Output only. Remediation type based on the type of org policy values - * violated - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remediation_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions $instructions - * Required. Remediation instructions to resolve violations - * @type array|\Google\Protobuf\Internal\RepeatedField $compliant_values - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * @type int $remediation_type - * Output only. Remediation type based on the type of org policy values - * violated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions|null - */ - public function getInstructions() - { - return $this->instructions; - } - - public function hasInstructions() - { - return isset($this->instructions); - } - - public function clearInstructions() - { - unset($this->instructions); - } - - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions $var - * @return $this - */ - public function setInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions::class); - $this->instructions = $var; - - return $this; - } - - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompliantValues() - { - return $this->compliant_values; - } - - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompliantValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->compliant_values = $arr; - - return $this; - } - - /** - * Output only. Remediation type based on the type of org policy values - * violated - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRemediationType() - { - return $this->remediation_type; - } - - /** - * Output only. Remediation type based on the type of org policy values - * violated - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRemediationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\RemediationType::class); - $this->remediation_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Remediation::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php deleted file mode 100644 index d2dc4c3979ba..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions - */ -class Instructions extends \Google\Protobuf\Internal\Message -{ - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - */ - protected $gcloud_instructions = null; - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; - */ - protected $console_instructions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $gcloud_instructions - * Remediation instructions to resolve violation via gcloud cli - * @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $console_instructions - * Remediation instructions to resolve violation via cloud console - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud|null - */ - public function getGcloudInstructions() - { - return $this->gcloud_instructions; - } - - public function hasGcloudInstructions() - { - return isset($this->gcloud_instructions); - } - - public function clearGcloudInstructions() - { - unset($this->gcloud_instructions); - } - - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $var - * @return $this - */ - public function setGcloudInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud::class); - $this->gcloud_instructions = $var; - - return $this; - } - - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; - * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console|null - */ - public function getConsoleInstructions() - { - return $this->console_instructions; - } - - public function hasConsoleInstructions() - { - return isset($this->console_instructions); - } - - public function clearConsoleInstructions() - { - unset($this->console_instructions); - } - - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2; - * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $var - * @return $this - */ - public function setConsoleInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console::class); - $this->console_instructions = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Instructions::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php deleted file mode 100644 index c746d8a4efb0..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Console.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console - */ -class Console extends \Google\Protobuf\Internal\Message -{ - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - */ - private $console_uris; - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - */ - private $steps; - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - */ - private $additional_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $console_uris - * Link to console page where violations can be resolved - * @type array|\Google\Protobuf\Internal\RepeatedField $steps - * Steps to resolve violation via cloud console - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links - * Additional urls for more information about steps - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConsoleUris() - { - return $this->console_uris; - } - - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConsoleUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->console_uris = $arr; - - return $this; - } - - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->steps = $arr; - - return $this; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalLinks() - { - return $this->additional_links; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_links = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Console::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Console::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php deleted file mode 100644 index e990db571e51..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/Instructions/Gcloud.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud - */ -class Gcloud extends \Google\Protobuf\Internal\Message -{ - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - */ - private $gcloud_commands; - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - */ - private $steps; - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - */ - private $additional_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $gcloud_commands - * Gcloud command to resolve violation - * @type array|\Google\Protobuf\Internal\RepeatedField $steps - * Steps to resolve violation via gcloud cli - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links - * Additional urls for more information about steps - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce(); - parent::__construct($data); - } - - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGcloudCommands() - { - return $this->gcloud_commands; - } - - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGcloudCommands($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->gcloud_commands = $arr; - - return $this; - } - - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->steps = $arr; - - return $this; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalLinks() - { - return $this->additional_links; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_links = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Gcloud::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_Instructions_Gcloud::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php deleted file mode 100644 index 01ab1e0f7e75..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/Remediation/RemediationType.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.RemediationType - */ -class RemediationType -{ - /** - * Unspecified remediation type - * - * Generated from protobuf enum REMEDIATION_TYPE_UNSPECIFIED = 0; - */ - const REMEDIATION_TYPE_UNSPECIFIED = 0; - /** - * Remediation type for boolean org policy - * - * Generated from protobuf enum REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; - */ - const REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; - /** - * Remediation type for list org policy which have allowed values in the - * monitoring rule - * - * Generated from protobuf enum REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; - */ - const REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; - /** - * Remediation type for list org policy which have denied values in the - * monitoring rule - * - * Generated from protobuf enum REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; - */ - const REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; - /** - * Remediation type for gcp.restrictCmekCryptoKeyProjects - * - * Generated from protobuf enum REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; - */ - const REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; - /** - * Remediation type for resource violation. - * - * Generated from protobuf enum REMEDIATION_RESOURCE_VIOLATION = 5; - */ - const REMEDIATION_RESOURCE_VIOLATION = 5; - - private static $valueToName = [ - self::REMEDIATION_TYPE_UNSPECIFIED => 'REMEDIATION_TYPE_UNSPECIFIED', - self::REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION => 'REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION', - self::REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION', - self::REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION', - self::REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION => 'REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION', - self::REMEDIATION_RESOURCE_VIOLATION => 'REMEDIATION_RESOURCE_VIOLATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RemediationType::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_Remediation_RemediationType::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php deleted file mode 100644 index 0f0aa1953b19..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Violation/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Violation.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Violation is resolved. - * - * Generated from protobuf enum RESOLVED = 1; - */ - const RESOLVED = 1; - /** - * Violation is Unresolved - * - * Generated from protobuf enum UNRESOLVED = 2; - */ - const UNRESOLVED = 2; - /** - * Violation is Exception - * - * Generated from protobuf enum EXCEPTION = 3; - */ - const EXCEPTION = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RESOLVED => 'RESOLVED', - self::UNRESOLVED => 'UNRESOLVED', - self::EXCEPTION => 'EXCEPTION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\CloudControlsPartner\V1beta\Violation_State::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php deleted file mode 100644 index 4427d1c428c1..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload.php +++ /dev/null @@ -1,365 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Workload - */ -class Workload extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Folder id this workload is associated with - * - * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $folder_id = 0; - /** - * Output only. Time the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The name of container folder of the assured workload - * - * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $folder = ''; - /** - * Container for workload onboarding steps. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; - */ - protected $workload_onboarding_state = null; - /** - * Indicates whether a workload is fully onboarded. - * - * Generated from protobuf field bool is_onboarded = 6; - */ - protected $is_onboarded = false; - /** - * The project id of the key management project for the workload - * - * Generated from protobuf field string key_management_project_id = 7; - */ - protected $key_management_project_id = ''; - /** - * The Google Cloud location of the workload - * - * Generated from protobuf field string location = 8; - */ - protected $location = ''; - /** - * Partner associated with this workload. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; - */ - protected $partner = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * @type int|string $folder_id - * Output only. Folder id this workload is associated with - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the resource was created. - * @type string $folder - * Output only. The name of container folder of the assured workload - * @type \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $workload_onboarding_state - * Container for workload onboarding steps. - * @type bool $is_onboarded - * Indicates whether a workload is fully onboarded. - * @type string $key_management_project_id - * The project id of the key management project for the workload - * @type string $location - * The Google Cloud location of the workload - * @type int $partner - * Partner associated with this workload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Folder id this workload is associated with - * - * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getFolderId() - { - return $this->folder_id; - } - - /** - * Output only. Folder id this workload is associated with - * - * Generated from protobuf field int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->folder_id = $var; - - return $this; - } - - /** - * Output only. Time the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The name of container folder of the assured workload - * - * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFolder() - { - return $this->folder; - } - - /** - * Output only. The name of container folder of the assured workload - * - * Generated from protobuf field string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkString($var, True); - $this->folder = $var; - - return $this; - } - - /** - * Container for workload onboarding steps. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; - * @return \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState|null - */ - public function getWorkloadOnboardingState() - { - return $this->workload_onboarding_state; - } - - public function hasWorkloadOnboardingState() - { - return isset($this->workload_onboarding_state); - } - - public function clearWorkloadOnboardingState() - { - unset($this->workload_onboarding_state); - } - - /** - * Container for workload onboarding steps. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState workload_onboarding_state = 5; - * @param \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState $var - * @return $this - */ - public function setWorkloadOnboardingState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingState::class); - $this->workload_onboarding_state = $var; - - return $this; - } - - /** - * Indicates whether a workload is fully onboarded. - * - * Generated from protobuf field bool is_onboarded = 6; - * @return bool - */ - public function getIsOnboarded() - { - return $this->is_onboarded; - } - - /** - * Indicates whether a workload is fully onboarded. - * - * Generated from protobuf field bool is_onboarded = 6; - * @param bool $var - * @return $this - */ - public function setIsOnboarded($var) - { - GPBUtil::checkBool($var); - $this->is_onboarded = $var; - - return $this; - } - - /** - * The project id of the key management project for the workload - * - * Generated from protobuf field string key_management_project_id = 7; - * @return string - */ - public function getKeyManagementProjectId() - { - return $this->key_management_project_id; - } - - /** - * The project id of the key management project for the workload - * - * Generated from protobuf field string key_management_project_id = 7; - * @param string $var - * @return $this - */ - public function setKeyManagementProjectId($var) - { - GPBUtil::checkString($var, True); - $this->key_management_project_id = $var; - - return $this; - } - - /** - * The Google Cloud location of the workload - * - * Generated from protobuf field string location = 8; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The Google Cloud location of the workload - * - * Generated from protobuf field string location = 8; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Partner associated with this workload. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; - * @return int - */ - public function getPartner() - { - return $this->partner; - } - - /** - * Partner associated with this workload. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.Workload.Partner partner = 9; - * @param int $var - * @return $this - */ - public function setPartner($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\Workload\Partner::class); - $this->partner = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php deleted file mode 100644 index 200d42c02ac4..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/Workload/Partner.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.Workload.Partner - */ -class Partner -{ - /** - * Unknown Partner. - * - * Generated from protobuf enum PARTNER_UNSPECIFIED = 0; - */ - const PARTNER_UNSPECIFIED = 0; - /** - * Enum representing S3NS (Thales) partner. - * - * Generated from protobuf enum PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; - */ - const PARTNER_LOCAL_CONTROLS_BY_S3NS = 1; - /** - * Enum representing T_SYSTEM (TSI) partner. - * - * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; - */ - const PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2; - /** - * Enum representing SIA_MINSAIT (Indra) partner. - * - * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; - */ - const PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3; - /** - * Enum representing PSN (TIM) partner. - * - * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; - */ - const PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4; - /** - * Enum representing CNTXT (Kingdom of Saudi Arabia) partner. - * - * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; - */ - const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6; - /** - * Enum representing CNXT (Kingdom of Saudi Arabia) partner offering without - * EKM provisioning. - * - * Generated from protobuf enum PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; - */ - const PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7; - - private static $valueToName = [ - self::PARTNER_UNSPECIFIED => 'PARTNER_UNSPECIFIED', - self::PARTNER_LOCAL_CONTROLS_BY_S3NS => 'PARTNER_LOCAL_CONTROLS_BY_S3NS', - self::PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS => 'PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS', - self::PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT => 'PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT', - self::PARTNER_SOVEREIGN_CONTROLS_BY_PSN => 'PARTNER_SOVEREIGN_CONTROLS_BY_PSN', - self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT', - self::PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM => 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Partner::class, \Google\Cloud\CloudControlsPartner\V1beta\Workload_Partner::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php deleted file mode 100644 index 27796c879a36..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingState.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingState - */ -class WorkloadOnboardingState extends \Google\Protobuf\Internal\Message -{ - /** - * List of workload onboarding steps. - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; - */ - private $onboarding_steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $onboarding_steps - * List of workload onboarding steps. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * List of workload onboarding steps. - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOnboardingSteps() - { - return $this->onboarding_steps; - } - - /** - * List of workload onboarding steps. - * - * Generated from protobuf field repeated .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep onboarding_steps = 1; - * @param array<\Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOnboardingSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep::class); - $this->onboarding_steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php deleted file mode 100644 index 42e6bfd84712..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep - */ -class WorkloadOnboardingStep extends \Google\Protobuf\Internal\Message -{ - /** - * The onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; - */ - protected $step = 0; - /** - * The starting time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * The completion time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - */ - protected $completion_time = null; - /** - * Output only. The completion state of the onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $completion_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $step - * The onboarding step. - * @type \Google\Protobuf\Timestamp $start_time - * The starting time of the onboarding step. - * @type \Google\Protobuf\Timestamp $completion_time - * The completion time of the onboarding step. - * @type int $completion_state - * Output only. The completion state of the onboarding step. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\CustomerWorkloads::initOnce(); - parent::__construct($data); - } - - /** - * The onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; - * @return int - */ - public function getStep() - { - return $this->step; - } - - /** - * The onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step step = 1; - * @param int $var - * @return $this - */ - public function setStep($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep\Step::class); - $this->step = $var; - - return $this; - } - - /** - * The starting time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The starting time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The completion time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCompletionTime() - { - return $this->completion_time; - } - - public function hasCompletionTime() - { - return isset($this->completion_time); - } - - public function clearCompletionTime() - { - unset($this->completion_time); - } - - /** - * The completion time of the onboarding step. - * - * Generated from protobuf field .google.protobuf.Timestamp completion_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCompletionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->completion_time = $var; - - return $this; - } - - /** - * Output only. The completion state of the onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompletionState() - { - return $this->completion_state; - } - - /** - * Output only. The completion state of the onboarding step. - * - * Generated from protobuf field .google.cloud.cloudcontrolspartner.v1beta.CompletionState completion_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompletionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudControlsPartner\V1beta\CompletionState::class); - $this->completion_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php b/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php deleted file mode 100644 index 250843304815..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/proto/src/Google/Cloud/CloudControlsPartner/V1beta/WorkloadOnboardingStep/Step.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.cloudcontrolspartner.v1beta.WorkloadOnboardingStep.Step - */ -class Step -{ - /** - * Unspecified step. - * - * Generated from protobuf enum STEP_UNSPECIFIED = 0; - */ - const STEP_UNSPECIFIED = 0; - /** - * EKM Provisioned step. - * - * Generated from protobuf enum EKM_PROVISIONED = 1; - */ - const EKM_PROVISIONED = 1; - /** - * Signed Access Approval step. - * - * Generated from protobuf enum SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; - */ - const SIGNED_ACCESS_APPROVAL_CONFIGURED = 2; - - private static $valueToName = [ - self::STEP_UNSPECIFIED => 'STEP_UNSPECIFIED', - self::EKM_PROVISIONED => 'EKM_PROVISIONED', - self::SIGNED_ACCESS_APPROVAL_CONFIGURED => 'SIGNED_ACCESS_APPROVAL_CONFIGURED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Step::class, \Google\Cloud\CloudControlsPartner\V1beta\WorkloadOnboardingStep_Step::class); - diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php deleted file mode 100644 index 09c19aa62278..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Customer $response */ - $response = $cloudControlsPartnerCoreClient->getCustomer($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerCoreClient::customerName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]' - ); - - get_customer_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetCustomer_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php deleted file mode 100644 index f49e5fad3624..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EkmConnections $response */ - $response = $cloudControlsPartnerCoreClient->getEkmConnections($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerCoreClient::ekmConnectionsName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]' - ); - - get_ekm_connections_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetEkmConnections_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php deleted file mode 100644 index 6e8039934d34..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Partner $response */ - $response = $cloudControlsPartnerCoreClient->getPartner($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerCoreClient::partnerName('[ORGANIZATION]', '[LOCATION]'); - - get_partner_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartner_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php deleted file mode 100644 index 4d1290326cb0..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PartnerPermissions $response */ - $response = $cloudControlsPartnerCoreClient->getPartnerPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerCoreClient::partnerPermissionsName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]' - ); - - get_partner_permissions_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartnerPermissions_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php deleted file mode 100644 index 517db77037e5..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $cloudControlsPartnerCoreClient->getWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerCoreClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]' - ); - - get_workload_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetWorkload_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php deleted file mode 100644 index 07dbcd899359..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php +++ /dev/null @@ -1,84 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudControlsPartnerCoreClient->listAccessApprovalRequests($request); - - /** @var AccessApprovalRequest $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudControlsPartnerCoreClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]' - ); - - list_access_approval_requests_sample($formattedParent); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListAccessApprovalRequests_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php deleted file mode 100644 index 83e1cbb8dd86..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudControlsPartnerCoreClient->listCustomers($request); - - /** @var Customer $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudControlsPartnerCoreClient::organizationLocationName( - '[ORGANIZATION]', - '[LOCATION]' - ); - - list_customers_sample($formattedParent); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListCustomers_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php deleted file mode 100644 index b6f060e4a8ab..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudControlsPartnerCoreClient->listWorkloads($request); - - /** @var Workload $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudControlsPartnerCoreClient::customerName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]' - ); - - list_workloads_sample($formattedParent); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListWorkloads_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php deleted file mode 100644 index 76e77b0a7d2e..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Violation $response */ - $response = $cloudControlsPartnerMonitoringClient->getViolation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudControlsPartnerMonitoringClient::violationName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]', - '[VIOLATION]' - ); - - get_violation_sample($formattedName); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_GetViolation_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php b/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php deleted file mode 100644 index 456fadac7de1..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudControlsPartnerMonitoringClient->listViolations($request); - - /** @var Violation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudControlsPartnerMonitoringClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[CUSTOMER]', - '[WORKLOAD]' - ); - - list_violations_sample($formattedParent); -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_ListViolations_sync] diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php deleted file mode 100644 index 5fb35e334572..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerCoreClient.php +++ /dev/null @@ -1,586 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cloud_controls_partner_core_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_core_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a customer - * resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * - * @return string The formatted customer resource. - * - * @experimental - */ - public static function customerName(string $organization, string $location, string $customer): string - { - return self::getPathTemplate('customer')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * ekm_connections resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * @param string $workload - * - * @return string The formatted ekm_connections resource. - * - * @experimental - */ - public static function ekmConnectionsName(string $organization, string $location, string $customer, string $workload): string - { - return self::getPathTemplate('ekmConnections')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - 'workload' => $workload, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - * - * @experimental - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a partner - * resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted partner resource. - * - * @experimental - */ - public static function partnerName(string $organization, string $location): string - { - return self::getPathTemplate('partner')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * partner_permissions resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * @param string $workload - * - * @return string The formatted partner_permissions resource. - * - * @experimental - */ - public static function partnerPermissionsName(string $organization, string $location, string $customer, string $workload): string - { - return self::getPathTemplate('partnerPermissions')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - 'workload' => $workload, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workload - * resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * @param string $workload - * - * @return string The formatted workload resource. - * - * @experimental - */ - public static function workloadName(string $organization, string $location, string $customer, string $workload): string - { - return self::getPathTemplate('workload')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - 'workload' => $workload, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customer: organizations/{organization}/locations/{location}/customers/{customer} - * - ekmConnections: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections - * - organizationLocation: organizations/{organization}/locations/{location} - * - partner: organizations/{organization}/locations/{location}/partner - * - partnerPermissions: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions - * - workload: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'cloudcontrolspartner.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets details of a single customer - * - * The async variant is {@see CloudControlsPartnerCoreClient::getCustomerAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/get_customer.php - * - * @param GetCustomerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Customer - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomer(GetCustomerRequest $request, array $callOptions = []): Customer - { - return $this->startApiCall('GetCustomer', $request, $callOptions)->wait(); - } - - /** - * Gets the EKM connections associated with a workload - * - * The async variant is - * {@see CloudControlsPartnerCoreClient::getEkmConnectionsAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/get_ekm_connections.php - * - * @param GetEkmConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EkmConnections - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getEkmConnections(GetEkmConnectionsRequest $request, array $callOptions = []): EkmConnections - { - return $this->startApiCall('GetEkmConnections', $request, $callOptions)->wait(); - } - - /** - * Get details of a Partner. - * - * The async variant is {@see CloudControlsPartnerCoreClient::getPartnerAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner.php - * - * @param GetPartnerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Partner - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getPartner(GetPartnerRequest $request, array $callOptions = []): Partner - { - return $this->startApiCall('GetPartner', $request, $callOptions)->wait(); - } - - /** - * Gets the partner permissions granted for a workload - * - * The async variant is - * {@see CloudControlsPartnerCoreClient::getPartnerPermissionsAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/get_partner_permissions.php - * - * @param GetPartnerPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PartnerPermissions - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getPartnerPermissions(GetPartnerPermissionsRequest $request, array $callOptions = []): PartnerPermissions - { - return $this->startApiCall('GetPartnerPermissions', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single workload - * - * The async variant is {@see CloudControlsPartnerCoreClient::getWorkloadAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/get_workload.php - * - * @param GetWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getWorkload(GetWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('GetWorkload', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Only returns access approval requests directly associated with - * an assured workload folder. - * - * The async variant is - * {@see CloudControlsPartnerCoreClient::listAccessApprovalRequestsAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/list_access_approval_requests.php - * - * @param ListAccessApprovalRequestsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function listAccessApprovalRequests(ListAccessApprovalRequestsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessApprovalRequests', $request, $callOptions); - } - - /** - * Lists customers of a partner identified by its Google Cloud organization ID - * - * The async variant is {@see CloudControlsPartnerCoreClient::listCustomersAsync()} - * . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/list_customers.php - * - * @param ListCustomersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomers(ListCustomersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomers', $request, $callOptions); - } - - /** - * Lists customer workloads for a given customer org id - * - * The async variant is {@see CloudControlsPartnerCoreClient::listWorkloadsAsync()} - * . - * - * @example samples/V1beta/CloudControlsPartnerCoreClient/list_workloads.php - * - * @param ListWorkloadsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listWorkloads(ListWorkloadsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkloads', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php deleted file mode 100644 index 115b68b51155..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/Client/CloudControlsPartnerMonitoringClient.php +++ /dev/null @@ -1,318 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cloud_controls_partner_monitoring_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a violation - * resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * @param string $workload - * @param string $violation - * - * @return string The formatted violation resource. - * - * @experimental - */ - public static function violationName(string $organization, string $location, string $customer, string $workload, string $violation): string - { - return self::getPathTemplate('violation')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - 'workload' => $workload, - 'violation' => $violation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workload - * resource. - * - * @param string $organization - * @param string $location - * @param string $customer - * @param string $workload - * - * @return string The formatted workload resource. - * - * @experimental - */ - public static function workloadName(string $organization, string $location, string $customer, string $workload): string - { - return self::getPathTemplate('workload')->render([ - 'organization' => $organization, - 'location' => $location, - 'customer' => $customer, - 'workload' => $workload, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - violation: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} - * - workload: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'cloudcontrolspartner.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets details of a single Violation. - * - * The async variant is - * {@see CloudControlsPartnerMonitoringClient::getViolationAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerMonitoringClient/get_violation.php - * - * @param GetViolationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Violation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getViolation(GetViolationRequest $request, array $callOptions = []): Violation - { - return $this->startApiCall('GetViolation', $request, $callOptions)->wait(); - } - - /** - * Lists Violations for a workload - * Callers may also choose to read across multiple Customers or for a single - * customer as per - * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash - * character) as a wildcard character instead of {customer} & {workload}. - * Format: - * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` - * - * The async variant is - * {@see CloudControlsPartnerMonitoringClient::listViolationsAsync()} . - * - * @example samples/V1beta/CloudControlsPartnerMonitoringClient/list_violations.php - * - * @param ListViolationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listViolations(ListViolationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListViolations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 26122625ba86..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.cloudcontrolspartner.v1beta", - "libraryPackage": "Google\\Cloud\\CloudControlsPartner\\V1beta", - "services": { - "CloudControlsPartnerCore": { - "clients": { - "grpc": { - "libraryClient": "CloudControlsPartnerCoreGapicClient", - "rpcs": { - "GetCustomer": { - "methods": [ - "getCustomer" - ] - }, - "GetEkmConnections": { - "methods": [ - "getEkmConnections" - ] - }, - "GetPartner": { - "methods": [ - "getPartner" - ] - }, - "GetPartnerPermissions": { - "methods": [ - "getPartnerPermissions" - ] - }, - "GetWorkload": { - "methods": [ - "getWorkload" - ] - }, - "ListAccessApprovalRequests": { - "methods": [ - "listAccessApprovalRequests" - ] - }, - "ListCustomers": { - "methods": [ - "listCustomers" - ] - }, - "ListWorkloads": { - "methods": [ - "listWorkloads" - ] - } - } - } - } - }, - "CloudControlsPartnerMonitoring": { - "clients": { - "grpc": { - "libraryClient": "CloudControlsPartnerMonitoringGapicClient", - "rpcs": { - "GetViolation": { - "methods": [ - "getViolation" - ] - }, - "ListViolations": { - "methods": [ - "listViolations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json deleted file mode 100644 index 84b4915423a3..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_client_config.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetCustomer": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetEkmConnections": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetPartner": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetPartnerPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccessApprovalRequests": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomers": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListWorkloads": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php deleted file mode 100644 index f3f5186c4791..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_descriptor_config.php +++ /dev/null @@ -1,156 +0,0 @@ - [ - 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ - 'GetCustomer' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Customer', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEkmConnections' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\EkmConnections', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPartner' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Partner', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPartnerPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\PartnerPermissions', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Workload', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessApprovalRequests' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccessApprovalRequests', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListAccessApprovalRequestsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListCustomersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkloads' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkloads', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListWorkloadsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customer' => 'organizations/{organization}/locations/{location}/customers/{customer}', - 'ekmConnections' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'partner' => 'organizations/{organization}/locations/{location}/partner', - 'partnerPermissions' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions', - 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php deleted file mode 100644 index 3dd6f9afb6b6..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_core_rest_client_config.php +++ /dev/null @@ -1,117 +0,0 @@ - [ - 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore' => [ - 'GetCustomer' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEkmConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/ekmConnections}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPartner' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/partner}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPartnerPermissions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/partnerPermissions}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessApprovalRequests' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*}/customers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkloads' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*}/workloads', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json deleted file mode 100644 index d91bd4599987..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_client_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetViolation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListViolations": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php deleted file mode 100644 index df21bc1ae902..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ - 'GetViolation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\Violation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListViolations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getViolations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudControlsPartner\V1beta\ListViolationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'violation' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}', - 'workload' => 'organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php b/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php deleted file mode 100644 index f3eb5ee07389..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/src/V1beta/resources/cloud_controls_partner_monitoring_rest_client_config.php +++ /dev/null @@ -1,51 +0,0 @@ - [ - 'google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring' => [ - 'GetViolation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=organizations/*/locations/*/customers/*/workloads/*/violations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListViolations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/violations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php deleted file mode 100644 index 8fc6af6a3c65..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerCoreClientTest.php +++ /dev/null @@ -1,662 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CloudControlsPartnerCoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CloudControlsPartnerCoreClient($options); - } - - /** @test */ - public function getCustomerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $isOnboarded = false; - $expectedResponse = new Customer(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setIsOnboarded($isOnboarded); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); - $request = (new GetCustomerRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomer($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); - $request = (new GetCustomerRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomer($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEkmConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new EkmConnections(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetEkmConnectionsRequest()) - ->setName($formattedName); - $response = $gapicClient->getEkmConnections($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetEkmConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEkmConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ekmConnectionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetEkmConnectionsRequest()) - ->setName($formattedName); - try { - $gapicClient->getEkmConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPartnerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $partnerProjectId = 'partnerProjectId438161368'; - $expectedResponse = new Partner(); - $expectedResponse->setName($name2); - $expectedResponse->setPartnerProjectId($partnerProjectId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); - $request = (new GetPartnerRequest()) - ->setName($formattedName); - $response = $gapicClient->getPartner($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartner', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPartnerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->partnerName('[ORGANIZATION]', '[LOCATION]'); - $request = (new GetPartnerRequest()) - ->setName($formattedName); - try { - $gapicClient->getPartner($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPartnerPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new PartnerPermissions(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetPartnerPermissionsRequest()) - ->setName($formattedName); - $response = $gapicClient->getPartnerPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartnerPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPartnerPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->partnerPermissionsName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetPartnerPermissionsRequest()) - ->setName($formattedName); - try { - $gapicClient->getPartnerPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $folderId = 527488652; - $folder = 'folder-1268966290'; - $isOnboarded = false; - $keyManagementProjectId = 'keyManagementProjectId1004472221'; - $location = 'location1901043637'; - $expectedResponse = new Workload(); - $expectedResponse->setName($name2); - $expectedResponse->setFolderId($folderId); - $expectedResponse->setFolder($folder); - $expectedResponse->setIsOnboarded($isOnboarded); - $expectedResponse->setKeyManagementProjectId($keyManagementProjectId); - $expectedResponse->setLocation($location); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessApprovalRequestsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessApprovalRequestsElement = new AccessApprovalRequest(); - $accessApprovalRequests = [ - $accessApprovalRequestsElement, - ]; - $expectedResponse = new ListAccessApprovalRequestsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessApprovalRequests($accessApprovalRequests); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new ListAccessApprovalRequestsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessApprovalRequests($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessApprovalRequests()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListAccessApprovalRequests', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessApprovalRequestsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new ListAccessApprovalRequestsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessApprovalRequests($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customersElement = new Customer(); - $customers = [ - $customersElement, - ]; - $expectedResponse = new ListCustomersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomers($customers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListCustomersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListCustomers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListCustomersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workloadsElement = new Workload(); - $workloads = [ - $workloadsElement, - ]; - $expectedResponse = new ListWorkloadsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkloads($workloads); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkloads($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkloads()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListWorkloads', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkloads($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomerAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $isOnboarded = false; - $expectedResponse = new Customer(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setIsOnboarded($isOnboarded); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customerName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]'); - $request = (new GetCustomerRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomerAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php b/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php deleted file mode 100644 index 840872e3024d..000000000000 --- a/owl-bot-staging/ControlsPartner/v1beta/tests/Unit/V1beta/Client/CloudControlsPartnerMonitoringClientTest.php +++ /dev/null @@ -1,245 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CloudControlsPartnerMonitoringClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CloudControlsPartnerMonitoringClient($options); - } - - /** @test */ - public function getViolationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $category = 'category50511102'; - $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; - $folderId = 527488652; - $expectedResponse = new Violation(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setCategory($category); - $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); - $expectedResponse->setFolderId($folderId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); - $request = (new GetViolationRequest()) - ->setName($formattedName); - $response = $gapicClient->getViolation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getViolationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); - $request = (new GetViolationRequest()) - ->setName($formattedName); - try { - $gapicClient->getViolation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listViolationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $violationsElement = new Violation(); - $violations = [ - $violationsElement, - ]; - $expectedResponse = new ListViolationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setViolations($violations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new ListViolationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listViolations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getViolations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/ListViolations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listViolationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]'); - $request = (new ListViolationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listViolations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getViolationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $category = 'category50511102'; - $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; - $folderId = 527488652; - $expectedResponse = new Violation(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setCategory($category); - $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); - $expectedResponse->setFolderId($folderId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[CUSTOMER]', '[WORKLOAD]', '[VIOLATION]'); - $request = (new GetViolationRequest()) - ->setName($formattedName); - $response = $gapicClient->getViolationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}