From 03ebd99586660c51738d0d4417f20d0974bd0ea2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Apr 2026 09:07:03 +0000 Subject: [PATCH 1/2] docs: Updated docs for the APIs feat: Adding client libraries for Deployment API Compliance Manager Service PiperOrigin-RevId: 903655636 Source-Link: https://github.com/googleapis/googleapis/commit/e9975a386360bc96d03ef289c7fc2cc20b7b5f8b Source-Link: https://github.com/googleapis/googleapis-gen/commit/8a09aece0a3cd48ce8db0159887fe00b2f9583ac Copy-Tag: eyJwIjoiU2VjdXJpdHlDb21wbGlhbmNlLy5Pd2xCb3QueWFtbCIsImgiOiI4YTA5YWVjZTBhM2NkNDhjZThkYjAxNTk4ODdmZTAwYjJmOTU4M2FjIn0= --- .../Cloudsecuritycompliance/V1/Audit.php | 31 + .../V1/CmEnrollmentService.php | 29 + .../Cloudsecuritycompliance/V1/Common.php | 27 + .../Cloudsecuritycompliance/V1/Config.php | 31 + .../Cloudsecuritycompliance/V1/Deployment.php | 32 + .../Cloudsecuritycompliance/V1/Monitoring.php | 32 + ...regateFrameworkComplianceReportRequest.php | 179 ++++ ...egateFrameworkComplianceReportResponse.php | 67 ++ .../V1/AggregatedComplianceReport.php | 121 +++ .../V1/AllowedValues.php | 67 ++ .../V1/AttributeSubstitutionRule.php | 71 ++ .../V1/AuditConfig.php | 71 ++ .../V1/AuditConfig/CmEligibleDestination.php | 79 ++ .../V1/BucketDestination.php | 101 ++ .../V1/BucketDestination/Format.php | 54 + .../V1/CELExpression.php | 123 +++ .../CalculateEffectiveCmEnrollmentRequest.php | 103 ++ ...CalculateEffectiveCmEnrollmentResponse.php | 77 ++ .../V1/CloudControl.php | 614 +++++++++++ .../V1/CloudControl/Type.php | 61 ++ .../V1/CloudControlAssessmentDetails.php | 101 ++ .../V1/CloudControlAuditDetails.php | 247 +++++ .../V1/CloudControlCategory.php | 180 ++++ .../V1/CloudControlDeployment.php | 554 ++++++++++ .../V1/CloudControlDeploymentReference.php | 83 ++ .../V1/CloudControlDetails.php | 163 +++ .../V1/CloudControlGroupAuditDetails.php | 495 +++++++++ .../V1/CloudControlMetadata.php | 112 ++ .../V1/CloudControlReport.php | 584 +++++++++++ .../V1/CloudProvider.php | 68 ++ .../V1/CmEnrollment.php | 173 +++ .../V1/ComplianceState.php | 82 ++ .../CloudSecurityCompliance/V1/Control.php | 525 ++++++++++ .../V1/Control/Family.php | 173 +++ .../V1/ControlAssessmentDetails.php | 173 +++ .../V1/ControlComplianceSummary.php | 411 ++++++++ .../V1/ControlFamily.php | 101 ++ .../V1/CreateCloudControlRequest.php | 189 ++++ .../V1/CreateFrameworkAuditRequest.php | 201 ++++ .../V1/CreateFrameworkDeploymentRequest.php | 193 ++++ .../V1/CreateFrameworkRequest.php | 184 ++++ .../V1/DeleteCloudControlRequest.php | 107 ++ .../V1/DeleteFrameworkDeploymentRequest.php | 160 +++ .../V1/DeleteFrameworkRequest.php | 102 ++ .../V1/DeploymentState.php | 109 ++ .../V1/EnforcementMode.php | 68 ++ .../V1/EvaluationState.php | 68 ++ .../V1/EvidenceDetails.php | 135 +++ .../FetchFrameworkComplianceReportRequest.php | 159 +++ .../V1/FindingClass.php | 117 +++ .../V1/FindingDetails.php | 189 ++++ .../V1/FindingSummary.php | 281 +++++ .../V1/FolderCreationConfig.php | 106 ++ .../CloudSecurityCompliance/V1/Framework.php | 411 ++++++++ .../V1/Framework/FrameworkType.php | 61 ++ .../V1/FrameworkAudit.php | 515 +++++++++ .../V1/FrameworkAudit/State.php | 82 ++ .../V1/FrameworkAuditDestination.php | 75 ++ .../V1/FrameworkCategory.php | 82 ++ .../V1/FrameworkComplianceReport.php | 461 ++++++++ .../V1/FrameworkComplianceSummary.php | 461 ++++++++ .../V1/FrameworkComplianceSummaryView.php | 66 ++ .../V1/FrameworkDeployment.php | 603 +++++++++++ .../V1/FrameworkDeploymentReference.php | 201 ++++ .../V1/FrameworkReference.php | 122 +++ ...nerateFrameworkAuditScopeReportRequest.php | 175 ++++ .../Format.php | 54 + ...erateFrameworkAuditScopeReportResponse.php | 151 +++ .../V1/GetCloudControlDeploymentRequest.php | 101 ++ .../V1/GetCloudControlRequest.php | 145 +++ .../V1/GetFrameworkAuditRequest.php | 103 ++ .../V1/GetFrameworkDeploymentRequest.php | 101 ++ .../V1/GetFrameworkRequest.php | 145 +++ .../CloudSecurityCompliance/V1/IntRange.php | 109 ++ .../V1/ListCloudControlDeploymentsRequest.php | 264 +++++ .../ListCloudControlDeploymentsResponse.php | 105 ++ .../V1/ListCloudControlsRequest.php | 197 ++++ .../V1/ListCloudControlsResponse.php | 105 ++ .../ListControlComplianceSummariesRequest.php | 246 +++++ ...ListControlComplianceSummariesResponse.php | 101 ++ .../V1/ListFindingSummariesRequest.php | 246 +++++ .../V1/ListFindingSummariesResponse.php | 101 ++ .../V1/ListFrameworkAuditsRequest.php | 237 +++++ .../V1/ListFrameworkAuditsResponse.php | 105 ++ ...istFrameworkComplianceSummariesRequest.php | 226 ++++ ...stFrameworkComplianceSummariesResponse.php | 102 ++ .../V1/ListFrameworkDeploymentsRequest.php | 269 +++++ .../V1/ListFrameworkDeploymentsResponse.php | 105 ++ .../V1/ListFrameworksRequest.php | 181 ++++ .../V1/ListFrameworksResponse.php | 106 ++ .../ManualCloudControlAssessmentDetails.php | 67 ++ .../V1/ObservationDetails.php | 135 +++ .../V1/OperationMetadata.php | 307 ++++++ .../CloudSecurityCompliance/V1/ParamValue.php | 207 ++++ .../CloudSecurityCompliance/V1/Parameter.php | 113 ++ .../V1/ParameterSpec.php | 367 +++++++ .../V1/ParameterSpec/ValueType.php | 82 ++ .../V1/ParameterSubstitutionRule.php | 108 ++ .../V1/PlaceholderSubstitutionRule.php | 67 ++ .../V1/ProjectCreationConfig.php | 140 +++ .../V1/RegexpPattern.php | 67 ++ .../RegulatoryControlResponsibilityType.php | 68 ++ .../V1/ReportSummary.php | 203 ++++ .../Cloud/CloudSecurityCompliance/V1/Rule.php | 143 +++ .../V1/RuleActionType.php | 68 ++ .../CloudSecurityCompliance/V1/Severity.php | 104 ++ .../V1/SimilarControls.php | 101 ++ .../CloudSecurityCompliance/V1/StringList.php | 67 ++ .../V1/TargetResourceConfig.php | 121 +++ .../V1/TargetResourceCreationConfig.php | 108 ++ .../V1/TargetResourceDetails.php | 307 ++++++ .../V1/TargetResourceType.php | 75 ++ .../CloudSecurityCompliance/V1/Trend.php | 115 ++ .../V1/UpdateCloudControlRequest.php | 193 ++++ .../V1/UpdateCmEnrollmentRequest.php | 141 +++ .../V1/UpdateFrameworkRequest.php | 190 ++++ .../CloudSecurityCompliance/V1/Validation.php | 141 +++ .../V1/AuditClient/create_framework_audit.php | 94 ++ .../generate_framework_audit_scope_report.php | 86 ++ .../V1/AuditClient/get_framework_audit.php | 77 ++ .../samples/V1/AuditClient/get_location.php | 57 + .../V1/AuditClient/list_framework_audits.php | 82 ++ .../samples/V1/AuditClient/list_locations.php | 77 ++ .../calculate_effective_cm_enrollment.php | 80 ++ .../get_location.php | 57 + .../list_locations.php | 77 ++ .../update_cm_enrollment.php | 62 ++ .../V1/ConfigClient/create_cloud_control.php | 97 ++ .../V1/ConfigClient/create_framework.php | 95 ++ .../V1/ConfigClient/delete_cloud_control.php | 82 ++ .../V1/ConfigClient/delete_framework.php | 80 ++ .../V1/ConfigClient/get_cloud_control.php | 83 ++ .../samples/V1/ConfigClient/get_framework.php | 81 ++ .../samples/V1/ConfigClient/get_location.php | 57 + .../V1/ConfigClient/list_cloud_controls.php | 83 ++ .../V1/ConfigClient/list_frameworks.php | 83 ++ .../V1/ConfigClient/list_locations.php | 77 ++ .../V1/ConfigClient/update_cloud_control.php | 89 ++ .../V1/ConfigClient/update_framework.php | 89 ++ .../create_framework_deployment.php | 140 +++ .../delete_framework_deployment.php | 89 ++ .../get_cloud_control_deployment.php | 79 ++ .../get_framework_deployment.php | 79 ++ .../V1/DeploymentClient/get_location.php | 57 + .../list_cloud_control_deployments.php | 79 ++ .../list_framework_deployments.php | 80 ++ .../V1/DeploymentClient/list_locations.php | 77 ++ .../aggregate_framework_compliance_report.php | 79 ++ .../fetch_framework_compliance_report.php | 75 ++ .../V1/MonitoringClient/get_location.php | 57 + .../list_control_compliance_summaries.php | 80 ++ .../list_finding_summaries.php | 76 ++ .../list_framework_compliance_summaries.php | 76 ++ .../V1/MonitoringClient/list_locations.php | 77 ++ .../v1/src/V1/Client/AuditClient.php | 544 ++++++++++ .../V1/Client/CmEnrollmentServiceClient.php | 400 +++++++ .../v1/src/V1/Client/ConfigClient.php | 770 ++++++++++++++ .../v1/src/V1/Client/DeploymentClient.php | 724 +++++++++++++ .../v1/src/V1/Client/MonitoringClient.php | 559 ++++++++++ .../v1/src/V1/gapic_metadata.json | 239 +++++ .../src/V1/resources/audit_client_config.json | 74 ++ .../V1/resources/audit_descriptor_config.php | 132 +++ .../V1/resources/audit_rest_client_config.php | 227 ++++ .../cm_enrollment_service_client_config.json | 54 + ...m_enrollment_service_descriptor_config.php | 92 ++ ..._enrollment_service_rest_client_config.php | 183 ++++ .../V1/resources/config_client_config.json | 104 ++ .../V1/resources/config_descriptor_config.php | 210 ++++ .../resources/config_rest_client_config.php | 329 ++++++ .../resources/deployment_client_config.json | 84 ++ .../deployment_descriptor_config.php | 177 ++++ .../deployment_rest_client_config.php | 241 +++++ .../resources/monitoring_client_config.json | 69 ++ .../monitoring_descriptor_config.php | 155 +++ .../monitoring_rest_client_config.php | 242 +++++ .../tests/Unit/V1/Client/AuditClientTest.php | 646 ++++++++++++ .../Client/CmEnrollmentServiceClientTest.php | 347 ++++++ .../tests/Unit/V1/Client/ConfigClientTest.php | 990 ++++++++++++++++++ .../Unit/V1/Client/DeploymentClientTest.php | 853 +++++++++++++++ .../Unit/V1/Client/MonitoringClientTest.php | 580 ++++++++++ 180 files changed, 31258 insertions(+) create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Common.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php create mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php new file mode 100644 index 000000000000..83587ef36fed --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\xCA9\x0A3google/cloud/cloudsecuritycompliance/v1/audit.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x82\x02\x0A(GenerateFrameworkAuditScopeReportRequest\x12\x12\x0A\x05scope\x18\x01 \x01(\x09B\x03\xE0A\x02\x12t\x0A\x0Dreport_format\x18\x02 \x01(\x0E2X.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.FormatB\x03\xE0A\x02\x12!\x0A\x14compliance_framework\x18\x03 \x01(\x09B\x03\xE0A\x02\")\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ODF\x10\x01\"\xA6\x04\x0A)GenerateFrameworkAuditScopeReportResponse\x12\x1F\x0A\x15scope_report_contents\x18\x03 \x01(\x0CH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12!\x0A\x14compliance_framework\x18\x02 \x01(\x09B\x03\xE0A\x02:\x91\x03\xEAA\x8D\x03\x0APcloudsecuritycompliance.googleapis.com/GenerateFrameworkAuditScopeReportResponse\x12sprojects/{project}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}\x12}organizations/{organization}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}*\x1AframeworkAuditScopeReports2)generateFrameworkAuditScopeReportResponseB\x0E\x0A\x0Caudit_report\"\xA8\x01\x0A\x0DReportSummary\x12\x18\x0A\x0Btotal_count\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1C\x0A\x0Fcompliant_count\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1C\x0A\x0Fviolation_count\x18\x03 \x01(\x05B\x03\xE0A\x03\x12'\x0A\x1Amanual_review_needed_count\x18\x04 \x01(\x05B\x03\xE0A\x03\x12\x18\x0A\x0Berror_count\x18\x05 \x01(\x05B\x03\xE0A\x03\"\xE4\x01\x0A\x1BCreateFrameworkAuditRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12\x1F\x0A\x12framework_audit_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12U\x0A\x0Fframework_audit\x18\x03 \x01(\x0B27.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditB\x03\xE0A\x02\"}\x0A\x19FrameworkAuditDestination\x12L\x0A\x06bucket\x18\x01 \x01(\x0B2:.google.cloud.cloudsecuritycompliance.v1.BucketDestinationH\x00B\x12\x0A\x10destination_type\"\xBF\x01\x0A\x11BucketDestination\x12\x17\x0A\x0Abucket_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12f\x0A\x16framework_audit_format\x18\x03 \x01(\x0E2A.google.cloud.cloudsecuritycompliance.v1.BucketDestination.FormatB\x03\xE0A\x01\")\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ODF\x10\x01\"\xBD\x09\x0A\x0EFrameworkAudit\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x08\xE0A\x03\x12\x1F\x0A\x12framework_audit_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14compliance_framework\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05scope\x18\x04 \x01(\x09B\x03\xE0A\x03\x12l\x0A\x1Bframework_audit_destination\x18\x05 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bfinish_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x08 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x09 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\x12v\x0A!cloud_control_group_audit_details\x18\x0A \x03(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsB\x03\xE0A\x01\x12k\x0A\x1Bcloud_control_audit_details\x18\x0B \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsB\x03\xE0A\x01\x12\x19\x0A\x0Coperation_id\x18\x0C \x01(\x09B\x03\xE0A\x03\x12Q\x0A\x05state\x18\x0D \x01(\x0E2=.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.StateB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SCHEDULED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09UPLOADING\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05:\xFC\x01\xEAA\xF8\x01\x0A5cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12Iprojects/{project}/locations/{location}/frameworkAudits/{framework_audit}\x12Sorganizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}*\x0FframeworkAudits2\x0EframeworkAudit\"\xB1\x01\x0A\x1AListFrameworkAuditsRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x89\x01\x0A\x1BListFrameworkAuditsResponse\x12Q\x0A\x10framework_audits\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x18GetFrameworkAuditRequest\x12K\x0A\x04name\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x0A5cloudsecuritycompliance.googleapis.com/FrameworkAudit\"\xE8\x05\x0A\x1DCloudControlGroupAuditDetails\x12#\x0A\x16cloud_control_group_id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13responsibility_type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12.\x0A!google_responsibility_description\x18\x05 \x01(\x09B\x03\xE0A\x03\x121\x0A\$google_responsibility_implementation\x18\x06 \x01(\x09B\x03\xE0A\x03\x120\x0A#customer_responsibility_description\x18\x07 \x01(\x09B\x03\xE0A\x03\x123\x0A&customer_responsibility_implementation\x18\x08 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x09 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12\x17\x0A\x0Acontrol_id\x18\x0A \x01(\x09B\x03\xE0A\x03\x12S\x0A\x0Econtrol_family\x18\x0B \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xE0A\x03\x12e\x0A\x15cloud_control_details\x18\x0C \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x0D \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\"\xA4\x02\x0A\x0EFindingDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12U\x0A\x0Bobservation\x18\x03 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsB\x03\xE0A\x03\x12O\x0A\x08evidence\x18\x04 \x01(\x0B28.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsB\x03\xE0A\x03\"d\x0A\x12ObservationDetails\x12\x1A\x0A\x0Dcurrent_value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eexpected_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08guidance\x18\x03 \x01(\x09B\x03\xE0A\x03\"Z\x0A\x0FEvidenceDetails\x12\x15\x0A\x08resource\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07service\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Devidence_path\x18\x03 \x01(\x09B\x03\xE0A\x03\"\xFB\x02\x0A\x18CloudControlAuditDetails\x12\x1A\x0A\x0Dcloud_control\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19cloud_control_description\x18\x03 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x05 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\x12N\x0A\x08findings\x18\x06 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingDetailsB\x03\xE0A\x03*\x8F\x01\x0A\x0FComplianceState\x12 \x0A\x1CCOMPLIANCE_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09COMPLIANT\x10\x01\x12\x0D\x0A\x09VIOLATION\x10\x02\x12\x18\x0A\x14MANUAL_REVIEW_NEEDED\x10\x03\x12\x09\x0A\x05ERROR\x10\x04\x12\x17\x0A\x13AUDIT_NOT_SUPPORTED\x10\x052\x9C\x0E\x0A\x05Audit\x12\xB3\x04\x0A!GenerateFrameworkAuditScopeReport\x12Q.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest\x1AR.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse\"\xE6\x02\xDAA(scope,report_format,compliance_framework\x82\xD3\xE4\x93\x02\xB4\x02\"^/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*Zd\"_/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*Zi\"d/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*\x12\xD9\x03\x0A\x14CreateFrameworkAudit\x12D.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest\x1A\x1D.google.longrunning.Operation\"\xDB\x02\xCAAK\x0A\x0EFrameworkAudit\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA)parent,framework_audit,framework_audit_id\x82\xD3\xE4\x93\x02\xDA\x01\"8/v1/{parent=organizations/*/locations/*}/frameworkAudits:\x0Fframework_auditZE\"2/v1/{parent=folders/*/locations/*}/frameworkAudits:\x0Fframework_auditZF\"3/v1/{parent=projects/*/locations/*}/frameworkAudits:\x0Fframework_audit\x12\xDA\x02\x0A\x13ListFrameworkAudits\x12C.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest\x1AD.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse\"\xB7\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xA7\x01\x128/v1/{parent=organizations/*/locations/*}/frameworkAuditsZ4\x122/v1/{parent=folders/*/locations/*}/frameworkAuditsZ5\x123/v1/{parent=projects/*/locations/*}/frameworkAudits\x12\xC7\x02\x0A\x11GetFrameworkAudit\x12A.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest\x1A7.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit\"\xB5\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xA7\x01\x128/v1/{name=organizations/*/locations/*/frameworkAudits/*}Z4\x122/v1/{name=folders/*/locations/*/frameworkAudits/*}Z5\x123/v1/{name=projects/*/locations/*/frameworkAudits/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA3\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0AAuditProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php new file mode 100644 index 000000000000..da2787e8b5fd --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xF7\x12\x0ACgoogle/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xA4\x01\x0A\x19UpdateCmEnrollmentRequest\x12Q\x0A\x0Dcm_enrollment\x18\x01 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A%CalculateEffectiveCmEnrollmentRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CmEnrollment\"\xD8\x02\x0A\x0CCmEnrollment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x15\x0A\x08enrolled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12O\x0A\x0Caudit_config\x18\x03 \x01(\x0B24.google.cloud.cloudsecuritycompliance.v1.AuditConfigB\x03\xE0A\x01:\xCC\x01\xEAA\xC8\x01\x0A3cloudsecuritycompliance.googleapis.com/CmEnrollment\x12>organizations/{organization}/locations/{location}/cmEnrollment\x124projects/{project}/locations/{location}/cmEnrollment*\x0DcmEnrollments2\x0CcmEnrollment\"v\x0A&CalculateEffectiveCmEnrollmentResponse\x12L\x0A\x0Dcm_enrollment\x18\x01 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CmEnrollment\"\xBF\x01\x0A\x0BAuditConfig\x12e\x0A\x0Cdestinations\x18\x01 \x03(\x0B2J.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationB\x03\xE0A\x02\x1AI\x0A\x15CmEligibleDestination\x12\x14\x0A\x0Agcs_bucket\x18\x01 \x01(\x09H\x00B\x1A\x0A\x18cm_eligible_destinations2\xA3\x07\x0A\x13CmEnrollmentService\x12\xA4\x03\x0A\x12UpdateCmEnrollment\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CmEnrollment\"\x92\x02\xDAA\x19cm_enrollment,update_mask\x82\xD3\xE4\x93\x02\xEF\x012A/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}:\x0Dcm_enrollmentZL2;/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}:\x0Dcm_enrollmentZM2internalAddGeneratedFile( + "\x0A\xC0A\x0A4google/cloud/cloudsecuritycompliance/v1/common.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD4\x07\x0A\x09Framework\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x04type\x18\x06 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xE0A\x03\x12`\x0A\x15cloud_control_details\x18\x08 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x01\x12Q\x0A\x08category\x18\x09 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0A \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x0B \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x03\x12b\x0A\x1Bsupported_enforcement_modes\x18\x0D \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\"I\x0A\x0DFrameworkType\x12\x1E\x0A\x1AFRAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08BUILT_IN\x10\x01\x12\x0A\x0A\x06CUSTOM\x10\x02:\xD7\x01\xEAA\xD3\x01\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}\x12>projects/{project}/locations/{location}/frameworks/{framework}*\x0Aframeworks2\x09framework\"\x95\x01\x0A\x13CloudControlDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x02\x12K\x0A\x0Aparameters\x18\x04 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01\"\x9C\x01\x0A\x12FrameworkReference\x12K\x0A\x09framework\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12#\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01B\x14\x0A\x12_major_revision_id\"q\x0A\x09Parameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Fparameter_value\x18\x02 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"\xA1\x09\x0A\x0CCloudControl\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x1Bsupported_enforcement_modes\x18\x07 \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\x12S\x0A\x0Eparameter_spec\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12A\x0A\x05rules\x18\x09 \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xE0A\x01\x12H\x0A\x08severity\x18\x0B \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xE0A\x01\x12\x1D\x0A\x10finding_category\x18\x0C \x01(\x09B\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0D \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x01\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\x12\x1E\x0A\x11remediation_steps\x18\x0F \x01(\x09B\x03\xE0A\x01\x12V\x0A\x0Acategories\x18\x10 \x03(\x0E2=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x12 \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x01\"6\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CUSTOM\x10\x01\x12\x0C\x0A\x08BUILT_IN\x10\x02:\xEE\x01\xEAA\xEA\x01\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}\x12Eprojects/{project}/locations/{location}/cloudControls/{cloud_control}*\x0DcloudControls2\x0CcloudControl\"\x8E\x05\x0A\x0DParameterSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bis_required\x18\x04 \x01(\x08B\x03\xE0A\x02\x12Y\x0A\x0Avalue_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xE0A\x02\x12O\x0A\x0Ddefault_value\x18\x06 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x01\x12c\x0A\x12substitution_rules\x18\x07 \x03(\x0B2B.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xE0A\x01\x12S\x0A\x0Esub_parameters\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12L\x0A\x0Avalidation\x18\x09 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xE0A\x01\"g\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x03\x12\x0B\x0A\x07BOOLEAN\x10\x04\x12\x0E\x0A\x0ASTRINGLIST\x10\x05\x12\x0A\x0A\x06NUMBER\x10\x06\x12\x09\x0A\x05ONEOF\x10\x07\"\x86\x02\x0A\x0AValidation\x12P\x0A\x0Eallowed_values\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12F\x0A\x09int_range\x18\x02 \x01(\x0B21.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\x0A\x0Eregexp_pattern\x18\x03 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00B\x0C\x0A\x0Aconstraint\"Y\x0A\x0DAllowedValues\x12H\x0A\x06values\x18\x01 \x03(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"%\x0A\x0DRegexpPattern\x12\x14\x0A\x07pattern\x18\x01 \x01(\x09B\x03\xE0A\x02\".\x0A\x08IntRange\x12\x10\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\x10\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x02\"!\x0A\x0AStringList\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x02\"\x90\x02\x0A\x0AParamValue\x12\x1B\x0A\x0Cstring_value\x18\x03 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x04 \x01(\x08B\x03\xE0A\x01H\x00\x12U\x0A\x11string_list_value\x18\x05 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x06 \x01(\x01B\x03\xE0A\x01H\x00\x12N\x0A\x0Boneof_value\x18\x07 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01H\x00B\x06\x0A\x04kind\"\x8A\x02\x0A\x19ParameterSubstitutionRule\x12m\x0A\x1Dplaceholder_substitution_rule\x18\x01 \x01(\x0B2D.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\x0A\x1Battribute_substitution_rule\x18\x02 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00B\x13\x0A\x11substitution_type\".\x0A\x19AttributeSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"0\x0A\x1BPlaceholderSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"\xDD\x01\x0A\x04Rule\x12P\x0A\x0Ecel_expression\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\x0A\x0Bdescription\x18\x0A \x01(\x09B\x03\xE0A\x01\x12W\x0A\x11rule_action_types\x18\x10 \x03(\x0E27.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xE0A\x02B\x10\x0A\x0Eimplementation\"\x8A\x01\x0A\x0DCELExpression\x12T\x0A\x15resource_types_values\x18\x03 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\x0A\x0Aexpression\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0A\x0A\x08criteria\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x03\"\xA3\x08\x0A\x07Control\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06family\x18\x05 \x01(\x0E27.google.cloud.cloudsecuritycompliance.v1.Control.FamilyB\x03\xE0A\x03\x12S\x0A\x0Econtrol_family\x18\x06 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xE0A\x03\x12n\x0A\x13responsibility_type\x18\x07 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityTypeB\x03\xE0A\x03\x12.\x0A!google_responsibility_description\x18\x08 \x01(\x09B\x03\xE0A\x03\x121\x0A\$google_responsibility_implementation\x18\x09 \x01(\x09B\x03\xE0A\x03\x120\x0A#customer_responsibility_description\x18\x0A \x01(\x09B\x03\xE0A\x03\x123\x0A&customer_responsibility_implementation\x18\x0B \x01(\x09B\x03\xE0A\x03\x12.\x0A!shared_responsibility_description\x18\x0C \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16additional_content_uri\x18\x0D \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\"\xB0\x01\x0A\x06Family\x12\x16\x0A\x12FAMILY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AC\x10\x01\x12\x06\x0A\x02AT\x10\x02\x12\x06\x0A\x02AU\x10\x03\x12\x06\x0A\x02CA\x10\x04\x12\x06\x0A\x02CM\x10\x05\x12\x06\x0A\x02CP\x10\x06\x12\x06\x0A\x02IA\x10\x07\x12\x06\x0A\x02IR\x10\x08\x12\x06\x0A\x02MA\x10\x09\x12\x06\x0A\x02MP\x10\x0A\x12\x06\x0A\x02PE\x10\x0B\x12\x06\x0A\x02PL\x10\x0C\x12\x06\x0A\x02PS\x10\x0D\x12\x06\x0A\x02RA\x10\x0E\x12\x06\x0A\x02SA\x10\x0F\x12\x06\x0A\x02SC\x10\x10\x12\x06\x0A\x02SI\x10\x11\x12\x06\x0A\x02SR\x10\x12:\xC9\x01\xEAA\xC5\x01\x0A.cloudsecuritycompliance.googleapis.com/Control\x12Dorganizations/{organization}/locations/{location}/controls/{control}\x12:projects/{project}/locations/{location}/controls/{control}*\x08controls2\x07control\"8\x0A\x0DControlFamily\x12\x11\x0A\x09family_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09*\x83\x01\x0A#RegulatoryControlResponsibilityType\x126\x0A2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0C\x0A\x08CUSTOMER\x10\x02\x12\x0A\x0A\x06SHARED\x10\x03*]\x0A\x0FEnforcementMode\x12 \x0A\x1CENFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APREVENTIVE\x10\x01\x12\x0D\x0A\x09DETECTIVE\x10\x02\x12\x09\x0A\x05AUDIT\x10\x03*\xB1\x01\x0A\x11FrameworkCategory\x12\"\x0A\x1EFRAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\x0A\x11ASSURED_WORKLOADS\x10\x02\x12\x11\x0A\x0DDATA_SECURITY\x10\x03\x12\x19\x0A\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\x0A\x10CUSTOM_FRAMEWORK\x10\x05*\xFE\x05\x0A\x14CloudControlCategory\x12&\x0A\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ACC_CATEGORY_INFRASTRUCTURE\x10\x01\x12'\x0A#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\x0A\x1DCC_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1D\x0A\x19CC_CATEGORY_DATA_SECURITY\x10\x04\x12 \x0A\x1CCC_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\x0A\x1FCC_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\x0A*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1A\x0A\x16CC_CATEGORY_ENCRYPTION\x10\x08\x122\x0A.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\x09\x12&\x0A\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\x0A\x128\x0A4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0B\x12%\x0A!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0C\x12(\x0A\$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\x0D\x12\x17\x0A\x13CC_CATEGORY_PRIVACY\x10\x0E\x12\x14\x0A\x10CC_CATEGORY_BCDR\x10\x0F\x12\x1C\x0A\x18CC_CATEGORY_ADMIN_ACCESS\x10\x10\x12\x1E\x0A\x1ACC_CATEGORY_DATA_RESIDENCY\x10\x11\x12*\x0A&CC_CATEGORY_RESOURCE_USAGE_RESTRICTION\x10\x12\x12 \x0A\x1CCC_CATEGORY_SERVICE_SPECIFIC\x10\x13*L\x0A\x0DCloudProvider\x12\x1E\x0A\x1ACLOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AWS\x10\x01\x12\x09\x0A\x05AZURE\x10\x02\x12\x07\x0A\x03GCP\x10\x03*Q\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CRITICAL\x10\x01\x12\x08\x0A\x04HIGH\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x07\x0A\x03LOW\x10\x04*\x8F\x01\x0A\x0ERuleActionType\x12 \x0A\x1CRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1E\x0A\x1ARULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1A\x0A\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xCD\x01\x0A\x12TargetResourceType\x12\$\x0A TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\x0A\x1FTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12\$\x0A TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12\$\x0A TARGET_RESOURCE_TYPE_APPLICATION\x10\x04B\x97\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BCommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAAp\x0A;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php new file mode 100644 index 000000000000..579217125655 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\xDF)\x0A4google/cloud/cloudsecuritycompliance/v1/config.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\x92\x01\x0A\x15ListFrameworksRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"y\x0A\x16ListFrameworksResponse\x12F\x0A\x0Aframeworks\x18\x01 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"}\x0A\x13GetFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xC9\x01\x0A\x16CreateFrameworkRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x19\x0A\x0Cframework_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x09framework\x18\x03 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\"\xBA\x01\x0A\x16UpdateFrameworkRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12J\x0A\x09framework\x18\x02 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x03 \x01(\x03B\x03\xE0A\x01\"`\x0A\x16DeleteFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\x0A\x18ListCloudControlsRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x19ListCloudControlsResponse\x12M\x0A\x0Ecloud_controls\x18\x01 \x03(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x16GetCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xDA\x01\x0A\x19CreateCloudControlRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Dcloud_control\x18\x03 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"\xA4\x01\x0A\x19UpdateCloudControlRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12Q\x0A\x0Dcloud_control\x18\x02 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"f\x0A\x19DeleteCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl2\xF7\x16\x0A\x06Config\x12\x89\x02\x0A\x0EListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"v\xDAA\x06parent\x82\xD3\xE4\x93\x02g\x123/v1/{parent=organizations/*/locations/*}/frameworksZ0\x12./v1/{parent=projects/*/locations/*}/frameworks\x12\xF6\x01\x0A\x0CGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\x123/v1/{name=organizations/*/locations/*/frameworks/*}Z0\x12./v1/{name=projects/*/locations/*/frameworks/*}\x12\xAC\x02\x0A\x0FCreateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xA3\x01\xDAA\x1Dparent,framework,framework_id\x82\xD3\xE4\x93\x02}\"3/v1/{parent=organizations/*/locations/*}/frameworks:\x09frameworkZ;\"./v1/{parent=projects/*/locations/*}/frameworks:\x09framework\x12\xB9\x02\x0A\x0FUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xB0\x01\xDAA\x15framework,update_mask\x82\xD3\xE4\x93\x02\x91\x012=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\x09frameworkZE28/v1/{framework.name=projects/*/locations/*/frameworks/*}:\x09framework\x12\xE0\x01\x0A\x0FDeleteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1A\x16.google.protobuf.Empty\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g*3/v1/{name=organizations/*/locations/*/frameworks/*}Z0*./v1/{name=projects/*/locations/*/frameworks/*}\x12\x98\x02\x0A\x11ListCloudControls\x12A.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"|\xDAA\x06parent\x82\xD3\xE4\x93\x02m\x126/v1/{parent=organizations/*/locations/*}/cloudControlsZ3\x121/v1/{parent=projects/*/locations/*}/cloudControls\x12\x85\x02\x0A\x0FGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m\x126/v1/{name=organizations/*/locations/*/cloudControls/*}Z3\x121/v1/{name=projects/*/locations/*/cloudControls/*}\x12\xCC\x02\x0A\x12CreateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xBA\x01\xDAA%parent,cloud_control,cloud_control_id\x82\xD3\xE4\x93\x02\x8B\x01\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\x0Dcloud_controlZB\"1/v1/{parent=projects/*/locations/*}/cloudControls:\x0Dcloud_control\x12\xDC\x02\x0A\x12UpdateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xCA\x01\xDAA\x19cloud_control,update_mask\x82\xD3\xE4\x93\x02\xA7\x012D/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\x0Dcloud_controlZP2?/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}:\x0Dcloud_control\x12\xEC\x01\x0A\x12DeleteCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1A\x16.google.protobuf.Empty\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m*6/v1/{name=organizations/*/locations/*/cloudControls/*}Z3*1/v1/{name=projects/*/locations/*/cloudControls/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA4\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BConfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php new file mode 100644 index 000000000000..13a333cadbf1 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xA5>\x0A8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA7\x08\x0A\x13FrameworkDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12%\x0A\x18computed_target_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12S\x0A\x09framework\x18\x04 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x16cloud_control_metadata\x18\x06 \x03(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12W\x0A\x10deployment_state\x18\x07 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12)\x0A\x1Ctarget_resource_display_name\x18\x0D \x01(\x09B\x03\xE0A\x03\x12z\x0A#cloud_control_deployment_references\x18\x0E \x03(\x0B2H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xE0A\x03:\x9F\x02\xEAA\x9B\x02\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}\x12Sprojects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14frameworkDeployments2\x13frameworkDeployment\"\xC5\x08\x0A\x16CloudControlDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12\x1C\x0A\x0Ftarget_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x16cloud_control_metadata\x18\x04 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12W\x0A\x10deployment_state\x18\x06 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x09 \x01(\x09B\x03\xE0A\x01\x12g\x0A#parameter_substituted_cloud_control\x18\x0A \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x03\x12s\x0A\x1Fframework_deployment_references\x18\x0B \x03(\x0B2E.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xE0A\x03\x12)\x0A\x1Ctarget_resource_display_name\x18\x0C \x01(\x09B\x03\xE0A\x03:\xB6\x02\xEAA\xB2\x02\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12dorganizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}\x12Zprojects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17cloudControlDeployments2\x16cloudControlDeployment\"\xC9\x01\x0A\x14TargetResourceConfig\x12'\x0A\x18existing_target_resource\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12u\x0A\x1Ftarget_resource_creation_config\x18\x02 \x01(\x0B2E.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xE0A\x01H\x00B\x11\x0A\x0Fresource_config\"\x88\x02\x0A\x1CTargetResourceCreationConfig\x12d\x0A\x16folder_creation_config\x18\x01 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xE0A\x01H\x00\x12f\x0A\x17project_creation_config\x18\x02 \x01(\x0B2>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xE0A\x01H\x00B\x1A\x0A\x18resource_creation_config\"M\x0A\x14FolderCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13folder_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"p\x0A\x15ProjectCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12!\x0A\x14project_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x12billing_account_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xD1\x01\x0A\x14CloudControlMetadata\x12`\x0A\x15cloud_control_details\x18\x01 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x02\x12W\x0A\x10enforcement_mode\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x02\"\xFD\x01\x0A CreateFrameworkDeploymentRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\$\x0A\x17framework_deployment_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x14framework_deployment\x18\x03 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xE0A\x02\"\x87\x01\x0A DeleteFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"q\x0A\x1DGetFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xD2\x01\x0A\x1FListFrameworkDeploymentsRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A ListFrameworkDeploymentsResponse\x12[\x0A\x15framework_deployments\x18\x01 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"w\x0A GetCloudControlDeploymentRequest\x12S\x0A\x04name\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xD8\x01\x0A\"ListCloudControlDeploymentsRequest\x12U\x0A\x06parent\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA2\x01\x0A#ListCloudControlDeploymentsResponse\x12b\x0A\x19cloud_control_deployments\x18\x01 \x03(\x0B2?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1FCloudControlDeploymentReference\x12g\x0A\x18cloud_control_deployment\x18\x01 \x01(\x09BE\xE0A\x03\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\x0A\x1CFrameworkDeploymentReference\x12`\x0A\x14framework_deployment\x18\x01 \x01(\x09BB\xE0A\x03\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\x0A\x13framework_reference\x18\x02 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x01\x12#\x0A\x16framework_display_name\x18\x03 \x01(\x09B\x03\xE0A\x01*\xBB\x02\x0A\x0FDeploymentState\x12 \x0A\x1CDEPLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BDEPLOYMENT_STATE_VALIDATING\x10\x01\x12\x1D\x0A\x19DEPLOYMENT_STATE_CREATING\x10\x02\x12\x1D\x0A\x19DEPLOYMENT_STATE_DELETING\x10\x03\x12\x1D\x0A\x19DEPLOYMENT_STATE_UPDATING\x10\x08\x12\x1B\x0A\x17DEPLOYMENT_STATE_FAILED\x10\x04\x12\x1A\x0A\x16DEPLOYMENT_STATE_READY\x10\x05\x12'\x0A#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\x0A\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x072\x88\x11\x0A\x0ADeployment\x12\xBF\x03\x0A\x19CreateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xB7\x02\xCAAP\x0A\x13FrameworkDeployment\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA3parent,framework_deployment,framework_deployment_id\x82\xD3\xE4\x93\x02\xA7\x01\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14framework_deploymentZP\"8/v1/{parent=projects/*/locations/*}/frameworkDeployments:\x14framework_deployment\x12\xE5\x02\x0A\x19DeleteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xDD\x01\xCAAR\x0A\x15google.protobuf.Empty\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02{*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:*8/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xA9\x02\x0A\x16GetFrameworkDeployment\x12F.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1A<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"\x88\x01\xDAA\x04name\x82\xD3\xE4\x93\x02{\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:\x128/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xBC\x02\x0A\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1AI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"\x8A\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02{\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeploymentsZ:\x128/v1/{parent=projects/*/locations/*}/frameworkDeployments\x12\xB9\x02\x0A\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"\x8F\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}Z=\x12;/v1/{name=projects/*/locations/*/cloudControlDeployments/*}\x12\xCC\x02\x0A\x1BListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1AL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"\x91\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeploymentsZ=\x12;/v1/{parent=projects/*/locations/*}/cloudControlDeployments\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA8\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FDeploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php new file mode 100644 index 000000000000..33f790055159 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xBAY\x0A8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\xA6\x02\x0A'ListFrameworkComplianceSummariesRequest\x12Y\x0A\x06parent\x18\x01 \x01(\x09BI\xE0A\x02\xFAAC\x12Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x04view\x18\x05 \x01(\x0E2G.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryViewB\x03\xE0A\x01\"\xB5\x01\x0A(ListFrameworkComplianceSummariesResponse\x12k\x0A\x1Eframework_compliance_summaries\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xF6\x08\x0A\x19FrameworkComplianceReport\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x1D\x0A\x15framework_description\x18\x02 \x01(\x09\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12e\x0A\x1Acontrol_assessment_details\x18\x04 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x06 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x07 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x09 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x0A \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x0B \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0C \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xAB\x03\xEAA\xA7\x03\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1AframeworkComplianceReports2\x19frameworkComplianceReport\"\xC7\x01\x0A%FetchFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE7\x01\x0A\x1BListFindingSummariesRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x123\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\"\x90\x01\x0A\x1CListFindingSummariesResponse\x12R\x0A\x11finding_summaries\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xFB\x01\x0A%ListControlComplianceSummariesRequest\x12W\x0A\x06parent\x18\x01 \x01(\x09BG\xE0A\x02\xFAAA\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x123\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A&ListControlComplianceSummariesResponse\x12g\x0A\x1Ccontrol_compliance_summaries\x18\x01 \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xC6\x01\x0A)AggregateFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\x0A\x08interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A*AggregateFrameworkComplianceReportResponse\x12j\x0A\x1Daggregated_compliance_reports\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\x0A\x18ControlAssessmentDetails\x12\x18\x0A\x10passing_controls\x18\x01 \x01(\x05\x12\x18\x0A\x10failing_controls\x18\x02 \x01(\x05\x12!\x0A\x19assessed_passing_controls\x18\x03 \x01(\x05\x12\x1D\x0A\x15not_assessed_controls\x18\x04 \x01(\x05\"\xA0\x09\x0A\x1AFrameworkComplianceSummary\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12e\x0A\x1Acontrol_assessment_details\x18\x02 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x03 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x04 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x05 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x09 \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0A \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails\x12\x1A\x0A\x0Dfinding_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12S\x0A\x16controls_passing_trend\x18\x0C \x01(\x0B2..google.cloud.cloudsecuritycompliance.v1.TrendB\x03\xE0A\x03:\xB8\x03\xEAA\xB4\x03\x0AAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12cprojects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1CframeworkComplianceSummaries2\x1AframeworkComplianceSummary\"\x8A\x05\x0A\x0EFindingSummary\x12\x18\x0A\x10finding_category\x18\x01 \x01(\x09\x12L\x0A\x0Dfinding_class\x18\x02 \x01(\x0E25.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12C\x0A\x08severity\x18\x03 \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\x0A\x0Dfinding_count\x18\x04 \x01(\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08:\xC9\x02\xEAA\xC5\x02\x0A5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10findingSummaries2\x0EfindingSummary\"\x9A\x09\x0A\x18ControlComplianceSummary\x12\x0F\x0A\x07control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12_\x0A\x18overall_evaluation_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\x12\x1C\x0A\x14total_findings_count\x18\x05 \x01(\x05\x12\x1D\x0A\x15compliance_frameworks\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x07 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\x0A\x15cloud_control_reports\x18\x08 \x03(\x0B2;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\x0A\x1Bcontrol_responsibility_type\x18\x09 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\x0A\x0Fis_fake_control\x18\x0A \x01(\x08\x12\x11\x0A\x04name\x18\x0B \x01(\x09B\x03\xE0A\x08:\xD4\x04\xEAA\xD0\x04\x0A?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xA2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1AcontrolComplianceSummaries2\x18controlComplianceSummary\"\x98\x07\x0A\x12CloudControlReport\x12\x7F\x0A'manual_cloud_control_assessment_details\x18\x0D \x01(\x0B2L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\x0A cloud_control_assessment_details\x18\x0E \x01(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\x0A\x0Dcloud_control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x12\x0A\x0Acategories\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x09 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\x0A\x12cloud_control_type\x18\x0A \x01(\x0E2:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\x0A\x10finding_category\x18\x0B \x01(\x09\x12<\x0A\x05rules\x18\x0C \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\x0A\x10finding_severity\x18\x0F \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\x0A\x10enforcement_mode\x18\x10 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \x0A\x18cloud_control_deployment\x18\x11 \x01(\x09\x12\x19\x0A\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x13 \x01(\x03\x12\$\x0A\x1Cframework_major_revision_ids\x18\x14 \x03(\x03B\x14\x0A\x12assessment_details\"I\x0A#ManualCloudControlAssessmentDetails\x12\"\x0A\x1Amanual_cloud_control_guide\x18\x01 \x03(\x09\"\x90\x01\x0A\x1DCloudControlAssessmentDetails\x12\x16\x0A\x0Efindings_count\x18\x01 \x01(\x05\x12W\x0A\x10evaluation_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\"8\x0A\x0FSimilarControls\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x12\x0A\x0Acontrol_id\x18\x02 \x01(\x09\"\xB4\x01\x0A\x1AAggregatedComplianceReport\x12e\x0A\x1Acontrol_assessment_details\x18\x01 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\x0A\x0Breport_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x8C\x02\x0A\x15TargetResourceDetails\x12\x1C\x0A\x14framework_deployment\x18\x01 \x01(\x09\x12\$\x0A\x1Ctarget_resource_display_name\x18\x02 \x01(\x09\x12\x17\x0A\x0Ftarget_resource\x18\x03 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x07 \x01(\x03\"U\x0A\x05Trend\x120\x0A\x08duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x03\x12\x1A\x0A\x0Dvalue_percent\x18\x02 \x01(\x01B\x03\xE0A\x03*\x90\x01\x0A\x0FEvaluationState\x12 \x0A\x1CEVALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17EVALUATION_STATE_PASSED\x10\x01\x12\x1B\x0A\x17EVALUATION_STATE_FAILED\x10\x02\x12!\x0A\x1DEVALUATION_STATE_NOT_ASSESSED\x10\x03*\xD9\x01\x0A\x0CFindingClass\x12\x1D\x0A\x19FINDING_CLASS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06THREAT\x10\x01\x12\x11\x0A\x0DVULNERABILITY\x10\x02\x12\x14\x0A\x10MISCONFIGURATION\x10\x03\x12\x0F\x0A\x0BOBSERVATION\x10\x04\x12\x0D\x0A\x09SCC_ERROR\x10\x05\x12\x15\x0A\x11POSTURE_VIOLATION\x10\x06\x12\x15\x0A\x11TOXIC_COMBINATION\x10\x07\x12\x17\x0A\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0E\x0A\x0ACHOKEPOINT\x10\x09*\xAC\x01\x0A\x1EFrameworkComplianceSummaryView\x121\x0A-FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED\x10\x00\x12+\x0A'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC\x10\x01\x12*\x0A&FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL\x10\x022\xD5\x11\x0A\x0AMonitoring\x12\xA8\x03\x0A ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1AQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xDE\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCE\x01\x12E/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xE0\x02\x0A\x14ListFindingSummaries\x12D.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1AE.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xBA\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xAA\x01\x129/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x123/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x124/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9F\x03\x0A\x1EFetchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xE8\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xDA\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12C/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12D/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xF3\x03\x0A\x1EListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1AO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xAF\x02\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9F\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xC4\x03\x0A\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1AS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xF4\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xE6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\x89\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAA^\x0A5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php new file mode 100644 index 000000000000..ea8e22537663 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php @@ -0,0 +1,179 @@ +google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + */ +class AggregateFrameworkComplianceReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the aggregated compliance report over time to + * retrieve. + * The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The start and end time range for the aggregated compliance + * report. + * + * Generated from protobuf field .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $interval = null; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $name Required. The name of the aggregated compliance report over time to + * retrieve. + * + * The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * Please see {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\AggregateFrameworkComplianceReportRequest + * + * @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. The name of the aggregated compliance report over time to + * retrieve. + * The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * @type \Google\Type\Interval $interval + * Optional. The start and end time range for the aggregated compliance + * report. + * @type string $filter + * Optional. The filtering results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the aggregated compliance report over time to + * retrieve. + * The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * + * 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. The name of the aggregated compliance report over time to + * retrieve. + * The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * + * 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; + } + + /** + * Optional. The start and end time range for the aggregated compliance + * report. + * + * Generated from protobuf field .google.type.Interval interval = 2 [(.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. The start and end time range for the aggregated compliance + * report. + * + * Generated from protobuf field .google.type.Interval interval = 2 [(.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; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php new file mode 100644 index 000000000000..58df58e36367 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + */ +class AggregateFrameworkComplianceReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of aggregated compliance reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + */ + private $aggregated_compliance_reports; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport[] $aggregated_compliance_reports + * The list of aggregated compliance reports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The list of aggregated compliance reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport> + */ + public function getAggregatedComplianceReports() + { + return $this->aggregated_compliance_reports; + } + + /** + * The list of aggregated compliance reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport[] $var + * @return $this + */ + public function setAggregatedComplianceReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport::class); + $this->aggregated_compliance_reports = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php new file mode 100644 index 000000000000..8eb366263a74 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php @@ -0,0 +1,121 @@ +google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + */ +class AggregatedComplianceReport extends \Google\Protobuf\Internal\Message +{ + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + */ + protected $control_assessment_details = null; + /** + * The report time of the aggregated compliance report. + * + * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; + */ + protected $report_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details + * The control assessment details of the framework. + * @type \Google\Protobuf\Timestamp $report_time + * The report time of the aggregated compliance report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null + */ + public function getControlAssessmentDetails() + { + return $this->control_assessment_details; + } + + public function hasControlAssessmentDetails() + { + return isset($this->control_assessment_details); + } + + public function clearControlAssessmentDetails() + { + unset($this->control_assessment_details); + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var + * @return $this + */ + public function setControlAssessmentDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); + $this->control_assessment_details = $var; + + return $this; + } + + /** + * The report time of the aggregated compliance report. + * + * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getReportTime() + { + return $this->report_time; + } + + public function hasReportTime() + { + return isset($this->report_time); + } + + public function clearReportTime() + { + unset($this->report_time); + } + + /** + * The report time of the aggregated compliance report. + * + * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setReportTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->report_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php new file mode 100644 index 000000000000..5f570fa9ee08 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.AllowedValues + */ +class AllowedValues extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of allowed values for the parameter. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue[] $values + * Required. The list of allowed values for the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of allowed values for the parameter. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParamValue> + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. The list of allowed values for the parameter. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php new file mode 100644 index 000000000000..7132302b8471 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php @@ -0,0 +1,71 @@ +google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule + */ +class AttributeSubstitutionRule extends \Google\Protobuf\Internal\Message +{ + /** + * The fully qualified proto attribute path, in dot notation. + * For example: `rules[0].cel_expression.resource_types_values` + * + * Generated from protobuf field string attribute = 1; + */ + protected $attribute = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $attribute + * The fully qualified proto attribute path, in dot notation. + * For example: `rules[0].cel_expression.resource_types_values` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The fully qualified proto attribute path, in dot notation. + * For example: `rules[0].cel_expression.resource_types_values` + * + * Generated from protobuf field string attribute = 1; + * @return string + */ + public function getAttribute() + { + return $this->attribute; + } + + /** + * The fully qualified proto attribute path, in dot notation. + * For example: `rules[0].cel_expression.resource_types_values` + * + * Generated from protobuf field string attribute = 1; + * @param string $var + * @return $this + */ + public function setAttribute($var) + { + GPBUtil::checkString($var, True); + $this->attribute = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php new file mode 100644 index 000000000000..94aa234b686c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php @@ -0,0 +1,71 @@ +google.cloud.cloudsecuritycompliance.v1.AuditConfig + */ +class AuditConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of destinations that can be selected for uploading audit + * reports to. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination[] $destinations + * Required. The list of destinations that can be selected for uploading audit + * reports to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of destinations that can be selected for uploading audit + * reports to. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination> + */ + public function getDestinations() + { + return $this->destinations; + } + + /** + * Required. The list of destinations that can be selected for uploading audit + * reports to. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination[] $var + * @return $this + */ + public function setDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination::class); + $this->destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php new file mode 100644 index 000000000000..fd232fe5c77b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php @@ -0,0 +1,79 @@ +google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + */ +class CmEligibleDestination extends \Google\Protobuf\Internal\Message +{ + protected $cm_eligible_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_bucket + * The Cloud Storage bucket where audit reports and evidences can be + * uploaded. The format is `gs://{bucket_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage bucket where audit reports and evidences can be + * uploaded. The format is `gs://{bucket_name}`. + * + * Generated from protobuf field string gcs_bucket = 1; + * @return string + */ + public function getGcsBucket() + { + return $this->readOneof(1); + } + + public function hasGcsBucket() + { + return $this->hasOneof(1); + } + + /** + * The Cloud Storage bucket where audit reports and evidences can be + * uploaded. The format is `gs://{bucket_name}`. + * + * Generated from protobuf field string gcs_bucket = 1; + * @param string $var + * @return $this + */ + public function setGcsBucket($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getCmEligibleDestinations() + { + return $this->whichOneof("cm_eligible_destinations"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php new file mode 100644 index 000000000000..c3cb44cdf6fb --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.BucketDestination + */ +class BucketDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The URI of the Cloud Storage bucket. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bucket_uri = ''; + /** + * Optional. The format of the framework audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_audit_format = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket_uri + * Required. The URI of the Cloud Storage bucket. + * @type int $framework_audit_format + * Optional. The format of the framework audit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The URI of the Cloud Storage bucket. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBucketUri() + { + return $this->bucket_uri; + } + + /** + * Required. The URI of the Cloud Storage bucket. + * + * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBucketUri($var) + { + GPBUtil::checkString($var, True); + $this->bucket_uri = $var; + + return $this; + } + + /** + * Optional. The format of the framework audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getFrameworkAuditFormat() + { + return $this->framework_audit_format; + } + + /** + * Optional. The format of the framework audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setFrameworkAuditFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination\Format::class); + $this->framework_audit_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php new file mode 100644 index 000000000000..cbc54c979c67 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php @@ -0,0 +1,54 @@ +google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format + */ +class Format +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; + */ + const FORMAT_UNSPECIFIED = 0; + /** + * The format for the framework audit report is Open Document. + * + * Generated from protobuf enum ODF = 1; + */ + const ODF = 1; + + private static $valueToName = [ + self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', + self::ODF => 'ODF', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php new file mode 100644 index 000000000000..26f6359d8294 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php @@ -0,0 +1,123 @@ +google.cloud.cloudsecuritycompliance.v1.CELExpression + */ +class CELExpression extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The logical expression in CEL. The maximum length of the + * condition is 1000 characters. For more information, see [CEL + * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). + * + * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expression = ''; + protected $criteria; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\StringList $resource_types_values + * The resource instance types on which this expression is defined. + * The format is `/`. + * For example: `compute.googleapis.com/Instance` + * @type string $expression + * Required. The logical expression in CEL. The maximum length of the + * condition is 1000 characters. For more information, see [CEL + * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The resource instance types on which this expression is defined. + * The format is `/`. + * For example: `compute.googleapis.com/Instance` + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; + * @return \Google\Cloud\CloudSecurityCompliance\V1\StringList|null + */ + public function getResourceTypesValues() + { + return $this->readOneof(3); + } + + public function hasResourceTypesValues() + { + return $this->hasOneof(3); + } + + /** + * The resource instance types on which this expression is defined. + * The format is `/`. + * For example: `compute.googleapis.com/Instance` + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; + * @param \Google\Cloud\CloudSecurityCompliance\V1\StringList $var + * @return $this + */ + public function setResourceTypesValues($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\StringList::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The logical expression in CEL. The maximum length of the + * condition is 1000 characters. For more information, see [CEL + * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). + * + * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * Required. The logical expression in CEL. The maximum length of the + * condition is 1000 characters. For more information, see [CEL + * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). + * + * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * @return string + */ + public function getCriteria() + { + return $this->whichOneof("criteria"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php new file mode 100644 index 000000000000..74e369086c0f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php @@ -0,0 +1,103 @@ +google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + */ +class CalculateEffectiveCmEnrollmentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Compliance Manager enrollment to calculate. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Compliance Manager enrollment to calculate. + * + * Supported formats are the following: + * + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * Please see {@see CmEnrollmentServiceClient::cmEnrollmentName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\CalculateEffectiveCmEnrollmentRequest + * + * @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. The name of the Compliance Manager enrollment to calculate. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Compliance Manager enrollment to calculate. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * 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. The name of the Compliance Manager enrollment to calculate. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php new file mode 100644 index 000000000000..3fefbb6d207e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php @@ -0,0 +1,77 @@ +google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + */ +class CalculateEffectiveCmEnrollmentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The effective Compliance Manager enrollment for the resource. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + protected $cm_enrollment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cm_enrollment + * The effective Compliance Manager enrollment for the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * The effective Compliance Manager enrollment for the resource. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment|null + */ + public function getCmEnrollment() + { + return $this->cm_enrollment; + } + + public function hasCmEnrollment() + { + return isset($this->cm_enrollment); + } + + public function clearCmEnrollment() + { + unset($this->cm_enrollment); + } + + /** + * The effective Compliance Manager enrollment for the resource. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $var + * @return $this + */ + public function setCmEnrollment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment::class); + $this->cm_enrollment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php new file mode 100644 index 000000000000..118fbd7806ee --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php @@ -0,0 +1,614 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControl + */ +class CloudControl extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The major version of the cloud control, which is incremented + * in ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $major_revision_id = 0; + /** + * Optional. A description of the cloud control. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. The friendly name of the cloud control. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. The supported enforcement modes for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $supported_enforcement_modes; + /** + * Optional. The parameter specifications for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameter_spec; + /** + * Optional. The rules that you can enforce to meet your security or + * compliance intent. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $rules; + /** + * Optional. The severity of the findings that are generated by the cloud + * control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $severity = 0; + /** + * Optional. The finding category for the cloud control findings. The maximum + * length is 255 characters. + * + * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $finding_category = ''; + /** + * Optional. The supported cloud providers. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $supported_cloud_providers; + /** + * Output only. The frameworks that include this cloud control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $related_frameworks; + /** + * Optional. The remediation steps for the cloud control findings. The + * maximum length is 400 characters. + * + * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remediation_steps = ''; + /** + * Optional. The categories for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $categories; + /** + * Output only. The time that the cloud control was last updated. + * `create_time` is used because a new cloud control is created + * whenever an existing cloud control is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Optional. The target resource types that are supported by the cloud + * control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $supported_target_resource_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * @type int|string $major_revision_id + * Output only. The major version of the cloud control, which is incremented + * in ascending order. + * @type string $description + * Optional. A description of the cloud control. The maximum length is 2000 + * characters. + * @type string $display_name + * Optional. The friendly name of the cloud control. The maximum length is 200 + * characters. + * @type int[] $supported_enforcement_modes + * Output only. The supported enforcement modes for the cloud control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $parameter_spec + * Optional. The parameter specifications for the cloud control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $rules + * Optional. The rules that you can enforce to meet your security or + * compliance intent. + * @type int $severity + * Optional. The severity of the findings that are generated by the cloud + * control. + * @type string $finding_category + * Optional. The finding category for the cloud control findings. The maximum + * length is 255 characters. + * @type int[] $supported_cloud_providers + * Optional. The supported cloud providers. + * @type string[] $related_frameworks + * Output only. The frameworks that include this cloud control. + * @type string $remediation_steps + * Optional. The remediation steps for the cloud control findings. The + * maximum length is 400 characters. + * @type int[] $categories + * Optional. The categories for the cloud control. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time that the cloud control was last updated. + * `create_time` is used because a new cloud control is created + * whenever an existing cloud control is updated. + * @type int[] $supported_target_resource_types + * Optional. The target resource types that are supported by the cloud + * control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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. The major version of the cloud control, which is incremented + * in ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Output only. The major version of the cloud control, which is incremented + * in ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * Optional. A description of the cloud control. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A description of the cloud control. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. The friendly name of the cloud control. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The friendly name of the cloud control. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The supported enforcement modes for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSupportedEnforcementModes() + { + return $this->supported_enforcement_modes; + } + + /** + * Output only. The supported enforcement modes for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setSupportedEnforcementModes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); + $this->supported_enforcement_modes = $arr; + + return $this; + } + + /** + * Optional. The parameter specifications for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec> + */ + public function getParameterSpec() + { + return $this->parameter_spec; + } + + /** + * Optional. The parameter specifications for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $var + * @return $this + */ + public function setParameterSpec($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec::class); + $this->parameter_spec = $arr; + + return $this; + } + + /** + * Optional. The rules that you can enforce to meet your security or + * compliance intent. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Optional. The rules that you can enforce to meet your security or + * compliance intent. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * Optional. The severity of the findings that are generated by the cloud + * control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Optional. The severity of the findings that are generated by the cloud + * control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Optional. The finding category for the cloud control findings. The maximum + * length is 255 characters. + * + * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFindingCategory() + { + return $this->finding_category; + } + + /** + * Optional. The finding category for the cloud control findings. The maximum + * length is 255 characters. + * + * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFindingCategory($var) + { + GPBUtil::checkString($var, True); + $this->finding_category = $var; + + return $this; + } + + /** + * Optional. The supported cloud providers. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSupportedCloudProviders() + { + return $this->supported_cloud_providers; + } + + /** + * Optional. The supported cloud providers. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setSupportedCloudProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); + $this->supported_cloud_providers = $arr; + + return $this; + } + + /** + * Output only. The frameworks that include this cloud control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRelatedFrameworks() + { + return $this->related_frameworks; + } + + /** + * Output only. The frameworks that include this cloud control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRelatedFrameworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_frameworks = $arr; + + return $this; + } + + /** + * Optional. The remediation steps for the cloud control findings. The + * maximum length is 400 characters. + * + * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemediationSteps() + { + return $this->remediation_steps; + } + + /** + * Optional. The remediation steps for the cloud control findings. The + * maximum length is 400 characters. + * + * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemediationSteps($var) + { + GPBUtil::checkString($var, True); + $this->remediation_steps = $var; + + return $this; + } + + /** + * Optional. The categories for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getCategories() + { + return $this->categories; + } + + /** + * Optional. The categories for the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlCategory::class); + $this->categories = $arr; + + return $this; + } + + /** + * Output only. The time that the cloud control was last updated. + * `create_time` is used because a new cloud control is created + * whenever an existing cloud control is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.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 that the cloud control was last updated. + * `create_time` is used because a new cloud control is created + * whenever an existing cloud control is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.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; + } + + /** + * Optional. The target resource types that are supported by the cloud + * control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getSupportedTargetResourceTypes() + { + return $this->supported_target_resource_types; + } + + /** + * Optional. The target resource types that are supported by the cloud + * control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setSupportedTargetResourceTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceType::class); + $this->supported_target_resource_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php new file mode 100644 index 000000000000..060810af9990 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php @@ -0,0 +1,61 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControl.Type + */ +class Type +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * A cloud control that's created and managed by you. + * + * Generated from protobuf enum CUSTOM = 1; + */ + const CUSTOM = 1; + /** + * A cloud control that's provided and managed by Google. + * + * Generated from protobuf enum BUILT_IN = 2; + */ + const BUILT_IN = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::CUSTOM => 'CUSTOM', + self::BUILT_IN => 'BUILT_IN', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php new file mode 100644 index 000000000000..3aef7a0830cd --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + */ +class CloudControlAssessmentDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The number of findings for the cloud control. + * + * Generated from protobuf field int32 findings_count = 1; + */ + protected $findings_count = 0; + /** + * Output only. The evaluation status of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $evaluation_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $findings_count + * The number of findings for the cloud control. + * @type int $evaluation_state + * Output only. The evaluation status of the cloud control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The number of findings for the cloud control. + * + * Generated from protobuf field int32 findings_count = 1; + * @return int + */ + public function getFindingsCount() + { + return $this->findings_count; + } + + /** + * The number of findings for the cloud control. + * + * Generated from protobuf field int32 findings_count = 1; + * @param int $var + * @return $this + */ + public function setFindingsCount($var) + { + GPBUtil::checkInt32($var); + $this->findings_count = $var; + + return $this; + } + + /** + * Output only. The evaluation status of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEvaluationState() + { + return $this->evaluation_state; + } + + /** + * Output only. The evaluation status of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEvaluationState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EvaluationState::class); + $this->evaluation_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php new file mode 100644 index 000000000000..65c6efb41891 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php @@ -0,0 +1,247 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + */ +class CloudControlAuditDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_control = ''; + /** + * Output only. The ID of the cloud control. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_control_id = ''; + /** + * Output only. The description of the cloud control. + * + * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_control_description = ''; + /** + * Output only. The overall status of the findings for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliance_state = 0; + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $report_summary = null; + /** + * Output only. The findings for the control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $findings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_control + * Output only. The name of the cloud control. + * @type string $cloud_control_id + * Output only. The ID of the cloud control. + * @type string $cloud_control_description + * Output only. The description of the cloud control. + * @type int $compliance_state + * Output only. The overall status of the findings for the control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary + * Output only. The summary of the report. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails[] $findings + * Output only. The findings for the control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudControl() + { + return $this->cloud_control; + } + + /** + * Output only. The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudControl($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control = $var; + + return $this; + } + + /** + * Output only. The ID of the cloud control. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudControlId() + { + return $this->cloud_control_id; + } + + /** + * Output only. The ID of the cloud control. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudControlId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_id = $var; + + return $this; + } + + /** + * Output only. The description of the cloud control. + * + * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudControlDescription() + { + return $this->cloud_control_description; + } + + /** + * Output only. The description of the cloud control. + * + * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudControlDescription($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_description = $var; + + return $this; + } + + /** + * Output only. The overall status of the findings for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getComplianceState() + { + return $this->compliance_state; + } + + /** + * Output only. The overall status of the findings for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setComplianceState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); + $this->compliance_state = $var; + + return $this; + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null + */ + public function getReportSummary() + { + return $this->report_summary; + } + + public function hasReportSummary() + { + return isset($this->report_summary); + } + + public function clearReportSummary() + { + unset($this->report_summary); + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var + * @return $this + */ + public function setReportSummary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); + $this->report_summary = $var; + + return $this; + } + + /** + * Output only. The findings for the control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FindingDetails> + */ + public function getFindings() + { + return $this->findings; + } + + /** + * Output only. The findings for the control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails[] $var + * @return $this + */ + public function setFindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails::class); + $this->findings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php new file mode 100644 index 000000000000..407f7d622f04 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php @@ -0,0 +1,180 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlCategory + */ +class CloudControlCategory +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CLOUD_CONTROL_CATEGORY_UNSPECIFIED = 0; + */ + const CLOUD_CONTROL_CATEGORY_UNSPECIFIED = 0; + /** + * The infrastructure security category. + * + * Generated from protobuf enum CC_CATEGORY_INFRASTRUCTURE = 1; + */ + const CC_CATEGORY_INFRASTRUCTURE = 1; + /** + * The artificial intelligence category. + * + * Generated from protobuf enum CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; + */ + const CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; + /** + * The physical security category. + * + * Generated from protobuf enum CC_CATEGORY_PHYSICAL_SECURITY = 3; + */ + const CC_CATEGORY_PHYSICAL_SECURITY = 3; + /** + * The data security category. + * + * Generated from protobuf enum CC_CATEGORY_DATA_SECURITY = 4; + */ + const CC_CATEGORY_DATA_SECURITY = 4; + /** + * The network security category. + * + * Generated from protobuf enum CC_CATEGORY_NETWORK_SECURITY = 5; + */ + const CC_CATEGORY_NETWORK_SECURITY = 5; + /** + * The incident management category. + * + * Generated from protobuf enum CC_CATEGORY_INCIDENT_MANAGEMENT = 6; + */ + const CC_CATEGORY_INCIDENT_MANAGEMENT = 6; + /** + * The identity and access management category. + * + * Generated from protobuf enum CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; + */ + const CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; + /** + * The encryption category. + * + * Generated from protobuf enum CC_CATEGORY_ENCRYPTION = 8; + */ + const CC_CATEGORY_ENCRYPTION = 8; + /** + * The logs management and infrastructure category. + * + * Generated from protobuf enum CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; + */ + const CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; + /** + * The HR, admin, and processes category. + * + * Generated from protobuf enum CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; + */ + const CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; + /** + * The third-party and sub-processor management category. + * + * Generated from protobuf enum CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; + */ + const CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; + /** + * The legal and disclosures category. + * + * Generated from protobuf enum CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; + */ + const CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; + /** + * The vulnerability management category. + * + * Generated from protobuf enum CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; + */ + const CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; + /** + * The privacy category. + * + * Generated from protobuf enum CC_CATEGORY_PRIVACY = 14; + */ + const CC_CATEGORY_PRIVACY = 14; + /** + * The business continuity and disaster recovery (BCDR) category. + * + * Generated from protobuf enum CC_CATEGORY_BCDR = 15; + */ + const CC_CATEGORY_BCDR = 15; + /** + * The admin access category. + * + * Generated from protobuf enum CC_CATEGORY_ADMIN_ACCESS = 16; + */ + const CC_CATEGORY_ADMIN_ACCESS = 16; + /** + * DRZ (Data Residency). + * + * Generated from protobuf enum CC_CATEGORY_DATA_RESIDENCY = 17; + */ + const CC_CATEGORY_DATA_RESIDENCY = 17; + /** + * RUR (Resource Usage Restriction). + * + * Generated from protobuf enum CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + */ + const CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + /** + * SERVICE SPECIFIC + * + * Generated from protobuf enum CC_CATEGORY_SERVICE_SPECIFIC = 19; + */ + const CC_CATEGORY_SERVICE_SPECIFIC = 19; + + private static $valueToName = [ + self::CLOUD_CONTROL_CATEGORY_UNSPECIFIED => 'CLOUD_CONTROL_CATEGORY_UNSPECIFIED', + self::CC_CATEGORY_INFRASTRUCTURE => 'CC_CATEGORY_INFRASTRUCTURE', + self::CC_CATEGORY_ARTIFICIAL_INTELLIGENCE => 'CC_CATEGORY_ARTIFICIAL_INTELLIGENCE', + self::CC_CATEGORY_PHYSICAL_SECURITY => 'CC_CATEGORY_PHYSICAL_SECURITY', + self::CC_CATEGORY_DATA_SECURITY => 'CC_CATEGORY_DATA_SECURITY', + self::CC_CATEGORY_NETWORK_SECURITY => 'CC_CATEGORY_NETWORK_SECURITY', + self::CC_CATEGORY_INCIDENT_MANAGEMENT => 'CC_CATEGORY_INCIDENT_MANAGEMENT', + self::CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT => 'CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT', + self::CC_CATEGORY_ENCRYPTION => 'CC_CATEGORY_ENCRYPTION', + self::CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE => 'CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE', + self::CC_CATEGORY_HR_ADMIN_AND_PROCESSES => 'CC_CATEGORY_HR_ADMIN_AND_PROCESSES', + self::CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT => 'CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT', + self::CC_CATEGORY_LEGAL_AND_DISCLOSURES => 'CC_CATEGORY_LEGAL_AND_DISCLOSURES', + self::CC_CATEGORY_VULNERABILITY_MANAGEMENT => 'CC_CATEGORY_VULNERABILITY_MANAGEMENT', + self::CC_CATEGORY_PRIVACY => 'CC_CATEGORY_PRIVACY', + self::CC_CATEGORY_BCDR => 'CC_CATEGORY_BCDR', + self::CC_CATEGORY_ADMIN_ACCESS => 'CC_CATEGORY_ADMIN_ACCESS', + self::CC_CATEGORY_DATA_RESIDENCY => 'CC_CATEGORY_DATA_RESIDENCY', + self::CC_CATEGORY_RESOURCE_USAGE_RESTRICTION => 'CC_CATEGORY_RESOURCE_USAGE_RESTRICTION', + self::CC_CATEGORY_SERVICE_SPECIFIC => 'CC_CATEGORY_SERVICE_SPECIFIC', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php new file mode 100644 index 000000000000..e8b5721a137b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php @@ -0,0 +1,554 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment + */ +class CloudControlDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The details of the target resource that the cloud control is + * deployed You can use an existing target resource or create a new target. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target_resource_config = null; + /** + * Output only. The resource that the cloud control is deployed on, in one of + * the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource = ''; + /** + * Required. The deployment mode and parameters for the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_control_metadata = null; + /** + * Optional. A friendly description for the cloud control deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The state of the cloud control deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deployment_state = 0; + /** + * Output only. The time when the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. To prevent concurrent updates from overwriting each other, + * provide the `etag` when you update a cloud control deployment. You can also + * provide the `etag` when you delete a cloud control deployment to help + * ensure that you're deleting the intended version of the + * deployment. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Output only. The cloud control after the given parameters are substituted. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $parameter_substituted_cloud_control = null; + /** + * Output only. The references to the framework deployments that this cloud + * control deployment is part of. A cloud control deployment can be part of + * multiple framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $framework_deployment_references; + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config + * Required. The details of the target resource that the cloud control is + * deployed You can use an existing target resource or create a new target. + * @type string $target_resource + * Output only. The resource that the cloud control is deployed on, in one of + * the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata $cloud_control_metadata + * Required. The deployment mode and parameters for the cloud control. + * @type string $description + * Optional. A friendly description for the cloud control deployment. + * @type int $deployment_state + * Output only. The state of the cloud control deployment. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the resource was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the resource was last updated. + * @type string $etag + * Optional. To prevent concurrent updates from overwriting each other, + * provide the `etag` when you update a cloud control deployment. You can also + * provide the `etag` when you delete a cloud control deployment to help + * ensure that you're deleting the intended version of the + * deployment. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $parameter_substituted_cloud_control + * Output only. The cloud control after the given parameters are substituted. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference[] $framework_deployment_references + * Output only. The references to the framework deployments that this cloud + * control deployment is part of. A cloud control deployment can be part of + * multiple framework deployments. + * @type string $target_resource_display_name + * Output only. The display name of the target resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * 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. The details of the target resource that the cloud control is + * deployed You can use an existing target resource or create a new target. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig|null + */ + public function getTargetResourceConfig() + { + return $this->target_resource_config; + } + + public function hasTargetResourceConfig() + { + return isset($this->target_resource_config); + } + + public function clearTargetResourceConfig() + { + unset($this->target_resource_config); + } + + /** + * Required. The details of the target resource that the cloud control is + * deployed You can use an existing target resource or create a new target. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $var + * @return $this + */ + public function setTargetResourceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig::class); + $this->target_resource_config = $var; + + return $this; + } + + /** + * Output only. The resource that the cloud control is deployed on, in one of + * the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * Output only. The resource that the cloud control is deployed on, in one of + * the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + + /** + * Required. The deployment mode and parameters for the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata|null + */ + public function getCloudControlMetadata() + { + return $this->cloud_control_metadata; + } + + public function hasCloudControlMetadata() + { + return isset($this->cloud_control_metadata); + } + + public function clearCloudControlMetadata() + { + unset($this->cloud_control_metadata); + } + + /** + * Required. The deployment mode and parameters for the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata $var + * @return $this + */ + public function setCloudControlMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata::class); + $this->cloud_control_metadata = $var; + + return $this; + } + + /** + * Optional. A friendly description for the cloud control deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A friendly description for the cloud control deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The state of the cloud control deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDeploymentState() + { + return $this->deployment_state; + } + + /** + * Output only. The state of the cloud control deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDeploymentState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\DeploymentState::class); + $this->deployment_state = $var; + + return $this; + } + + /** + * Output only. The time when the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the resource was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 time when the resource was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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; + } + + /** + * Optional. To prevent concurrent updates from overwriting each other, + * provide the `etag` when you update a cloud control deployment. You can also + * provide the `etag` when you delete a cloud control deployment to help + * ensure that you're deleting the intended version of the + * deployment. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. To prevent concurrent updates from overwriting each other, + * provide the `etag` when you update a cloud control deployment. You can also + * provide the `etag` when you delete a cloud control deployment to help + * ensure that you're deleting the intended version of the + * deployment. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The cloud control after the given parameters are substituted. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null + */ + public function getParameterSubstitutedCloudControl() + { + return $this->parameter_substituted_cloud_control; + } + + public function hasParameterSubstitutedCloudControl() + { + return isset($this->parameter_substituted_cloud_control); + } + + public function clearParameterSubstitutedCloudControl() + { + unset($this->parameter_substituted_cloud_control); + } + + /** + * Output only. The cloud control after the given parameters are substituted. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var + * @return $this + */ + public function setParameterSubstitutedCloudControl($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); + $this->parameter_substituted_cloud_control = $var; + + return $this; + } + + /** + * Output only. The references to the framework deployments that this cloud + * control deployment is part of. A cloud control deployment can be part of + * multiple framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference> + */ + public function getFrameworkDeploymentReferences() + { + return $this->framework_deployment_references; + } + + /** + * Output only. The references to the framework deployments that this cloud + * control deployment is part of. A cloud control deployment can be part of + * multiple framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference[] $var + * @return $this + */ + public function setFrameworkDeploymentReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference::class); + $this->framework_deployment_references = $arr; + + return $this; + } + + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetResourceDisplayName() + { + return $this->target_resource_display_name; + } + + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetResourceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->target_resource_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php new file mode 100644 index 000000000000..3a86d1785e58 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php @@ -0,0 +1,83 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference + */ +class CloudControlDeploymentReference extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the CloudControlDeployment. The format is + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $cloud_control_deployment = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_control_deployment + * Output only. The name of the CloudControlDeployment. The format is + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the CloudControlDeployment. The format is + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getCloudControlDeployment() + { + return $this->cloud_control_deployment; + } + + /** + * Output only. The name of the CloudControlDeployment. The format is + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCloudControlDeployment($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_deployment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php new file mode 100644 index 000000000000..280eb25d3ae0 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php @@ -0,0 +1,163 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlDetails + */ +class CloudControlDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The major version of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $major_revision_id = 0; + /** + * Optional. Parameters are key-value pairs that let you provide your custom + * location requirements, environment requirements, or other settings that are + * relevant to the cloud control. An example parameter is + * `{"name": "location","value": "us-west-1"}`. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * @type int|string $major_revision_id + * Required. The major version of the cloud control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Parameter[] $parameters + * Optional. Parameters are key-value pairs that let you provide your custom + * location requirements, environment requirements, or other settings that are + * relevant to the cloud control. An example parameter is + * `{"name": "location","value": "us-west-1"}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The major version of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Required. The major version of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * Optional. Parameters are key-value pairs that let you provide your custom + * location requirements, environment requirements, or other settings that are + * relevant to the cloud control. An example parameter is + * `{"name": "location","value": "us-west-1"}`. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Parameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Optional. Parameters are key-value pairs that let you provide your custom + * location requirements, environment requirements, or other settings that are + * relevant to the cloud control. An example parameter is + * `{"name": "location","value": "us-west-1"}`. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Parameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Parameter::class); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php new file mode 100644 index 000000000000..843c4c4a362f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php @@ -0,0 +1,495 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + */ +class CloudControlGroupAuditDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ID of the cloud control group. + * + * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_control_group_id = ''; + /** + * Output only. The display name of the cloud control group. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The description of the cloud control group. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. The responsibility type. + * + * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $responsibility_type = ''; + /** + * Output only. The description of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $google_responsibility_description = ''; + /** + * Output only. The implementation of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $google_responsibility_implementation = ''; + /** + * Output only. The description of your responsibility. + * + * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_responsibility_description = ''; + /** + * Output only. The implementation of your responsibility. + * + * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_responsibility_implementation = ''; + /** + * Output only. The compliance state of the control group. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliance_state = 0; + /** + * Output only. The ID of the regulatory control. + * + * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $control_id = ''; + /** + * Output only. The control family. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $control_family = null; + /** + * Output only. The details for the cloud controls within this group. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $cloud_control_details; + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $report_summary = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_control_group_id + * Output only. The ID of the cloud control group. + * @type string $display_name + * Output only. The display name of the cloud control group. + * @type string $description + * Output only. The description of the cloud control group. + * @type string $responsibility_type + * Output only. The responsibility type. + * @type string $google_responsibility_description + * Output only. The description of Google's responsibility. + * @type string $google_responsibility_implementation + * Output only. The implementation of Google's responsibility. + * @type string $customer_responsibility_description + * Output only. The description of your responsibility. + * @type string $customer_responsibility_implementation + * Output only. The implementation of your responsibility. + * @type int $compliance_state + * Output only. The compliance state of the control group. + * @type string $control_id + * Output only. The ID of the regulatory control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $control_family + * Output only. The control family. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $cloud_control_details + * Output only. The details for the cloud controls within this group. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary + * Output only. The summary of the report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ID of the cloud control group. + * + * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudControlGroupId() + { + return $this->cloud_control_group_id; + } + + /** + * Output only. The ID of the cloud control group. + * + * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudControlGroupId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_group_id = $var; + + return $this; + } + + /** + * Output only. The display name of the cloud control group. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name of the cloud control group. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The description of the cloud control group. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. The description of the cloud control group. + * + * Generated from protobuf field string description = 3 [(.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. The responsibility type. + * + * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResponsibilityType() + { + return $this->responsibility_type; + } + + /** + * Output only. The responsibility type. + * + * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResponsibilityType($var) + { + GPBUtil::checkString($var, True); + $this->responsibility_type = $var; + + return $this; + } + + /** + * Output only. The description of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGoogleResponsibilityDescription() + { + return $this->google_responsibility_description; + } + + /** + * Output only. The description of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGoogleResponsibilityDescription($var) + { + GPBUtil::checkString($var, True); + $this->google_responsibility_description = $var; + + return $this; + } + + /** + * Output only. The implementation of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGoogleResponsibilityImplementation() + { + return $this->google_responsibility_implementation; + } + + /** + * Output only. The implementation of Google's responsibility. + * + * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGoogleResponsibilityImplementation($var) + { + GPBUtil::checkString($var, True); + $this->google_responsibility_implementation = $var; + + return $this; + } + + /** + * Output only. The description of your responsibility. + * + * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCustomerResponsibilityDescription() + { + return $this->customer_responsibility_description; + } + + /** + * Output only. The description of your responsibility. + * + * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCustomerResponsibilityDescription($var) + { + GPBUtil::checkString($var, True); + $this->customer_responsibility_description = $var; + + return $this; + } + + /** + * Output only. The implementation of your responsibility. + * + * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCustomerResponsibilityImplementation() + { + return $this->customer_responsibility_implementation; + } + + /** + * Output only. The implementation of your responsibility. + * + * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCustomerResponsibilityImplementation($var) + { + GPBUtil::checkString($var, True); + $this->customer_responsibility_implementation = $var; + + return $this; + } + + /** + * Output only. The compliance state of the control group. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getComplianceState() + { + return $this->compliance_state; + } + + /** + * Output only. The compliance state of the control group. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setComplianceState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); + $this->compliance_state = $var; + + return $this; + } + + /** + * Output only. The ID of the regulatory control. + * + * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getControlId() + { + return $this->control_id; + } + + /** + * Output only. The ID of the regulatory control. + * + * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setControlId($var) + { + GPBUtil::checkString($var, True); + $this->control_id = $var; + + return $this; + } + + /** + * Output only. The control family. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily|null + */ + public function getControlFamily() + { + return $this->control_family; + } + + public function hasControlFamily() + { + return isset($this->control_family); + } + + public function clearControlFamily() + { + unset($this->control_family); + } + + /** + * Output only. The control family. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $var + * @return $this + */ + public function setControlFamily($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily::class); + $this->control_family = $var; + + return $this; + } + + /** + * Output only. The details for the cloud controls within this group. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails> + */ + public function getCloudControlDetails() + { + return $this->cloud_control_details; + } + + /** + * Output only. The details for the cloud controls within this group. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $var + * @return $this + */ + public function setCloudControlDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails::class); + $this->cloud_control_details = $arr; + + return $this; + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null + */ + public function getReportSummary() + { + return $this->report_summary; + } + + public function hasReportSummary() + { + return isset($this->report_summary); + } + + public function clearReportSummary() + { + unset($this->report_summary); + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var + * @return $this + */ + public function setReportSummary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); + $this->report_summary = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php new file mode 100644 index 000000000000..15ee9e6f071a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php @@ -0,0 +1,112 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata + */ +class CloudControlMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The cloud control name and parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_control_details = null; + /** + * Required. The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enforcement_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails $cloud_control_details + * Required. The cloud control name and parameters. + * @type int $enforcement_mode + * Required. The enforcement mode of the cloud control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The cloud control name and parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails|null + */ + public function getCloudControlDetails() + { + return $this->cloud_control_details; + } + + public function hasCloudControlDetails() + { + return isset($this->cloud_control_details); + } + + public function clearCloudControlDetails() + { + unset($this->cloud_control_details); + } + + /** + * Required. The cloud control name and parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails $var + * @return $this + */ + public function setCloudControlDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails::class); + $this->cloud_control_details = $var; + + return $this; + } + + /** + * Required. The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEnforcementMode() + { + return $this->enforcement_mode; + } + + /** + * Required. The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEnforcementMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); + $this->enforcement_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php new file mode 100644 index 000000000000..fc76eb78793d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php @@ -0,0 +1,584 @@ +google.cloud.cloudsecuritycompliance.v1.CloudControlReport + */ +class CloudControlReport extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1; + */ + protected $cloud_control = ''; + /** + * The display name of the cloud control. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The description of the cloud control. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * The list of categories for the cloud control. + * + * Generated from protobuf field repeated string categories = 6; + */ + private $categories; + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + */ + private $similar_controls; + /** + * The type of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + */ + protected $cloud_control_type = 0; + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 11; + */ + protected $finding_category = ''; + /** + * The list of rules that correspond to the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + private $rules; + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + */ + protected $finding_severity = 0; + /** + * The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + */ + protected $enforcement_mode = 0; + /** + * The name of the cloud control deployment. + * + * Generated from protobuf field string cloud_control_deployment = 17; + */ + protected $cloud_control_deployment = ''; + /** + * The major revision ID of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 18; + */ + protected $major_revision_id = 0; + /** + * The minor revision ID of the cloud control. + * + * Generated from protobuf field int64 minor_revision_id = 19; + */ + protected $minor_revision_id = 0; + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * + * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; + */ + private $framework_major_revision_ids; + protected $assessment_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails $manual_cloud_control_assessment_details + * The details of a manual cloud control assessment. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails $cloud_control_assessment_details + * The details of a cloud control assessment. + * @type string $cloud_control + * The name of the cloud control. + * @type string $display_name + * The display name of the cloud control. + * @type string $description + * The description of the cloud control. + * @type string[] $categories + * The list of categories for the cloud control. + * @type \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $similar_controls + * The list of similar controls. + * @type int $cloud_control_type + * The type of the cloud control. + * @type string $finding_category + * The category of the finding. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $rules + * The list of rules that correspond to the cloud control. + * @type int $finding_severity + * The severity of the finding. + * @type int $enforcement_mode + * The enforcement mode of the cloud control. + * @type string $cloud_control_deployment + * The name of the cloud control deployment. + * @type int|string $major_revision_id + * The major revision ID of the cloud control. + * @type int|string $minor_revision_id + * The minor revision ID of the cloud control. + * @type int[]|string[] $framework_major_revision_ids + * The major revision IDs of the frameworks that the cloud control belongs to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The details of a manual cloud control assessment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails|null + */ + public function getManualCloudControlAssessmentDetails() + { + return $this->readOneof(13); + } + + public function hasManualCloudControlAssessmentDetails() + { + return $this->hasOneof(13); + } + + /** + * The details of a manual cloud control assessment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails $var + * @return $this + */ + public function setManualCloudControlAssessmentDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * The details of a cloud control assessment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails|null + */ + public function getCloudControlAssessmentDetails() + { + return $this->readOneof(14); + } + + public function hasCloudControlAssessmentDetails() + { + return $this->hasOneof(14); + } + + /** + * The details of a cloud control assessment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails $var + * @return $this + */ + public function setCloudControlAssessmentDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1; + * @return string + */ + public function getCloudControl() + { + return $this->cloud_control; + } + + /** + * The name of the cloud control. + * + * Generated from protobuf field string cloud_control = 1; + * @param string $var + * @return $this + */ + public function setCloudControl($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control = $var; + + return $this; + } + + /** + * The display name of the cloud control. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the cloud control. + * + * 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; + } + + /** + * The description of the cloud control. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the cloud control. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The list of categories for the cloud control. + * + * Generated from protobuf field repeated string categories = 6; + * @return RepeatedField + */ + public function getCategories() + { + return $this->categories; + } + + /** + * The list of categories for the cloud control. + * + * Generated from protobuf field repeated string categories = 6; + * @param string[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->categories = $arr; + + return $this; + } + + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\SimilarControls> + */ + public function getSimilarControls() + { + return $this->similar_controls; + } + + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * @param \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $var + * @return $this + */ + public function setSimilarControls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls::class); + $this->similar_controls = $arr; + + return $this; + } + + /** + * The type of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * @return int + */ + public function getCloudControlType() + { + return $this->cloud_control_type; + } + + /** + * The type of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * @param int $var + * @return $this + */ + public function setCloudControlType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl\Type::class); + $this->cloud_control_type = $var; + + return $this; + } + + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 11; + * @return string + */ + public function getFindingCategory() + { + return $this->finding_category; + } + + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 11; + * @param string $var + * @return $this + */ + public function setFindingCategory($var) + { + GPBUtil::checkString($var, True); + $this->finding_category = $var; + + return $this; + } + + /** + * The list of rules that correspond to the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Rule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * The list of rules that correspond to the cloud control. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Rule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * @return int + */ + public function getFindingSeverity() + { + return $this->finding_severity; + } + + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * @param int $var + * @return $this + */ + public function setFindingSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); + $this->finding_severity = $var; + + return $this; + } + + /** + * The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * @return int + */ + public function getEnforcementMode() + { + return $this->enforcement_mode; + } + + /** + * The enforcement mode of the cloud control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * @param int $var + * @return $this + */ + public function setEnforcementMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); + $this->enforcement_mode = $var; + + return $this; + } + + /** + * The name of the cloud control deployment. + * + * Generated from protobuf field string cloud_control_deployment = 17; + * @return string + */ + public function getCloudControlDeployment() + { + return $this->cloud_control_deployment; + } + + /** + * The name of the cloud control deployment. + * + * Generated from protobuf field string cloud_control_deployment = 17; + * @param string $var + * @return $this + */ + public function setCloudControlDeployment($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_deployment = $var; + + return $this; + } + + /** + * The major revision ID of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 18; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * The major revision ID of the cloud control. + * + * Generated from protobuf field int64 major_revision_id = 18; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * The minor revision ID of the cloud control. + * + * Generated from protobuf field int64 minor_revision_id = 19; + * @return int|string + */ + public function getMinorRevisionId() + { + return $this->minor_revision_id; + } + + /** + * The minor revision ID of the cloud control. + * + * Generated from protobuf field int64 minor_revision_id = 19; + * @param int|string $var + * @return $this + */ + public function setMinorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->minor_revision_id = $var; + + return $this; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * + * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; + * @return RepeatedField|RepeatedField + */ + public function getFrameworkMajorRevisionIds() + { + return $this->framework_major_revision_ids; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * + * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; + * @param int[]|string[] $var + * @return $this + */ + public function setFrameworkMajorRevisionIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->framework_major_revision_ids = $arr; + + return $this; + } + + /** + * @return string + */ + public function getAssessmentDetails() + { + return $this->whichOneof("assessment_details"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php new file mode 100644 index 000000000000..9047b9630529 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php @@ -0,0 +1,68 @@ +google.cloud.cloudsecuritycompliance.v1.CloudProvider + */ +class CloudProvider +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CLOUD_PROVIDER_UNSPECIFIED = 0; + */ + const CLOUD_PROVIDER_UNSPECIFIED = 0; + /** + * Amazon Web Services (AWS). + * + * Generated from protobuf enum AWS = 1; + */ + const AWS = 1; + /** + * Microsoft Azure. + * + * Generated from protobuf enum AZURE = 2; + */ + const AZURE = 2; + /** + * Google Cloud. + * + * Generated from protobuf enum GCP = 3; + */ + const GCP = 3; + + private static $valueToName = [ + self::CLOUD_PROVIDER_UNSPECIFIED => 'CLOUD_PROVIDER_UNSPECIFIED', + self::AWS => 'AWS', + self::AZURE => 'AZURE', + self::GCP => 'GCP', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php new file mode 100644 index 000000000000..977c81207a4c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php @@ -0,0 +1,173 @@ +google.cloud.cloudsecuritycompliance.v1.CmEnrollment + */ +class CmEnrollment extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Compliance Manager enrollment. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. Whether the resource is enrolled in Compliance Manager. + * This setting is inherited by all descendants. + * + * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enrolled = false; + /** + * Optional. The audit configuration for Compliance Manager. + * If set at a scope, this configuration overrides any inherited audit + * configuration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $audit_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Compliance Manager enrollment. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * @type bool $enrolled + * Optional. Whether the resource is enrolled in Compliance Manager. + * This setting is inherited by all descendants. + * @type \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig $audit_config + * Optional. The audit configuration for Compliance Manager. + * If set at a scope, this configuration overrides any inherited audit + * configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Compliance Manager enrollment. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Compliance Manager enrollment. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/cmEnrollment` + * * `folders/{folder_id}/locations/{location}/cmEnrollment` + * * `projects/{project_id}/locations/{location}/cmEnrollment` + * + * 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; + } + + /** + * Optional. Whether the resource is enrolled in Compliance Manager. + * This setting is inherited by all descendants. + * + * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnrolled() + { + return $this->enrolled; + } + + /** + * Optional. Whether the resource is enrolled in Compliance Manager. + * This setting is inherited by all descendants. + * + * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnrolled($var) + { + GPBUtil::checkBool($var); + $this->enrolled = $var; + + return $this; + } + + /** + * Optional. The audit configuration for Compliance Manager. + * If set at a scope, this configuration overrides any inherited audit + * configuration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig|null + */ + public function getAuditConfig() + { + return $this->audit_config; + } + + public function hasAuditConfig() + { + return isset($this->audit_config); + } + + public function clearAuditConfig() + { + unset($this->audit_config); + } + + /** + * Optional. The audit configuration for Compliance Manager. + * If set at a scope, this configuration overrides any inherited audit + * configuration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig $var + * @return $this + */ + public function setAuditConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig::class); + $this->audit_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php new file mode 100644 index 000000000000..0cfaf6bebedf --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php @@ -0,0 +1,82 @@ +google.cloud.cloudsecuritycompliance.v1.ComplianceState + */ +class ComplianceState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum COMPLIANCE_STATE_UNSPECIFIED = 0; + */ + const COMPLIANCE_STATE_UNSPECIFIED = 0; + /** + * The resource is compliant. + * + * Generated from protobuf enum COMPLIANT = 1; + */ + const COMPLIANT = 1; + /** + * The resource has a violation. + * + * Generated from protobuf enum VIOLATION = 2; + */ + const VIOLATION = 2; + /** + * The resource requires manual review from you. + * + * Generated from protobuf enum MANUAL_REVIEW_NEEDED = 3; + */ + const MANUAL_REVIEW_NEEDED = 3; + /** + * An error occurred while computing the resource status. + * + * Generated from protobuf enum ERROR = 4; + */ + const ERROR = 4; + /** + * The resource can't be audited. + * + * Generated from protobuf enum AUDIT_NOT_SUPPORTED = 5; + */ + const AUDIT_NOT_SUPPORTED = 5; + + private static $valueToName = [ + self::COMPLIANCE_STATE_UNSPECIFIED => 'COMPLIANCE_STATE_UNSPECIFIED', + self::COMPLIANT => 'COMPLIANT', + self::VIOLATION => 'VIOLATION', + self::MANUAL_REVIEW_NEEDED => 'MANUAL_REVIEW_NEEDED', + self::ERROR => 'ERROR', + self::AUDIT_NOT_SUPPORTED => 'AUDIT_NOT_SUPPORTED', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php new file mode 100644 index 000000000000..c7ea1c94d6f9 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php @@ -0,0 +1,525 @@ +google.cloud.cloudsecuritycompliance.v1.Control + */ +class Control extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of a regulatory control, in one of the following + * formats: + * - `organizations/{organization}/locations/{location}/controls/{control}` + * - `projects/{project}/locations/{location}/controls/{control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The friendly name for the regulatory control. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The description of the regulatory control. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. The regulatory group that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $family = 0; + /** + * Output only. The regulatory family that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $control_family = null; + /** + * Output only. The entity that's responsible for the control, whether Google, + * you as the customer, or both. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $responsibility_type = 0; + /** + * Output only. A description of Google's responsibility for the regulatory + * control. + * + * Generated from protobuf field string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $google_responsibility_description = ''; + /** + * Output only. A description of Google's responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $google_responsibility_implementation = ''; + /** + * Output only. A description of your responsibility for the regulatory + * control. + * + * Generated from protobuf field string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_responsibility_description = ''; + /** + * Output only. A description of the your responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $customer_responsibility_implementation = ''; + /** + * Output only. A description of the responsibility that's shared between + * Google and you in implementing this control. + * + * Generated from protobuf field string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $shared_responsibility_description = ''; + /** + * Output only. A link to the documentation that's related to this control. + * + * Generated from protobuf field string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $additional_content_uri = ''; + /** + * Output only. The frameworks that include this control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $related_frameworks; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of a regulatory control, in one of the following + * formats: + * - `organizations/{organization}/locations/{location}/controls/{control}` + * - `projects/{project}/locations/{location}/controls/{control}`. + * The only supported location is `global`. + * @type string $display_name + * Output only. The friendly name for the regulatory control. + * @type string $description + * Output only. The description of the regulatory control. + * @type int $family + * Output only. The regulatory group that the control belongs to. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $control_family + * Output only. The regulatory family that the control belongs to. + * @type int $responsibility_type + * Output only. The entity that's responsible for the control, whether Google, + * you as the customer, or both. + * @type string $google_responsibility_description + * Output only. A description of Google's responsibility for the regulatory + * control. + * @type string $google_responsibility_implementation + * Output only. A description of Google's responsibility for implementing the + * regulatory control. + * @type string $customer_responsibility_description + * Output only. A description of your responsibility for the regulatory + * control. + * @type string $customer_responsibility_implementation + * Output only. A description of the your responsibility for implementing the + * regulatory control. + * @type string $shared_responsibility_description + * Output only. A description of the responsibility that's shared between + * Google and you in implementing this control. + * @type string $additional_content_uri + * Output only. A link to the documentation that's related to this control. + * @type string[] $related_frameworks + * Output only. The frameworks that include this control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of a regulatory control, in one of the following + * formats: + * - `organizations/{organization}/locations/{location}/controls/{control}` + * - `projects/{project}/locations/{location}/controls/{control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The name of a regulatory control, in one of the following + * formats: + * - `organizations/{organization}/locations/{location}/controls/{control}` + * - `projects/{project}/locations/{location}/controls/{control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The friendly name for the regulatory control. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The friendly name for the regulatory control. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The description of the regulatory control. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. The description of the regulatory control. + * + * Generated from protobuf field string description = 4 [(.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. The regulatory group that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFamily() + { + return $this->family; + } + + /** + * Output only. The regulatory group that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFamily($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Control\Family::class); + $this->family = $var; + + return $this; + } + + /** + * Output only. The regulatory family that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily|null + */ + public function getControlFamily() + { + return $this->control_family; + } + + public function hasControlFamily() + { + return isset($this->control_family); + } + + public function clearControlFamily() + { + unset($this->control_family); + } + + /** + * Output only. The regulatory family that the control belongs to. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $var + * @return $this + */ + public function setControlFamily($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily::class); + $this->control_family = $var; + + return $this; + } + + /** + * Output only. The entity that's responsible for the control, whether Google, + * you as the customer, or both. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getResponsibilityType() + { + return $this->responsibility_type; + } + + /** + * Output only. The entity that's responsible for the control, whether Google, + * you as the customer, or both. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setResponsibilityType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\RegulatoryControlResponsibilityType::class); + $this->responsibility_type = $var; + + return $this; + } + + /** + * Output only. A description of Google's responsibility for the regulatory + * control. + * + * Generated from protobuf field string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGoogleResponsibilityDescription() + { + return $this->google_responsibility_description; + } + + /** + * Output only. A description of Google's responsibility for the regulatory + * control. + * + * Generated from protobuf field string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGoogleResponsibilityDescription($var) + { + GPBUtil::checkString($var, True); + $this->google_responsibility_description = $var; + + return $this; + } + + /** + * Output only. A description of Google's responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGoogleResponsibilityImplementation() + { + return $this->google_responsibility_implementation; + } + + /** + * Output only. A description of Google's responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGoogleResponsibilityImplementation($var) + { + GPBUtil::checkString($var, True); + $this->google_responsibility_implementation = $var; + + return $this; + } + + /** + * Output only. A description of your responsibility for the regulatory + * control. + * + * Generated from protobuf field string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCustomerResponsibilityDescription() + { + return $this->customer_responsibility_description; + } + + /** + * Output only. A description of your responsibility for the regulatory + * control. + * + * Generated from protobuf field string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCustomerResponsibilityDescription($var) + { + GPBUtil::checkString($var, True); + $this->customer_responsibility_description = $var; + + return $this; + } + + /** + * Output only. A description of the your responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCustomerResponsibilityImplementation() + { + return $this->customer_responsibility_implementation; + } + + /** + * Output only. A description of the your responsibility for implementing the + * regulatory control. + * + * Generated from protobuf field string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCustomerResponsibilityImplementation($var) + { + GPBUtil::checkString($var, True); + $this->customer_responsibility_implementation = $var; + + return $this; + } + + /** + * Output only. A description of the responsibility that's shared between + * Google and you in implementing this control. + * + * Generated from protobuf field string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSharedResponsibilityDescription() + { + return $this->shared_responsibility_description; + } + + /** + * Output only. A description of the responsibility that's shared between + * Google and you in implementing this control. + * + * Generated from protobuf field string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSharedResponsibilityDescription($var) + { + GPBUtil::checkString($var, True); + $this->shared_responsibility_description = $var; + + return $this; + } + + /** + * Output only. A link to the documentation that's related to this control. + * + * Generated from protobuf field string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdditionalContentUri() + { + return $this->additional_content_uri; + } + + /** + * Output only. A link to the documentation that's related to this control. + * + * Generated from protobuf field string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdditionalContentUri($var) + { + GPBUtil::checkString($var, True); + $this->additional_content_uri = $var; + + return $this; + } + + /** + * Output only. The frameworks that include this control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getRelatedFrameworks() + { + return $this->related_frameworks; + } + + /** + * Output only. The frameworks that include this control. + * + * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setRelatedFrameworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_frameworks = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php new file mode 100644 index 000000000000..43890bb5a354 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php @@ -0,0 +1,173 @@ +google.cloud.cloudsecuritycompliance.v1.Control.Family + */ +class Family +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FAMILY_UNSPECIFIED = 0; + */ + const FAMILY_UNSPECIFIED = 0; + /** + * Access control + * + * Generated from protobuf enum AC = 1; + */ + const AC = 1; + /** + * Awareness and araining + * + * Generated from protobuf enum AT = 2; + */ + const AT = 2; + /** + * Audit and accountability + * + * Generated from protobuf enum AU = 3; + */ + const AU = 3; + /** + * Certification, accreditation, and security assessments + * + * Generated from protobuf enum CA = 4; + */ + const CA = 4; + /** + * Configuration management + * + * Generated from protobuf enum CM = 5; + */ + const CM = 5; + /** + * Contingency planning + * + * Generated from protobuf enum CP = 6; + */ + const CP = 6; + /** + * Identification and authentication + * + * Generated from protobuf enum IA = 7; + */ + const IA = 7; + /** + * Incident response + * + * Generated from protobuf enum IR = 8; + */ + const IR = 8; + /** + * Maintenance + * + * Generated from protobuf enum MA = 9; + */ + const MA = 9; + /** + * Media protection + * + * Generated from protobuf enum MP = 10; + */ + const MP = 10; + /** + * Physical and environmental protection + * + * Generated from protobuf enum PE = 11; + */ + const PE = 11; + /** + * Security planning + * + * Generated from protobuf enum PL = 12; + */ + const PL = 12; + /** + * Personnel aecurity + * + * Generated from protobuf enum PS = 13; + */ + const PS = 13; + /** + * Risk assessment + * + * Generated from protobuf enum RA = 14; + */ + const RA = 14; + /** + * System services and acquisition + * + * Generated from protobuf enum SA = 15; + */ + const SA = 15; + /** + * System and communications protection + * + * Generated from protobuf enum SC = 16; + */ + const SC = 16; + /** + * System and information integrity + * + * Generated from protobuf enum SI = 17; + */ + const SI = 17; + /** + * Supply chain risk management + * + * Generated from protobuf enum SR = 18; + */ + const SR = 18; + + private static $valueToName = [ + self::FAMILY_UNSPECIFIED => 'FAMILY_UNSPECIFIED', + self::AC => 'AC', + self::AT => 'AT', + self::AU => 'AU', + self::CA => 'CA', + self::CM => 'CM', + self::CP => 'CP', + self::IA => 'IA', + self::IR => 'IR', + self::MA => 'MA', + self::MP => 'MP', + self::PE => 'PE', + self::PL => 'PL', + self::PS => 'PS', + self::RA => 'RA', + self::SA => 'SA', + self::SC => 'SC', + self::SI => 'SI', + self::SR => 'SR', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php new file mode 100644 index 000000000000..fc0cccad0f41 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php @@ -0,0 +1,173 @@ +google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + */ +class ControlAssessmentDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The number of controls that are passing or not assessed. + * + * Generated from protobuf field int32 passing_controls = 1; + */ + protected $passing_controls = 0; + /** + * The number of controls that are failing. + * + * Generated from protobuf field int32 failing_controls = 2; + */ + protected $failing_controls = 0; + /** + * The number of controls that were assessed and are passing. + * + * Generated from protobuf field int32 assessed_passing_controls = 3; + */ + protected $assessed_passing_controls = 0; + /** + * The number of controls that aren't assessed because they require manual + * review. + * + * Generated from protobuf field int32 not_assessed_controls = 4; + */ + protected $not_assessed_controls = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $passing_controls + * The number of controls that are passing or not assessed. + * @type int $failing_controls + * The number of controls that are failing. + * @type int $assessed_passing_controls + * The number of controls that were assessed and are passing. + * @type int $not_assessed_controls + * The number of controls that aren't assessed because they require manual + * review. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The number of controls that are passing or not assessed. + * + * Generated from protobuf field int32 passing_controls = 1; + * @return int + */ + public function getPassingControls() + { + return $this->passing_controls; + } + + /** + * The number of controls that are passing or not assessed. + * + * Generated from protobuf field int32 passing_controls = 1; + * @param int $var + * @return $this + */ + public function setPassingControls($var) + { + GPBUtil::checkInt32($var); + $this->passing_controls = $var; + + return $this; + } + + /** + * The number of controls that are failing. + * + * Generated from protobuf field int32 failing_controls = 2; + * @return int + */ + public function getFailingControls() + { + return $this->failing_controls; + } + + /** + * The number of controls that are failing. + * + * Generated from protobuf field int32 failing_controls = 2; + * @param int $var + * @return $this + */ + public function setFailingControls($var) + { + GPBUtil::checkInt32($var); + $this->failing_controls = $var; + + return $this; + } + + /** + * The number of controls that were assessed and are passing. + * + * Generated from protobuf field int32 assessed_passing_controls = 3; + * @return int + */ + public function getAssessedPassingControls() + { + return $this->assessed_passing_controls; + } + + /** + * The number of controls that were assessed and are passing. + * + * Generated from protobuf field int32 assessed_passing_controls = 3; + * @param int $var + * @return $this + */ + public function setAssessedPassingControls($var) + { + GPBUtil::checkInt32($var); + $this->assessed_passing_controls = $var; + + return $this; + } + + /** + * The number of controls that aren't assessed because they require manual + * review. + * + * Generated from protobuf field int32 not_assessed_controls = 4; + * @return int + */ + public function getNotAssessedControls() + { + return $this->not_assessed_controls; + } + + /** + * The number of controls that aren't assessed because they require manual + * review. + * + * Generated from protobuf field int32 not_assessed_controls = 4; + * @param int $var + * @return $this + */ + public function setNotAssessedControls($var) + { + GPBUtil::checkInt32($var); + $this->not_assessed_controls = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php new file mode 100644 index 000000000000..77de354fd1cc --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php @@ -0,0 +1,411 @@ +google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + */ +class ControlComplianceSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the control. + * + * Generated from protobuf field string control = 1; + */ + protected $control = ''; + /** + * The display name of the control. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The description of the control. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. The overall evaluation status of the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $overall_evaluation_state = 0; + /** + * The total number of findings for the control. + * + * Generated from protobuf field int32 total_findings_count = 5; + */ + protected $total_findings_count = 0; + /** + * The list of compliance frameworks that the control belongs to. + * + * Generated from protobuf field repeated string compliance_frameworks = 6; + */ + private $compliance_frameworks; + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + */ + private $similar_controls; + /** + * The list of cloud control reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + */ + private $cloud_control_reports; + /** + * The responsibility type for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + */ + protected $control_responsibility_type = 0; + /** + * Whether the control is a fake control. Fake controls are created + * and mapped to cloud controls that don't belong to a control group. + * + * Generated from protobuf field bool is_fake_control = 10; + */ + protected $is_fake_control = false; + /** + * Identifier. The name of the control compliance summary. + * + * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $control + * The name of the control. + * @type string $display_name + * The display name of the control. + * @type string $description + * The description of the control. + * @type int $overall_evaluation_state + * Output only. The overall evaluation status of the control. + * @type int $total_findings_count + * The total number of findings for the control. + * @type string[] $compliance_frameworks + * The list of compliance frameworks that the control belongs to. + * @type \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $similar_controls + * The list of similar controls. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport[] $cloud_control_reports + * The list of cloud control reports. + * @type int $control_responsibility_type + * The responsibility type for the control. + * @type bool $is_fake_control + * Whether the control is a fake control. Fake controls are created + * and mapped to cloud controls that don't belong to a control group. + * @type string $name + * Identifier. The name of the control compliance summary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The name of the control. + * + * Generated from protobuf field string control = 1; + * @return string + */ + public function getControl() + { + return $this->control; + } + + /** + * The name of the control. + * + * Generated from protobuf field string control = 1; + * @param string $var + * @return $this + */ + public function setControl($var) + { + GPBUtil::checkString($var, True); + $this->control = $var; + + return $this; + } + + /** + * The display name of the control. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the control. + * + * 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; + } + + /** + * The description of the control. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the control. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The overall evaluation status of the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getOverallEvaluationState() + { + return $this->overall_evaluation_state; + } + + /** + * Output only. The overall evaluation status of the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setOverallEvaluationState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EvaluationState::class); + $this->overall_evaluation_state = $var; + + return $this; + } + + /** + * The total number of findings for the control. + * + * Generated from protobuf field int32 total_findings_count = 5; + * @return int + */ + public function getTotalFindingsCount() + { + return $this->total_findings_count; + } + + /** + * The total number of findings for the control. + * + * Generated from protobuf field int32 total_findings_count = 5; + * @param int $var + * @return $this + */ + public function setTotalFindingsCount($var) + { + GPBUtil::checkInt32($var); + $this->total_findings_count = $var; + + return $this; + } + + /** + * The list of compliance frameworks that the control belongs to. + * + * Generated from protobuf field repeated string compliance_frameworks = 6; + * @return RepeatedField + */ + public function getComplianceFrameworks() + { + return $this->compliance_frameworks; + } + + /** + * The list of compliance frameworks that the control belongs to. + * + * Generated from protobuf field repeated string compliance_frameworks = 6; + * @param string[] $var + * @return $this + */ + public function setComplianceFrameworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->compliance_frameworks = $arr; + + return $this; + } + + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\SimilarControls> + */ + public function getSimilarControls() + { + return $this->similar_controls; + } + + /** + * The list of similar controls. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * @param \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $var + * @return $this + */ + public function setSimilarControls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls::class); + $this->similar_controls = $arr; + + return $this; + } + + /** + * The list of cloud control reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport> + */ + public function getCloudControlReports() + { + return $this->cloud_control_reports; + } + + /** + * The list of cloud control reports. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport[] $var + * @return $this + */ + public function setCloudControlReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport::class); + $this->cloud_control_reports = $arr; + + return $this; + } + + /** + * The responsibility type for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * @return int + */ + public function getControlResponsibilityType() + { + return $this->control_responsibility_type; + } + + /** + * The responsibility type for the control. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * @param int $var + * @return $this + */ + public function setControlResponsibilityType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\RegulatoryControlResponsibilityType::class); + $this->control_responsibility_type = $var; + + return $this; + } + + /** + * Whether the control is a fake control. Fake controls are created + * and mapped to cloud controls that don't belong to a control group. + * + * Generated from protobuf field bool is_fake_control = 10; + * @return bool + */ + public function getIsFakeControl() + { + return $this->is_fake_control; + } + + /** + * Whether the control is a fake control. Fake controls are created + * and mapped to cloud controls that don't belong to a control group. + * + * Generated from protobuf field bool is_fake_control = 10; + * @param bool $var + * @return $this + */ + public function setIsFakeControl($var) + { + GPBUtil::checkBool($var); + $this->is_fake_control = $var; + + return $this; + } + + /** + * Identifier. The name of the control compliance summary. + * + * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the control compliance summary. + * + * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php new file mode 100644 index 000000000000..05dbb9346a72 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.ControlFamily + */ +class ControlFamily extends \Google\Protobuf\Internal\Message +{ + /** + * The identifier for the regulatory control family. + * + * Generated from protobuf field string family_id = 1; + */ + protected $family_id = ''; + /** + * The friendly name for the regulatory control family. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_id + * The identifier for the regulatory control family. + * @type string $display_name + * The friendly name for the regulatory control family. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The identifier for the regulatory control family. + * + * Generated from protobuf field string family_id = 1; + * @return string + */ + public function getFamilyId() + { + return $this->family_id; + } + + /** + * The identifier for the regulatory control family. + * + * Generated from protobuf field string family_id = 1; + * @param string $var + * @return $this + */ + public function setFamilyId($var) + { + GPBUtil::checkString($var, True); + $this->family_id = $var; + + return $this; + } + + /** + * The friendly name for the regulatory control family. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The friendly name for the regulatory control family. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php new file mode 100644 index 000000000000..cdd431a88d09 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php @@ -0,0 +1,189 @@ +google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest + */ +class CreateCloudControlRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is + * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_control_id = ''; + /** + * Required. The cloud control that's being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_control = null; + + /** + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl Required. The cloud control that's being created. + * @param string $cloudControlId Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is + * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateCloudControlRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl, string $cloudControlId): self + { + return (new self()) + ->setParent($parent) + ->setCloudControl($cloudControl) + ->setCloudControlId($cloudControlId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type string $cloud_control_id + * Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is + * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloud_control + * Required. The cloud control that's being created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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; + } + + /** + * Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is + * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCloudControlId() + { + return $this->cloud_control_id; + } + + /** + * Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is + * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * + * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCloudControlId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_control_id = $var; + + return $this; + } + + /** + * Required. The cloud control that's being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null + */ + public function getCloudControl() + { + return $this->cloud_control; + } + + public function hasCloudControl() + { + return isset($this->cloud_control); + } + + public function clearCloudControl() + { + unset($this->cloud_control); + } + + /** + * Required. The cloud control that's being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var + * @return $this + */ + public function setCloudControl($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); + $this->cloud_control = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php new file mode 100644 index 000000000000..be9f577994b3 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php @@ -0,0 +1,201 @@ +google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + */ +class CreateFrameworkAuditRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this framework audit is created. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The ID to use for the framework audit. The ID becomes the final + * component of the framework audit's full resource name. + * The ID must be between 4-63 characters, and valid characters + * are `\[a-z][0-9]-\`. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_audit_id = ''; + /** + * Required. The framework audit to create. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework_audit = null; + + /** + * @param string $parent Required. The parent resource where this framework audit is created. + * + * Supported formats are the following: + * + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * Please see {@see AuditClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $frameworkAudit Required. The framework audit to create. + * @param string $frameworkAuditId Optional. The ID to use for the framework audit. The ID becomes the final + * component of the framework audit's full resource name. + * + * The ID must be between 4-63 characters, and valid characters + * are `\[a-z][0-9]-\`. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkAuditRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $frameworkAudit, string $frameworkAuditId): self + { + return (new self()) + ->setParent($parent) + ->setFrameworkAudit($frameworkAudit) + ->setFrameworkAuditId($frameworkAuditId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this framework audit is created. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * @type string $framework_audit_id + * Optional. The ID to use for the framework audit. The ID becomes the final + * component of the framework audit's full resource name. + * The ID must be between 4-63 characters, and valid characters + * are `\[a-z][0-9]-\`. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $framework_audit + * Required. The framework audit to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this framework audit is created. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/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. The parent resource where this framework audit is created. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/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; + } + + /** + * Optional. The ID to use for the framework audit. The ID becomes the final + * component of the framework audit's full resource name. + * The ID must be between 4-63 characters, and valid characters + * are `\[a-z][0-9]-\`. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFrameworkAuditId() + { + return $this->framework_audit_id; + } + + /** + * Optional. The ID to use for the framework audit. The ID becomes the final + * component of the framework audit's full resource name. + * The ID must be between 4-63 characters, and valid characters + * are `\[a-z][0-9]-\`. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFrameworkAuditId($var) + { + GPBUtil::checkString($var, True); + $this->framework_audit_id = $var; + + return $this; + } + + /** + * Required. The framework audit to create. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit|null + */ + public function getFrameworkAudit() + { + return $this->framework_audit; + } + + public function hasFrameworkAudit() + { + return isset($this->framework_audit); + } + + public function clearFrameworkAudit() + { + unset($this->framework_audit); + } + + /** + * Required. The framework audit to create. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $var + * @return $this + */ + public function setFrameworkAudit($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit::class); + $this->framework_audit = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php new file mode 100644 index 000000000000..cbdf72cff0c6 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php @@ -0,0 +1,193 @@ +google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest + */ +class CreateFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * Only the global location is supported. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. An identifier for the framework deployment that's unique in scope + * of the parent. If you don't specify a value, then a random UUID is + * generated. + * + * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_deployment_id = ''; + /** + * Required. The framework deployment that you're creating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework_deployment = null; + + /** + * @param string $parent Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * Only the global location is supported. Please see + * {@see DeploymentClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $frameworkDeployment Required. The framework deployment that you're creating. + * @param string $frameworkDeploymentId Optional. An identifier for the framework deployment that's unique in scope + * of the parent. If you don't specify a value, then a random UUID is + * generated. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkDeploymentRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $frameworkDeployment, string $frameworkDeploymentId): self + { + return (new self()) + ->setParent($parent) + ->setFrameworkDeployment($frameworkDeployment) + ->setFrameworkDeploymentId($frameworkDeploymentId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * Only the global location is supported. + * @type string $framework_deployment_id + * Optional. An identifier for the framework deployment that's unique in scope + * of the parent. If you don't specify a value, then a random UUID is + * generated. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $framework_deployment + * Required. The framework deployment that you're creating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * Only the global location is supported. + * + * 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. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * Only the global location is supported. + * + * 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. An identifier for the framework deployment that's unique in scope + * of the parent. If you don't specify a value, then a random UUID is + * generated. + * + * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFrameworkDeploymentId() + { + return $this->framework_deployment_id; + } + + /** + * Optional. An identifier for the framework deployment that's unique in scope + * of the parent. If you don't specify a value, then a random UUID is + * generated. + * + * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFrameworkDeploymentId($var) + { + GPBUtil::checkString($var, True); + $this->framework_deployment_id = $var; + + return $this; + } + + /** + * Required. The framework deployment that you're creating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment|null + */ + public function getFrameworkDeployment() + { + return $this->framework_deployment; + } + + public function hasFrameworkDeployment() + { + return isset($this->framework_deployment); + } + + public function clearFrameworkDeployment() + { + unset($this->framework_deployment); + } + + /** + * Required. The framework deployment that you're creating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $var + * @return $this + */ + public function setFrameworkDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment::class); + $this->framework_deployment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php new file mode 100644 index 000000000000..9b46fc4e54f7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php @@ -0,0 +1,184 @@ +google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest + */ +class CreateFrameworkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * + * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework_id = ''; + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework = null; + + /** + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework Required. The resource being created. + * @param string $frameworkId Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework, string $frameworkId): self + { + return (new self()) + ->setParent($parent) + ->setFramework($framework) + ->setFrameworkId($frameworkId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type string $framework_id + * Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework + * Required. The resource being created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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; + } + + /** + * Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * + * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFrameworkId() + { + return $this->framework_id; + } + + /** + * Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * + * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFrameworkId($var) + { + GPBUtil::checkString($var, True); + $this->framework_id = $var; + + return $this; + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Framework|null + */ + public function getFramework() + { + return $this->framework; + } + + public function hasFramework() + { + return isset($this->framework); + } + + public function clearFramework() + { + unset($this->framework); + } + + /** + * Required. The resource being created. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); + $this->framework = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php new file mode 100644 index 000000000000..d26d096a439a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php @@ -0,0 +1,107 @@ +google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest + */ +class DeleteCloudControlRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::cloudControlName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteCloudControlRequest + * + * @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. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * The only supported location is `global`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * The only supported location is `global`. + * + * 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. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * The only supported location is `global`. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php new file mode 100644 index 000000000000..67cdc6b24dff --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php @@ -0,0 +1,160 @@ +google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest + */ +class DeleteFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the framework deployment that you want to delete, + * in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. An opaque identifier for the current version of the resource. + * If you provide this value, then it must match the existing value. If the + * values don't match, then the request fails with an + * [`ABORTED`][google.rpc.Code.ABORTED] error. + * If you omit this value, then the resource is deleted regardless of its + * current `etag` value. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the framework deployment that you want to delete, + * in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. Please see + * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteFrameworkDeploymentRequest + * + * @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. The name of the framework deployment that you want to delete, + * in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * @type string $etag + * Optional. An opaque identifier for the current version of the resource. + * If you provide this value, then it must match the existing value. If the + * values don't match, then the request fails with an + * [`ABORTED`][google.rpc.Code.ABORTED] error. + * If you omit this value, then the resource is deleted regardless of its + * current `etag` value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the framework deployment that you want to delete, + * in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * 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. The name of the framework deployment that you want to delete, + * in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * 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; + } + + /** + * Optional. An opaque identifier for the current version of the resource. + * If you provide this value, then it must match the existing value. If the + * values don't match, then the request fails with an + * [`ABORTED`][google.rpc.Code.ABORTED] error. + * If you omit this value, then the resource is deleted regardless of its + * current `etag` value. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. An opaque identifier for the current version of the resource. + * If you provide this value, then it must match the existing value. If the + * values don't match, then the request fails with an + * [`ABORTED`][google.rpc.Code.ABORTED] error. + * If you omit this value, then the resource is deleted regardless of its + * current `etag` value. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php new file mode 100644 index 000000000000..f580d88cfd09 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php @@ -0,0 +1,102 @@ +google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest + */ +class DeleteFrameworkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::frameworkName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteFrameworkRequest + * + * @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. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * 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. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php new file mode 100644 index 000000000000..96373523ec86 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php @@ -0,0 +1,109 @@ +google.cloud.cloudsecuritycompliance.v1.DeploymentState + */ +class DeploymentState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0; + */ + const DEPLOYMENT_STATE_UNSPECIFIED = 0; + /** + * Validating the deployment. + * + * Generated from protobuf enum DEPLOYMENT_STATE_VALIDATING = 1; + */ + const DEPLOYMENT_STATE_VALIDATING = 1; + /** + * Deployment is being created. + * + * Generated from protobuf enum DEPLOYMENT_STATE_CREATING = 2; + */ + const DEPLOYMENT_STATE_CREATING = 2; + /** + * Deployment is being deleted. + * + * Generated from protobuf enum DEPLOYMENT_STATE_DELETING = 3; + */ + const DEPLOYMENT_STATE_DELETING = 3; + /** + * Deployment is being updated. + * + * Generated from protobuf enum DEPLOYMENT_STATE_UPDATING = 8; + */ + const DEPLOYMENT_STATE_UPDATING = 8; + /** + * Deployment has failed. All the changes made by the deployment were + * successfully rolled back. You can retry or delete a deployment that's + * in this state. + * + * Generated from protobuf enum DEPLOYMENT_STATE_FAILED = 4; + */ + const DEPLOYMENT_STATE_FAILED = 4; + /** + * Deployment is successful and ready to use. + * + * Generated from protobuf enum DEPLOYMENT_STATE_READY = 5; + */ + const DEPLOYMENT_STATE_READY = 5; + /** + * Deployment is partially deployed. All the cloud controls weren't deployed + * successfully. Retrying the operation resumes from the first failed + * step. + * + * Generated from protobuf enum DEPLOYMENT_STATE_PARTIALLY_DEPLOYED = 6; + */ + const DEPLOYMENT_STATE_PARTIALLY_DEPLOYED = 6; + /** + * Deployment is partially deleted. All the cloud control deployments weren't + * deleted successfully. Retrying the operation resumes from the first + * failed step. + * + * Generated from protobuf enum DEPLOYMENT_STATE_PARTIALLY_DELETED = 7; + */ + const DEPLOYMENT_STATE_PARTIALLY_DELETED = 7; + + private static $valueToName = [ + self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED', + self::DEPLOYMENT_STATE_VALIDATING => 'DEPLOYMENT_STATE_VALIDATING', + self::DEPLOYMENT_STATE_CREATING => 'DEPLOYMENT_STATE_CREATING', + self::DEPLOYMENT_STATE_DELETING => 'DEPLOYMENT_STATE_DELETING', + self::DEPLOYMENT_STATE_UPDATING => 'DEPLOYMENT_STATE_UPDATING', + self::DEPLOYMENT_STATE_FAILED => 'DEPLOYMENT_STATE_FAILED', + self::DEPLOYMENT_STATE_READY => 'DEPLOYMENT_STATE_READY', + self::DEPLOYMENT_STATE_PARTIALLY_DEPLOYED => 'DEPLOYMENT_STATE_PARTIALLY_DEPLOYED', + self::DEPLOYMENT_STATE_PARTIALLY_DELETED => 'DEPLOYMENT_STATE_PARTIALLY_DELETED', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php new file mode 100644 index 000000000000..05bd2e2b2e36 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php @@ -0,0 +1,68 @@ +google.cloud.cloudsecuritycompliance.v1.EnforcementMode + */ +class EnforcementMode +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum ENFORCEMENT_MODE_UNSPECIFIED = 0; + */ + const ENFORCEMENT_MODE_UNSPECIFIED = 0; + /** + * The cloud control is enforced to prevent non-compliance. + * + * Generated from protobuf enum PREVENTIVE = 1; + */ + const PREVENTIVE = 1; + /** + * The cloud control is enforced to detect non-compliance. + * + * Generated from protobuf enum DETECTIVE = 2; + */ + const DETECTIVE = 2; + /** + * The cloud control is enforced to audit for non-compliance. + * + * Generated from protobuf enum AUDIT = 3; + */ + const AUDIT = 3; + + private static $valueToName = [ + self::ENFORCEMENT_MODE_UNSPECIFIED => 'ENFORCEMENT_MODE_UNSPECIFIED', + self::PREVENTIVE => 'PREVENTIVE', + self::DETECTIVE => 'DETECTIVE', + self::AUDIT => 'AUDIT', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php new file mode 100644 index 000000000000..e85395360565 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php @@ -0,0 +1,68 @@ +google.cloud.cloudsecuritycompliance.v1.EvaluationState + */ +class EvaluationState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum EVALUATION_STATE_UNSPECIFIED = 0; + */ + const EVALUATION_STATE_UNSPECIFIED = 0; + /** + * The control is passing. + * + * Generated from protobuf enum EVALUATION_STATE_PASSED = 1; + */ + const EVALUATION_STATE_PASSED = 1; + /** + * The control is failing. + * + * Generated from protobuf enum EVALUATION_STATE_FAILED = 2; + */ + const EVALUATION_STATE_FAILED = 2; + /** + * The control is not assessed. + * + * Generated from protobuf enum EVALUATION_STATE_NOT_ASSESSED = 3; + */ + const EVALUATION_STATE_NOT_ASSESSED = 3; + + private static $valueToName = [ + self::EVALUATION_STATE_UNSPECIFIED => 'EVALUATION_STATE_UNSPECIFIED', + self::EVALUATION_STATE_PASSED => 'EVALUATION_STATE_PASSED', + self::EVALUATION_STATE_FAILED => 'EVALUATION_STATE_FAILED', + self::EVALUATION_STATE_NOT_ASSESSED => 'EVALUATION_STATE_NOT_ASSESSED', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php new file mode 100644 index 000000000000..b2328dc5793c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php @@ -0,0 +1,135 @@ +google.cloud.cloudsecuritycompliance.v1.EvidenceDetails + */ +class EvidenceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource identifier. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource = ''; + /** + * Output only. The service identifier. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service = ''; + /** + * Output only. The path to the evidence. + * + * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $evidence_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * Output only. The resource identifier. + * @type string $service + * Output only. The service identifier. + * @type string $evidence_path + * Output only. The path to the evidence. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource identifier. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Output only. The resource identifier. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Output only. The service identifier. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Output only. The service identifier. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * Output only. The path to the evidence. + * + * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEvidencePath() + { + return $this->evidence_path; + } + + /** + * Output only. The path to the evidence. + * + * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEvidencePath($var) + { + GPBUtil::checkString($var, True); + $this->evidence_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php new file mode 100644 index 000000000000..5ff3fe5f3de3 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php @@ -0,0 +1,159 @@ +google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + */ +class FetchFrameworkComplianceReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the framework compliance report to retrieve. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The end time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_time = null; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $name Required. The name of the framework compliance report to retrieve. Please see + * {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\FetchFrameworkComplianceReportRequest + * + * @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. The name of the framework compliance report to retrieve. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The end time of the report. + * @type string $filter + * Optional. The filtering results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the framework compliance report to retrieve. + * + * 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. The name of the framework compliance report to retrieve. + * + * 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; + } + + /** + * Optional. The end time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @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); + } + + /** + * Optional. The end time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php new file mode 100644 index 000000000000..eff98bf72e66 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php @@ -0,0 +1,117 @@ +google.cloud.cloudsecuritycompliance.v1.FindingClass + */ +class FindingClass +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FINDING_CLASS_UNSPECIFIED = 0; + */ + const FINDING_CLASS_UNSPECIFIED = 0; + /** + * The activity is unwanted or malicious. + * + * Generated from protobuf enum THREAT = 1; + */ + const THREAT = 1; + /** + * A potential weakness in software that increases risk to + * confidentiality, integrity, and availability. + * + * Generated from protobuf enum VULNERABILITY = 2; + */ + const VULNERABILITY = 2; + /** + * A potential weakness in a cloud resource or asset configuration that + * increases risk. + * + * Generated from protobuf enum MISCONFIGURATION = 3; + */ + const MISCONFIGURATION = 3; + /** + * A security observation that is for informational purposes. + * + * Generated from protobuf enum OBSERVATION = 4; + */ + const OBSERVATION = 4; + /** + * An error that prevents Security Command Center from functioning properly. + * + * Generated from protobuf enum SCC_ERROR = 5; + */ + const SCC_ERROR = 5; + /** + * A potential security risk that's due to a change in the security + * posture. + * + * Generated from protobuf enum POSTURE_VIOLATION = 6; + */ + const POSTURE_VIOLATION = 6; + /** + * A combination of security issues that represent a more severe + * security problem when taken together. + * + * Generated from protobuf enum TOXIC_COMBINATION = 7; + */ + const TOXIC_COMBINATION = 7; + /** + * A potential security risk to data assets that contain sensitive + * data. + * + * Generated from protobuf enum SENSITIVE_DATA_RISK = 8; + */ + const SENSITIVE_DATA_RISK = 8; + /** + * A resource or resource group where high risk attack paths + * converge, based on attack path simulations (APS). + * + * Generated from protobuf enum CHOKEPOINT = 9; + */ + const CHOKEPOINT = 9; + + private static $valueToName = [ + self::FINDING_CLASS_UNSPECIFIED => 'FINDING_CLASS_UNSPECIFIED', + self::THREAT => 'THREAT', + self::VULNERABILITY => 'VULNERABILITY', + self::MISCONFIGURATION => 'MISCONFIGURATION', + self::OBSERVATION => 'OBSERVATION', + self::SCC_ERROR => 'SCC_ERROR', + self::POSTURE_VIOLATION => 'POSTURE_VIOLATION', + self::TOXIC_COMBINATION => 'TOXIC_COMBINATION', + self::SENSITIVE_DATA_RISK => 'SENSITIVE_DATA_RISK', + self::CHOKEPOINT => 'CHOKEPOINT', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php new file mode 100644 index 000000000000..b88ca20c37d0 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php @@ -0,0 +1,189 @@ +google.cloud.cloudsecuritycompliance.v1.FindingDetails + */ +class FindingDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the finding. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The compliance state of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliance_state = 0; + /** + * Output only. The observation details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $observation = null; + /** + * Output only. The evidence details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $evidence = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the finding. + * @type int $compliance_state + * Output only. The compliance state of the finding. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails $observation + * Output only. The observation details for the finding. + * @type \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails $evidence + * Output only. The evidence details for the finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the finding. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The name of the finding. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The compliance state of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getComplianceState() + { + return $this->compliance_state; + } + + /** + * Output only. The compliance state of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setComplianceState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); + $this->compliance_state = $var; + + return $this; + } + + /** + * Output only. The observation details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails|null + */ + public function getObservation() + { + return $this->observation; + } + + public function hasObservation() + { + return isset($this->observation); + } + + public function clearObservation() + { + unset($this->observation); + } + + /** + * Output only. The observation details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails $var + * @return $this + */ + public function setObservation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails::class); + $this->observation = $var; + + return $this; + } + + /** + * Output only. The evidence details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails|null + */ + public function getEvidence() + { + return $this->evidence; + } + + public function hasEvidence() + { + return isset($this->evidence); + } + + public function clearEvidence() + { + unset($this->evidence); + } + + /** + * Output only. The evidence details for the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails $var + * @return $this + */ + public function setEvidence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails::class); + $this->evidence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php new file mode 100644 index 000000000000..c36d222810fa --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php @@ -0,0 +1,281 @@ +google.cloud.cloudsecuritycompliance.v1.FindingSummary + */ +class FindingSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 1; + */ + protected $finding_category = ''; + /** + * The class of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + */ + protected $finding_class = 0; + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + */ + protected $severity = 0; + /** + * The count of the finding. + * + * Generated from protobuf field int64 finding_count = 4; + */ + protected $finding_count = 0; + /** + * Output only. The last updated time of the finding. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The list of compliance frameworks that the finding belongs to. + * + * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $related_frameworks; + /** + * Identifier. The name of the finding summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $finding_category + * The category of the finding. + * @type int $finding_class + * The class of the finding. + * @type int $severity + * The severity of the finding. + * @type int|string $finding_count + * The count of the finding. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last updated time of the finding. + * @type string[] $related_frameworks + * Optional. The list of compliance frameworks that the finding belongs to. + * @type string $name + * Identifier. The name of the finding summary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 1; + * @return string + */ + public function getFindingCategory() + { + return $this->finding_category; + } + + /** + * The category of the finding. + * + * Generated from protobuf field string finding_category = 1; + * @param string $var + * @return $this + */ + public function setFindingCategory($var) + { + GPBUtil::checkString($var, True); + $this->finding_category = $var; + + return $this; + } + + /** + * The class of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * @return int + */ + public function getFindingClass() + { + return $this->finding_class; + } + + /** + * The class of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * @param int $var + * @return $this + */ + public function setFindingClass($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FindingClass::class); + $this->finding_class = $var; + + return $this; + } + + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * The severity of the finding. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * The count of the finding. + * + * Generated from protobuf field int64 finding_count = 4; + * @return int|string + */ + public function getFindingCount() + { + return $this->finding_count; + } + + /** + * The count of the finding. + * + * Generated from protobuf field int64 finding_count = 4; + * @param int|string $var + * @return $this + */ + public function setFindingCount($var) + { + GPBUtil::checkInt64($var); + $this->finding_count = $var; + + return $this; + } + + /** + * Output only. The last updated time of the finding. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.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 updated time of the finding. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.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; + } + + /** + * Optional. The list of compliance frameworks that the finding belongs to. + * + * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getRelatedFrameworks() + { + return $this->related_frameworks; + } + + /** + * Optional. The list of compliance frameworks that the finding belongs to. + * + * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setRelatedFrameworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_frameworks = $arr; + + return $this; + } + + /** + * Identifier. The name of the finding summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the finding summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php new file mode 100644 index 000000000000..876154b9dfe8 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php @@ -0,0 +1,106 @@ +google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig + */ +class FolderCreationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the folder, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The display name of the folder. + * + * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the folder, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * @type string $folder_display_name + * Required. The display name of the folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the folder, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the folder, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The display name of the folder. + * + * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFolderDisplayName() + { + return $this->folder_display_name; + } + + /** + * Required. The display name of the folder. + * + * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFolderDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->folder_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php new file mode 100644 index 000000000000..cc2ddf5541a7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php @@ -0,0 +1,411 @@ +google.cloud.cloudsecuritycompliance.v1.Framework + */ +class Framework extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The major version of the framework, which is incremented in + * ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $major_revision_id = 0; + /** + * Optional. The friendly name of the framework. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The description of the framework. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Optional. The cloud control details that are directly added without any + * grouping in the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cloud_control_details; + /** + * Optional. The category of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $category; + /** + * Output only. The cloud providers that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $supported_cloud_providers; + /** + * Output only. The target resource types that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $supported_target_resource_types; + /** + * Output only. The supported enforcement modes of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $supported_enforcement_modes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * @type int|string $major_revision_id + * Output only. The major version of the framework, which is incremented in + * ascending order. + * @type string $display_name + * Optional. The friendly name of the framework. The maximum length is 200 + * characters. + * @type string $description + * Optional. The description of the framework. The maximum length is 2000 + * characters. + * @type int $type + * Output only. The type of framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails[] $cloud_control_details + * Optional. The cloud control details that are directly added without any + * grouping in the framework. + * @type int[] $category + * Optional. The category of the framework. + * @type int[] $supported_cloud_providers + * Output only. The cloud providers that are supported by the framework. + * @type int[] $supported_target_resource_types + * Output only. The target resource types that are supported by the framework. + * @type int[] $supported_enforcement_modes + * Output only. The supported enforcement modes of the framework. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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. The major version of the framework, which is incremented in + * ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Output only. The major version of the framework, which is incremented in + * ascending order. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * Optional. The friendly name of the framework. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The friendly name of the framework. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the framework. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The description of the framework. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The cloud control details that are directly added without any + * grouping in the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails> + */ + public function getCloudControlDetails() + { + return $this->cloud_control_details; + } + + /** + * Optional. The cloud control details that are directly added without any + * grouping in the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails[] $var + * @return $this + */ + public function setCloudControlDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails::class); + $this->cloud_control_details = $arr; + + return $this; + } + + /** + * Optional. The category of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getCategory() + { + return $this->category; + } + + /** + * Optional. The category of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setCategory($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); + $this->category = $arr; + + return $this; + } + + /** + * Output only. The cloud providers that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSupportedCloudProviders() + { + return $this->supported_cloud_providers; + } + + /** + * Output only. The cloud providers that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setSupportedCloudProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); + $this->supported_cloud_providers = $arr; + + return $this; + } + + /** + * Output only. The target resource types that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSupportedTargetResourceTypes() + { + return $this->supported_target_resource_types; + } + + /** + * Output only. The target resource types that are supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setSupportedTargetResourceTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceType::class); + $this->supported_target_resource_types = $arr; + + return $this; + } + + /** + * Output only. The supported enforcement modes of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSupportedEnforcementModes() + { + return $this->supported_enforcement_modes; + } + + /** + * Output only. The supported enforcement modes of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setSupportedEnforcementModes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); + $this->supported_enforcement_modes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php new file mode 100644 index 000000000000..6bf45cc17e1e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php @@ -0,0 +1,61 @@ +google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType + */ +class FrameworkType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FRAMEWORK_TYPE_UNSPECIFIED = 0; + */ + const FRAMEWORK_TYPE_UNSPECIFIED = 0; + /** + * A framework that's provided and managed by Google. + * + * Generated from protobuf enum BUILT_IN = 1; + */ + const BUILT_IN = 1; + /** + * A framework that's created and managed by you. + * + * Generated from protobuf enum CUSTOM = 2; + */ + const CUSTOM = 2; + + private static $valueToName = [ + self::FRAMEWORK_TYPE_UNSPECIFIED => 'FRAMEWORK_TYPE_UNSPECIFIED', + self::BUILT_IN => 'BUILT_IN', + self::CUSTOM => 'CUSTOM', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php new file mode 100644 index 000000000000..e19afd67f9f6 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php @@ -0,0 +1,515 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkAudit + */ +class FrameworkAudit extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The name of the framework audit. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The ID of the framework audit. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $framework_audit_id = ''; + /** + * Output only. The compliance framework used for the audit. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliance_framework = ''; + /** + * Output only. The scope of the audit. + * + * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scope = ''; + /** + * Required. The destination for the audit reports. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework_audit_destination = null; + /** + * Output only. The time that the audit started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The time that the audit finished. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $finish_time = null; + /** + * Output only. The overall compliance state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliance_state = 0; + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $report_summary = null; + /** + * Optional. The details for the cloud control groups within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cloud_control_group_audit_details; + /** + * Optional. The details for the cloud controls within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $cloud_control_audit_details; + /** + * Output only. The ID of the long-running operation. + * + * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $operation_id = ''; + /** + * Output only. The framework audit state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The name of the framework audit. + * @type string $framework_audit_id + * Output only. The ID of the framework audit. + * @type string $compliance_framework + * Output only. The compliance framework used for the audit. + * @type string $scope + * Output only. The scope of the audit. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination $framework_audit_destination + * Required. The destination for the audit reports. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The time that the audit started. + * @type \Google\Protobuf\Timestamp $finish_time + * Output only. The time that the audit finished. + * @type int $compliance_state + * Output only. The overall compliance state of the audit. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary + * Output only. The summary of the report. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails[] $cloud_control_group_audit_details + * Optional. The details for the cloud control groups within this audit. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $cloud_control_audit_details + * Optional. The details for the cloud controls within this audit. + * @type string $operation_id + * Output only. The ID of the long-running operation. + * @type int $state + * Output only. The framework audit state of the audit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The name of the framework audit. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The name of the framework audit. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The ID of the framework audit. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFrameworkAuditId() + { + return $this->framework_audit_id; + } + + /** + * Output only. The ID of the framework audit. + * + * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFrameworkAuditId($var) + { + GPBUtil::checkString($var, True); + $this->framework_audit_id = $var; + + return $this; + } + + /** + * Output only. The compliance framework used for the audit. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getComplianceFramework() + { + return $this->compliance_framework; + } + + /** + * Output only. The compliance framework used for the audit. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setComplianceFramework($var) + { + GPBUtil::checkString($var, True); + $this->compliance_framework = $var; + + return $this; + } + + /** + * Output only. The scope of the audit. + * + * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Output only. The scope of the audit. + * + * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkString($var, True); + $this->scope = $var; + + return $this; + } + + /** + * Required. The destination for the audit reports. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination|null + */ + public function getFrameworkAuditDestination() + { + return $this->framework_audit_destination; + } + + public function hasFrameworkAuditDestination() + { + return isset($this->framework_audit_destination); + } + + public function clearFrameworkAuditDestination() + { + unset($this->framework_audit_destination); + } + + /** + * Required. The destination for the audit reports. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination $var + * @return $this + */ + public function setFrameworkAuditDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination::class); + $this->framework_audit_destination = $var; + + return $this; + } + + /** + * Output only. The time that the audit started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The time that the audit started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. The time that the audit finished. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * Output only. The time that the audit finished. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + + /** + * Output only. The overall compliance state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getComplianceState() + { + return $this->compliance_state; + } + + /** + * Output only. The overall compliance state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setComplianceState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); + $this->compliance_state = $var; + + return $this; + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null + */ + public function getReportSummary() + { + return $this->report_summary; + } + + public function hasReportSummary() + { + return isset($this->report_summary); + } + + public function clearReportSummary() + { + unset($this->report_summary); + } + + /** + * Output only. The summary of the report. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var + * @return $this + */ + public function setReportSummary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); + $this->report_summary = $var; + + return $this; + } + + /** + * Optional. The details for the cloud control groups within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails> + */ + public function getCloudControlGroupAuditDetails() + { + return $this->cloud_control_group_audit_details; + } + + /** + * Optional. The details for the cloud control groups within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails[] $var + * @return $this + */ + public function setCloudControlGroupAuditDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails::class); + $this->cloud_control_group_audit_details = $arr; + + return $this; + } + + /** + * Optional. The details for the cloud controls within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails> + */ + public function getCloudControlAuditDetails() + { + return $this->cloud_control_audit_details; + } + + /** + * Optional. The details for the cloud controls within this audit. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $var + * @return $this + */ + public function setCloudControlAuditDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails::class); + $this->cloud_control_audit_details = $arr; + + return $this; + } + + /** + * Output only. The ID of the long-running operation. + * + * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOperationId() + { + return $this->operation_id; + } + + /** + * Output only. The ID of the long-running operation. + * + * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOperationId($var) + { + GPBUtil::checkString($var, True); + $this->operation_id = $var; + + return $this; + } + + /** + * Output only. The framework audit state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The framework audit state of the audit. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php new file mode 100644 index 000000000000..0d2254a4754f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php @@ -0,0 +1,82 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The audit is scheduled. + * + * Generated from protobuf enum SCHEDULED = 1; + */ + const SCHEDULED = 1; + /** + * The audit is running. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The audit results are being uploaded. + * + * Generated from protobuf enum UPLOADING = 3; + */ + const UPLOADING = 3; + /** + * The audit failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + /** + * The audit completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 5; + */ + const SUCCEEDED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SCHEDULED => 'SCHEDULED', + self::RUNNING => 'RUNNING', + self::UPLOADING => 'UPLOADING', + self::FAILED => 'FAILED', + self::SUCCEEDED => 'SUCCEEDED', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php new file mode 100644 index 000000000000..d1d1c661aa6c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php @@ -0,0 +1,75 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + */ +class FrameworkAuditDestination extends \Google\Protobuf\Internal\Message +{ + protected $destination_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination $bucket + * The Cloud Storage bucket destination. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage bucket destination. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination|null + */ + public function getBucket() + { + return $this->readOneof(1); + } + + public function hasBucket() + { + return $this->hasOneof(1); + } + + /** + * The Cloud Storage bucket destination. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDestinationType() + { + return $this->whichOneof("destination_type"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php new file mode 100644 index 000000000000..e7e0d1ce480c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php @@ -0,0 +1,82 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkCategory + */ +class FrameworkCategory +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FRAMEWORK_CATEGORY_UNSPECIFIED = 0; + */ + const FRAMEWORK_CATEGORY_UNSPECIFIED = 0; + /** + * An industry-defined framework. + * + * Generated from protobuf enum INDUSTRY_DEFINED_STANDARD = 1; + */ + const INDUSTRY_DEFINED_STANDARD = 1; + /** + * An Assured Workloads framework. + * + * Generated from protobuf enum ASSURED_WORKLOADS = 2; + */ + const ASSURED_WORKLOADS = 2; + /** + * A data security posture framework. + * + * Generated from protobuf enum DATA_SECURITY = 3; + */ + const DATA_SECURITY = 3; + /** + * A Google's best practices framework. + * + * Generated from protobuf enum GOOGLE_BEST_PRACTICES = 4; + */ + const GOOGLE_BEST_PRACTICES = 4; + /** + * A user-created framework. + * + * Generated from protobuf enum CUSTOM_FRAMEWORK = 5; + */ + const CUSTOM_FRAMEWORK = 5; + + private static $valueToName = [ + self::FRAMEWORK_CATEGORY_UNSPECIFIED => 'FRAMEWORK_CATEGORY_UNSPECIFIED', + self::INDUSTRY_DEFINED_STANDARD => 'INDUSTRY_DEFINED_STANDARD', + self::ASSURED_WORKLOADS => 'ASSURED_WORKLOADS', + self::DATA_SECURITY => 'DATA_SECURITY', + self::GOOGLE_BEST_PRACTICES => 'GOOGLE_BEST_PRACTICES', + self::CUSTOM_FRAMEWORK => 'CUSTOM_FRAMEWORK', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php new file mode 100644 index 000000000000..44daf856b1f6 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php @@ -0,0 +1,461 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + */ +class FrameworkComplianceReport extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + */ + protected $framework = ''; + /** + * The description of the framework. + * + * Generated from protobuf field string framework_description = 2; + */ + protected $framework_description = ''; + /** + * Output only. The last updated time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + */ + protected $control_assessment_details = null; + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + */ + protected $framework_type = 0; + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + */ + private $supported_cloud_providers; + /** + * The list of framework categories supported. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + */ + private $framework_categories; + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_display_name = ''; + /** + * Identifier. The name of the framework compliance report. + * + * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The latest major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 10; + */ + protected $major_revision_id = 0; + /** + * The latest minor revision ID of the latest major revision of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 11; + */ + protected $minor_revision_id = 0; + /** + * The target resource details of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + */ + private $target_resource_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework + * The name of the framework. + * @type string $framework_description + * The description of the framework. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last updated time of the report. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details + * The control assessment details of the framework. + * @type int $framework_type + * The type of framework. + * @type int[] $supported_cloud_providers + * The list of cloud providers supported by the framework. + * @type int[] $framework_categories + * The list of framework categories supported. + * @type string $framework_display_name + * Optional. The display name for the framework. + * @type string $name + * Identifier. The name of the framework compliance report. + * @type int|string $major_revision_id + * The latest major revision ID of the framework. + * @type int|string $minor_revision_id + * The latest minor revision ID of the latest major revision of the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $target_resource_details + * The target resource details of the framework. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @return string + */ + public function getFramework() + { + return $this->framework; + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @param string $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkString($var, True); + $this->framework = $var; + + return $this; + } + + /** + * The description of the framework. + * + * Generated from protobuf field string framework_description = 2; + * @return string + */ + public function getFrameworkDescription() + { + return $this->framework_description; + } + + /** + * The description of the framework. + * + * Generated from protobuf field string framework_description = 2; + * @param string $var + * @return $this + */ + public function setFrameworkDescription($var) + { + GPBUtil::checkString($var, True); + $this->framework_description = $var; + + return $this; + } + + /** + * Output only. The last updated time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.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 updated time of the report. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.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; + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null + */ + public function getControlAssessmentDetails() + { + return $this->control_assessment_details; + } + + public function hasControlAssessmentDetails() + { + return isset($this->control_assessment_details); + } + + public function clearControlAssessmentDetails() + { + unset($this->control_assessment_details); + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var + * @return $this + */ + public function setControlAssessmentDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); + $this->control_assessment_details = $var; + + return $this; + } + + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * @return int + */ + public function getFrameworkType() + { + return $this->framework_type; + } + + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * @param int $var + * @return $this + */ + public function setFrameworkType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); + $this->framework_type = $var; + + return $this; + } + + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * @return RepeatedField + */ + public function getSupportedCloudProviders() + { + return $this->supported_cloud_providers; + } + + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * @param int[] $var + * @return $this + */ + public function setSupportedCloudProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); + $this->supported_cloud_providers = $arr; + + return $this; + } + + /** + * The list of framework categories supported. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * @return RepeatedField + */ + public function getFrameworkCategories() + { + return $this->framework_categories; + } + + /** + * The list of framework categories supported. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * @param int[] $var + * @return $this + */ + public function setFrameworkCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); + $this->framework_categories = $arr; + + return $this; + } + + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFrameworkDisplayName() + { + return $this->framework_display_name; + } + + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFrameworkDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->framework_display_name = $var; + + return $this; + } + + /** + * Identifier. The name of the framework compliance report. + * + * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the framework compliance report. + * + * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The latest major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 10; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * The latest major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 10; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 11; + * @return int|string + */ + public function getMinorRevisionId() + { + return $this->minor_revision_id; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 11; + * @param int|string $var + * @return $this + */ + public function setMinorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->minor_revision_id = $var; + + return $this; + } + + /** + * The target resource details of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails> + */ + public function getTargetResourceDetails() + { + return $this->target_resource_details; + } + + /** + * The target resource details of the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $var + * @return $this + */ + public function setTargetResourceDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails::class); + $this->target_resource_details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php new file mode 100644 index 000000000000..da5b4ac51a34 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php @@ -0,0 +1,461 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + */ +class FrameworkComplianceSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + */ + protected $framework = ''; + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + */ + protected $control_assessment_details = null; + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + */ + protected $framework_type = 0; + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + */ + private $supported_cloud_providers; + /** + * The list of framework categories supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + */ + private $framework_categories; + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_display_name = ''; + /** + * Identifier. The name of the framework compliance summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 8; + */ + protected $major_revision_id = 0; + /** + * The minor revision ID of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 9; + */ + protected $minor_revision_id = 0; + /** + * The target resource details for the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + */ + private $target_resource_details; + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $finding_count = 0; + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $controls_passing_trend = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework + * The name of the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details + * The control assessment details of the framework. + * @type int $framework_type + * The type of framework. + * @type int[] $supported_cloud_providers + * The list of cloud providers supported by the framework. + * @type int[] $framework_categories + * The list of framework categories supported by the framework. + * @type string $framework_display_name + * Optional. The display name for the framework. + * @type string $name + * Identifier. The name of the framework compliance summary. + * @type int|string $major_revision_id + * The major revision ID of the framework. + * @type int|string $minor_revision_id + * The minor revision ID of the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $target_resource_details + * The target resource details for the framework. + * @type int|string $finding_count + * Output only. The count of the findings generated against the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Trend $controls_passing_trend + * Output only. The trend of controls that are passing for the given duration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @return string + */ + public function getFramework() + { + return $this->framework; + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @param string $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkString($var, True); + $this->framework = $var; + + return $this; + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null + */ + public function getControlAssessmentDetails() + { + return $this->control_assessment_details; + } + + public function hasControlAssessmentDetails() + { + return isset($this->control_assessment_details); + } + + public function clearControlAssessmentDetails() + { + unset($this->control_assessment_details); + } + + /** + * The control assessment details of the framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var + * @return $this + */ + public function setControlAssessmentDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); + $this->control_assessment_details = $var; + + return $this; + } + + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * @return int + */ + public function getFrameworkType() + { + return $this->framework_type; + } + + /** + * The type of framework. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * @param int $var + * @return $this + */ + public function setFrameworkType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); + $this->framework_type = $var; + + return $this; + } + + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * @return RepeatedField + */ + public function getSupportedCloudProviders() + { + return $this->supported_cloud_providers; + } + + /** + * The list of cloud providers supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * @param int[] $var + * @return $this + */ + public function setSupportedCloudProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); + $this->supported_cloud_providers = $arr; + + return $this; + } + + /** + * The list of framework categories supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * @return RepeatedField + */ + public function getFrameworkCategories() + { + return $this->framework_categories; + } + + /** + * The list of framework categories supported by the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * @param int[] $var + * @return $this + */ + public function setFrameworkCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); + $this->framework_categories = $arr; + + return $this; + } + + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFrameworkDisplayName() + { + return $this->framework_display_name; + } + + /** + * Optional. The display name for the framework. + * + * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFrameworkDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->framework_display_name = $var; + + return $this; + } + + /** + * Identifier. The name of the framework compliance summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the framework compliance summary. + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 8; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * The major revision ID of the framework. + * + * Generated from protobuf field int64 major_revision_id = 8; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * The minor revision ID of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 9; + * @return int|string + */ + public function getMinorRevisionId() + { + return $this->minor_revision_id; + } + + /** + * The minor revision ID of the framework. + * + * Generated from protobuf field int64 minor_revision_id = 9; + * @param int|string $var + * @return $this + */ + public function setMinorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->minor_revision_id = $var; + + return $this; + } + + /** + * The target resource details for the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails> + */ + public function getTargetResourceDetails() + { + return $this->target_resource_details; + } + + /** + * The target resource details for the framework. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $var + * @return $this + */ + public function setTargetResourceDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails::class); + $this->target_resource_details = $arr; + + return $this; + } + + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getFindingCount() + { + return $this->finding_count; + } + + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setFindingCount($var) + { + GPBUtil::checkInt64($var); + $this->finding_count = $var; + + return $this; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Trend|null + */ + public function getControlsPassingTrend() + { + return $this->controls_passing_trend; + } + + public function hasControlsPassingTrend() + { + return isset($this->controls_passing_trend); + } + + public function clearControlsPassingTrend() + { + unset($this->controls_passing_trend); + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Trend $var + * @return $this + */ + public function setControlsPassingTrend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Trend::class); + $this->controls_passing_trend = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php new file mode 100644 index 000000000000..ebdb55e195ad --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php @@ -0,0 +1,66 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView + */ +class FrameworkComplianceSummaryView +{ + /** + * The default / unset value. The API will default to the BASIC view. + * + * Generated from protobuf enum FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0; + */ + const FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0; + /** + * Includes basic compliance metadata, but omits trend data. + * + * Generated from protobuf enum FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1; + */ + const FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1; + /** + * Includes all information, including + * [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count] + * and + * [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend]. + * Trend data is provided for the last 30 days. + * + * Generated from protobuf enum FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2; + */ + const FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2; + + private static $valueToName = [ + self::FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED => 'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED', + self::FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC => 'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC', + self::FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL => 'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php new file mode 100644 index 000000000000..8adaa72b847b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php @@ -0,0 +1,603 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment + */ +class FrameworkDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The details of the target resource that you want to deploy the + * framework to. You can specify an existing resource, or create a new one. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target_resource_config = null; + /** + * Output only. The target resource to deploy the framework to, in one the + * following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $computed_target_resource = ''; + /** + * Required. A reference to the framework that you're deploying. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework = null; + /** + * Optional. A user-provided description of the framework deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The deployment mode and parameters for each of the cloud controls + * in the framework. Every cloud control in the framework includes metadata. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private $cloud_control_metadata; + /** + * Output only. The state for the framework deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deployment_state = 0; + /** + * Output only. The time at which 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 time at which the resource last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. To prevent concurrent updates from overwriting each other, always + * provide the `etag` when you update a framework deployment. You can also + * provide the `etag` when you delete a framework deployment, to help + * ensure that you're deleting the intended version of the + * framework deployment. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource_display_name = ''; + /** + * Output only. The references to the cloud control deployments. The reference + * includes all the cloud control deployments that are in the framework or in + * a cloud control group. + * For example, if a framework deployment deploys two + * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the + * references are: + * ``` + * { + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" + * }, + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" + * } + * ``` + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $cloud_control_deployment_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config + * Required. The details of the target resource that you want to deploy the + * framework to. You can specify an existing resource, or create a new one. + * @type string $computed_target_resource + * Output only. The target resource to deploy the framework to, in one the + * following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $framework + * Required. A reference to the framework that you're deploying. + * @type string $description + * Optional. A user-provided description of the framework deployment. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata[] $cloud_control_metadata + * Required. The deployment mode and parameters for each of the cloud controls + * in the framework. Every cloud control in the framework includes metadata. + * @type int $deployment_state + * Output only. The state for the framework deployment. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the resource was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the resource last updated. + * @type string $etag + * Optional. To prevent concurrent updates from overwriting each other, always + * provide the `etag` when you update a framework deployment. You can also + * provide the `etag` when you delete a framework deployment, to help + * ensure that you're deleting the intended version of the + * framework deployment. + * @type string $target_resource_display_name + * Output only. The display name of the target resource. + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference[] $cloud_control_deployment_references + * Output only. The references to the cloud control deployments. The reference + * includes all the cloud control deployments that are in the framework or in + * a cloud control group. + * For example, if a framework deployment deploys two + * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the + * references are: + * ``` + * { + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" + * }, + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" + * } + * ``` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * 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. The details of the target resource that you want to deploy the + * framework to. You can specify an existing resource, or create a new one. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig|null + */ + public function getTargetResourceConfig() + { + return $this->target_resource_config; + } + + public function hasTargetResourceConfig() + { + return isset($this->target_resource_config); + } + + public function clearTargetResourceConfig() + { + unset($this->target_resource_config); + } + + /** + * Required. The details of the target resource that you want to deploy the + * framework to. You can specify an existing resource, or create a new one. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $var + * @return $this + */ + public function setTargetResourceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig::class); + $this->target_resource_config = $var; + + return $this; + } + + /** + * Output only. The target resource to deploy the framework to, in one the + * following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getComputedTargetResource() + { + return $this->computed_target_resource; + } + + /** + * Output only. The target resource to deploy the framework to, in one the + * following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setComputedTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->computed_target_resource = $var; + + return $this; + } + + /** + * Required. A reference to the framework that you're deploying. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference|null + */ + public function getFramework() + { + return $this->framework; + } + + public function hasFramework() + { + return isset($this->framework); + } + + public function clearFramework() + { + unset($this->framework); + } + + /** + * Required. A reference to the framework that you're deploying. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference::class); + $this->framework = $var; + + return $this; + } + + /** + * Optional. A user-provided description of the framework deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A user-provided description of the framework deployment. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The deployment mode and parameters for each of the cloud controls + * in the framework. Every cloud control in the framework includes metadata. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata> + */ + public function getCloudControlMetadata() + { + return $this->cloud_control_metadata; + } + + /** + * Required. The deployment mode and parameters for each of the cloud controls + * in the framework. Every cloud control in the framework includes metadata. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata[] $var + * @return $this + */ + public function setCloudControlMetadata($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata::class); + $this->cloud_control_metadata = $arr; + + return $this; + } + + /** + * Output only. The state for the framework deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDeploymentState() + { + return $this->deployment_state; + } + + /** + * Output only. The state for the framework deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDeploymentState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\DeploymentState::class); + $this->deployment_state = $var; + + return $this; + } + + /** + * Output only. The time at which 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. The time at which 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 time at which the resource last 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 time at which the resource last 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; + } + + /** + * Optional. To prevent concurrent updates from overwriting each other, always + * provide the `etag` when you update a framework deployment. You can also + * provide the `etag` when you delete a framework deployment, to help + * ensure that you're deleting the intended version of the + * framework deployment. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. To prevent concurrent updates from overwriting each other, always + * provide the `etag` when you update a framework deployment. You can also + * provide the `etag` when you delete a framework deployment, to help + * ensure that you're deleting the intended version of the + * framework deployment. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetResourceDisplayName() + { + return $this->target_resource_display_name; + } + + /** + * Output only. The display name of the target resource. + * + * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetResourceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->target_resource_display_name = $var; + + return $this; + } + + /** + * Output only. The references to the cloud control deployments. The reference + * includes all the cloud control deployments that are in the framework or in + * a cloud control group. + * For example, if a framework deployment deploys two + * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the + * references are: + * ``` + * { + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" + * }, + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" + * } + * ``` + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference> + */ + public function getCloudControlDeploymentReferences() + { + return $this->cloud_control_deployment_references; + } + + /** + * Output only. The references to the cloud control deployments. The reference + * includes all the cloud control deployments that are in the framework or in + * a cloud control group. + * For example, if a framework deployment deploys two + * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the + * references are: + * ``` + * { + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" + * }, + * cloud_control_deployment_reference: { + * cloud_control_deployment: + * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" + * } + * ``` + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference[] $var + * @return $this + */ + public function setCloudControlDeploymentReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference::class); + $this->cloud_control_deployment_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php new file mode 100644 index 000000000000..a4454a56ccdd --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php @@ -0,0 +1,201 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference + */ +class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $framework_deployment = ''; + /** + * Optional. The reference to the framework that this deployment is for. + * For example: + * ``` + * { + * framework: + * "organizations/{organization}/locations/{location}/frameworks/{framework}", + * major_revision_id: 1 + * } + * ``` + * The only supported location is `global`. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_reference = null; + /** + * Optional. The display name of the framework that this framework deployment + * is for. + * + * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $framework_display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework_deployment + * Output only. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $framework_reference + * Optional. The reference to the framework that this deployment is for. + * For example: + * ``` + * { + * framework: + * "organizations/{organization}/locations/{location}/frameworks/{framework}", + * major_revision_id: 1 + * } + * ``` + * The only supported location is `global`. + * @type string $framework_display_name + * Optional. The display name of the framework that this framework deployment + * is for. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getFrameworkDeployment() + { + return $this->framework_deployment; + } + + /** + * Output only. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFrameworkDeployment($var) + { + GPBUtil::checkString($var, True); + $this->framework_deployment = $var; + + return $this; + } + + /** + * Optional. The reference to the framework that this deployment is for. + * For example: + * ``` + * { + * framework: + * "organizations/{organization}/locations/{location}/frameworks/{framework}", + * major_revision_id: 1 + * } + * ``` + * The only supported location is `global`. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference|null + */ + public function getFrameworkReference() + { + return $this->framework_reference; + } + + public function hasFrameworkReference() + { + return isset($this->framework_reference); + } + + public function clearFrameworkReference() + { + unset($this->framework_reference); + } + + /** + * Optional. The reference to the framework that this deployment is for. + * For example: + * ``` + * { + * framework: + * "organizations/{organization}/locations/{location}/frameworks/{framework}", + * major_revision_id: 1 + * } + * ``` + * The only supported location is `global`. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $var + * @return $this + */ + public function setFrameworkReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference::class); + $this->framework_reference = $var; + + return $this; + } + + /** + * Optional. The display name of the framework that this framework deployment + * is for. + * + * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFrameworkDisplayName() + { + return $this->framework_display_name; + } + + /** + * Optional. The display name of the framework that this framework deployment + * is for. + * + * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFrameworkDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->framework_display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php new file mode 100644 index 000000000000..8d9972d3e917 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php @@ -0,0 +1,122 @@ +google.cloud.cloudsecuritycompliance.v1.FrameworkReference + */ +class FrameworkReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $framework = ''; + /** + * Optional. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $major_revision_id = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework + * Required. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * @type int|string $major_revision_id + * Optional. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getFramework() + { + return $this->framework; + } + + /** + * Required. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkString($var, True); + $this->framework = $var; + + return $this; + } + + /** + * Optional. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMajorRevisionId() + { + return isset($this->major_revision_id) ? $this->major_revision_id : 0; + } + + public function hasMajorRevisionId() + { + return isset($this->major_revision_id); + } + + public function clearMajorRevisionId() + { + unset($this->major_revision_id); + } + + /** + * Optional. The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. + * + * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php new file mode 100644 index 000000000000..4b1181f99eda --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php @@ -0,0 +1,175 @@ +google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + */ +class GenerateFrameworkAuditScopeReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The organization, folder or project for the audit report. + * Supported formats are the following: + * * `projects/{project_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `organizations/{organization_id}/locations/{location}` + * + * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scope = ''; + /** + * Required. The format that the scope report bytes is returned in. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $report_format = 0; + /** + * Required. The compliance framework that the scope report is generated for. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $compliance_framework = ''; + + /** + * @param string $scope Required. The organization, folder or project for the audit report. + * + * Supported formats are the following: + * + * * `projects/{project_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `organizations/{organization_id}/locations/{location}` + * @param int $reportFormat Required. The format that the scope report bytes is returned in. + * For allowed values, use constants defined on {@see \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest\Format} + * @param string $complianceFramework Required. The compliance framework that the scope report is generated for. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest + * + * @experimental + */ + public static function build(string $scope, int $reportFormat, string $complianceFramework): self + { + return (new self()) + ->setScope($scope) + ->setReportFormat($reportFormat) + ->setComplianceFramework($complianceFramework); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $scope + * Required. The organization, folder or project for the audit report. + * Supported formats are the following: + * * `projects/{project_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `organizations/{organization_id}/locations/{location}` + * @type int $report_format + * Required. The format that the scope report bytes is returned in. + * @type string $compliance_framework + * Required. The compliance framework that the scope report is generated for. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The organization, folder or project for the audit report. + * Supported formats are the following: + * * `projects/{project_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `organizations/{organization_id}/locations/{location}` + * + * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. The organization, folder or project for the audit report. + * Supported formats are the following: + * * `projects/{project_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `organizations/{organization_id}/locations/{location}` + * + * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkString($var, True); + $this->scope = $var; + + return $this; + } + + /** + * Required. The format that the scope report bytes is returned in. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getReportFormat() + { + return $this->report_format; + } + + /** + * Required. The format that the scope report bytes is returned in. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setReportFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest\Format::class); + $this->report_format = $var; + + return $this; + } + + /** + * Required. The compliance framework that the scope report is generated for. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getComplianceFramework() + { + return $this->compliance_framework; + } + + /** + * Required. The compliance framework that the scope report is generated for. + * + * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setComplianceFramework($var) + { + GPBUtil::checkString($var, True); + $this->compliance_framework = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php new file mode 100644 index 000000000000..ee72568285ac --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php @@ -0,0 +1,54 @@ +google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + */ +class Format +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; + */ + const FORMAT_UNSPECIFIED = 0; + /** + * The report format is the Open Document Format (ODF). + * + * Generated from protobuf enum ODF = 1; + */ + const ODF = 1; + + private static $valueToName = [ + self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', + self::ODF => 'ODF', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php new file mode 100644 index 000000000000..f52110eef6a8 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php @@ -0,0 +1,151 @@ +google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + */ +class GenerateFrameworkAuditScopeReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the audit report, in the format that was + * given in the request. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The compliance framework that the audit scope report is generated + * for. + * + * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $compliance_framework = ''; + protected $audit_report; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $scope_report_contents + * The audit scope report content in byte format. + * @type string $name + * Identifier. The name of the audit report, in the format that was + * given in the request. + * @type string $compliance_framework + * Required. The compliance framework that the audit scope report is generated + * for. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * The audit scope report content in byte format. + * + * Generated from protobuf field bytes scope_report_contents = 3; + * @return string + */ + public function getScopeReportContents() + { + return $this->readOneof(3); + } + + public function hasScopeReportContents() + { + return $this->hasOneof(3); + } + + /** + * The audit scope report content in byte format. + * + * Generated from protobuf field bytes scope_report_contents = 3; + * @param string $var + * @return $this + */ + public function setScopeReportContents($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Identifier. The name of the audit report, in the format that was + * given in the request. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the audit report, in the format that was + * given in the 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; + } + + /** + * Required. The compliance framework that the audit scope report is generated + * for. + * + * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getComplianceFramework() + { + return $this->compliance_framework; + } + + /** + * Required. The compliance framework that the audit scope report is generated + * for. + * + * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setComplianceFramework($var) + { + GPBUtil::checkString($var, True); + $this->compliance_framework = $var; + + return $this; + } + + /** + * @return string + */ + public function getAuditReport() + { + return $this->whichOneof("audit_report"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php new file mode 100644 index 000000000000..9951bc54e580 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest + */ +class GetCloudControlDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. Please see + * {@see DeploymentClient::cloudControlDeploymentName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GetCloudControlDeploymentRequest + * + * @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. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * 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. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. + * The only supported location is `global`. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php new file mode 100644 index 000000000000..ae33174e107a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php @@ -0,0 +1,145 @@ +google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest + */ +class GetCloudControlRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The major version of the cloud control to retrieve. If not + * specified, the most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $major_revision_id = 0; + + /** + * @param string $name Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::cloudControlName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GetCloudControlRequest + * + * @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. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * @type int|string $major_revision_id + * Optional. The major version of the cloud control to retrieve. If not + * specified, the most recently updated `revision_id` is retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * 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. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * The only supported location is `global`. + * + * 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; + } + + /** + * Optional. The major version of the cloud control to retrieve. If not + * specified, the most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Optional. The major version of the cloud control to retrieve. If not + * specified, the most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php new file mode 100644 index 000000000000..12fb678f6514 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php @@ -0,0 +1,103 @@ +google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + */ +class GetFrameworkAuditRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the framework audit to retrieve. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the framework audit to retrieve. + * + * Supported formats are the following: + * + * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * Please see {@see AuditClient::frameworkAuditName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkAuditRequest + * + * @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. The name of the framework audit to retrieve. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the framework audit to retrieve. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * + * 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. The name of the framework audit to retrieve. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php new file mode 100644 index 000000000000..3c26eec56b32 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest + */ +class GetFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. Please see + * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkDeploymentRequest + * + * @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. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * 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. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. + * The only supported location is `global`. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php new file mode 100644 index 000000000000..b337434ad948 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php @@ -0,0 +1,145 @@ +google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest + */ +class GetFrameworkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The framework major version to retrieve. If not specified, the + * most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $major_revision_id = 0; + + /** + * @param string $name Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::frameworkName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkRequest + * + * @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. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * @type int|string $major_revision_id + * Optional. The framework major version to retrieve. If not specified, the + * most recently updated `revision_id` is retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * 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. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * The only supported location is `global`. + * + * 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; + } + + /** + * Optional. The framework major version to retrieve. If not specified, the + * most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Optional. The framework major version to retrieve. If not specified, the + * most recently updated `revision_id` is retrieved. + * + * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php new file mode 100644 index 000000000000..3ce30ef81643 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php @@ -0,0 +1,109 @@ +google.cloud.cloudsecuritycompliance.v1.IntRange + */ +class IntRange extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The minimum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min = 0; + /** + * Required. The maximum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $min + * Required. The minimum permitted value for the numeric parameter + * (inclusive). + * @type int|string $max + * Required. The maximum permitted value for the numeric parameter + * (inclusive). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The minimum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getMin() + { + return $this->min; + } + + /** + * Required. The minimum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt64($var); + $this->min = $var; + + return $this; + } + + /** + * Required. The maximum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getMax() + { + return $this->max; + } + + /** + * Required. The maximum permitted value for the numeric parameter + * (inclusive). + * + * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt64($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php new file mode 100644 index 000000000000..40a728f59419 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php @@ -0,0 +1,264 @@ +google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest + */ +class ListCloudControlDeploymentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource for the cloud control deployment, in the + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The requested page size. The server might return fewer items than + * you requested. + * If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filter to apply on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource for the cloud control deployment, in the + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. Please see + * {@see DeploymentClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlDeploymentsRequest + * + * @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. The parent resource for the cloud control deployment, in the + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type int $page_size + * Optional. The requested page size. The server might return fewer items than + * you requested. + * If unspecified, the server picks an appropriate default. + * @type string $page_token + * Optional. A token that identifies the page of results that the server + * should return. + * @type string $filter + * Optional. The filter to apply on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * @type string $order_by + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource for the cloud control deployment, in the + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource for the cloud control deployment, in the + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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 requested page size. The server might return fewer items than + * you requested. + * If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * you requested. + * If unspecified, the server picks an appropriate default. + * + * 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 token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * 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. The filter to apply on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter to apply on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * 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. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php new file mode 100644 index 000000000000..38df2537f87d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse + */ +class ListCloudControlDeploymentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of cloud control deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; + */ + private $cloud_control_deployments; + /** + * A token that identifies the next page of results that the server + * should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment[] $cloud_control_deployments + * The list of cloud control deployments. + * @type string $next_page_token + * A token that identifies the next page of results that the server + * should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * The list of cloud control deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment> + */ + public function getCloudControlDeployments() + { + return $this->cloud_control_deployments; + } + + /** + * The list of cloud control deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment[] $var + * @return $this + */ + public function setCloudControlDeployments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment::class); + $this->cloud_control_deployments = $arr; + + return $this; + } + + /** + * A token that identifies the next page of results that the server + * should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that identifies the next page of results that the server + * should return. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php new file mode 100644 index 000000000000..056b198e1148 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php @@ -0,0 +1,197 @@ +google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest + */ +class ListCloudControlsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of cloud controls to return. The default value + * is `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A pagination token that's returned from a previous request to + * list cloud controls. Provide this token to retrieve the next page of + * results. + * When paginating, the parent that you provide to the + * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] + * request must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlsRequest + * + * @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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type int $page_size + * Optional. The maximum number of cloud controls to return. The default value + * is `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * @type string $page_token + * Optional. A pagination token that's returned from a previous request to + * list cloud controls. Provide this token to retrieve the next page of + * results. + * When paginating, the parent that you provide to the + * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] + * request must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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 cloud controls to return. The default value + * is `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * 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 cloud controls to return. The default value + * is `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * 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 pagination token that's returned from a previous request to + * list cloud controls. Provide this token to retrieve the next page of + * results. + * When paginating, the parent that you provide to the + * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] + * request must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A pagination token that's returned from a previous request to + * list cloud controls. Provide this token to retrieve the next page of + * results. + * When paginating, the parent that you provide to the + * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] + * request must match the call that provided the page token. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php new file mode 100644 index 000000000000..06a16deb228f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php @@ -0,0 +1,105 @@ +google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse + */ +class ListCloudControlsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of CloudControl resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; + */ + private $cloud_controls; + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl[] $cloud_controls + * The list of CloudControl resources. + * @type string $next_page_token + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * The list of CloudControl resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControl> + */ + public function getCloudControls() + { + return $this->cloud_controls; + } + + /** + * The list of CloudControl resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl[] $var + * @return $this + */ + public function setCloudControls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); + $this->cloud_controls = $arr; + + return $this; + } + + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php new file mode 100644 index 000000000000..13c5c70834aa --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php @@ -0,0 +1,246 @@ +google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + */ +class ListControlComplianceSummariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent scope for the framework overview page. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The end time of the control compliance summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $end_time = null; + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent scope for the framework overview page. Please see + * {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListControlComplianceSummariesRequest + * + * @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. The parent scope for the framework overview page. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The end time of the control compliance summary. + * @type int $page_size + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * @type string $page_token + * Optional. A token that identifies the page of results that the server + * should return. + * @type string $filter + * Optional. The filtering results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent scope for the framework overview page. + * + * 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. The parent scope for the framework overview page. + * + * 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 end time of the control compliance summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + * @deprecated + */ + public function getEndTime() + { + if (isset($this->end_time)) { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + } + return $this->end_time; + } + + public function hasEndTime() + { + if (isset($this->end_time)) { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + } + return isset($this->end_time); + } + + public function clearEndTime() + { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + unset($this->end_time); + } + + /** + * Optional. The end time of the control compliance summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + * @deprecated + */ + public function setEndTime($var) + { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 3 [(.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 token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 4 [(.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. The filtering results. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php new file mode 100644 index 000000000000..3e312b78bb7c --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + */ +class ListControlComplianceSummariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of control compliance details. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + */ + private $control_compliance_summaries; + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary[] $control_compliance_summaries + * The list of control compliance details. + * @type string $next_page_token + * Output only. The token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The list of control compliance details. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary> + */ + public function getControlComplianceSummaries() + { + return $this->control_compliance_summaries; + } + + /** + * The list of control compliance details. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary[] $var + * @return $this + */ + public function setControlComplianceSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary::class); + $this->control_compliance_summaries = $arr; + + return $this; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php new file mode 100644 index 000000000000..43e53f458a71 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php @@ -0,0 +1,246 @@ +google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + */ +class ListFindingSummariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent scope for the framework overview page. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The end time of the finding summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $end_time = null; + + /** + * @param string $parent Required. The parent scope for the framework overview page. Please see + * {@see MonitoringClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFindingSummariesRequest + * + * @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. The parent scope for the framework overview page. + * @type int $page_size + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * @type string $page_token + * Optional. A token that identifies the page of results that the server + * should return. + * @type string $filter + * Optional. The filtering results. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. The end time of the finding summary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent scope for the framework overview page. + * + * 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. The parent scope for the framework overview page. + * + * 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 requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * 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 token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * 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. The filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The 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. The end time of the finding summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + * @deprecated + */ + public function getEndTime() + { + if (isset($this->end_time)) { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + } + return $this->end_time; + } + + public function hasEndTime() + { + if (isset($this->end_time)) { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + } + return isset($this->end_time); + } + + public function clearEndTime() + { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + unset($this->end_time); + } + + /** + * Optional. The end time of the finding summary. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + * @deprecated + */ + public function setEndTime($var) + { + @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php new file mode 100644 index 000000000000..796b73f06f5a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + */ +class ListFindingSummariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of finding summary by category. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + */ + private $finding_summaries; + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary[] $finding_summaries + * List of finding summary by category. + * @type string $next_page_token + * Output only. The token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * List of finding summary by category. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FindingSummary> + */ + public function getFindingSummaries() + { + return $this->finding_summaries; + } + + /** + * List of finding summary by category. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary[] $var + * @return $this + */ + public function setFindingSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary::class); + $this->finding_summaries = $arr; + + return $this; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php new file mode 100644 index 000000000000..4e031b81c420 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php @@ -0,0 +1,237 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + */ +class ListFrameworkAuditsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where the framework audits are listed. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of framework audits to return. The service + * might return fewer audits than this value. If unspecified, a maximum of 10 + * framework audits are returned. The maximum value is 50; values above 50 are + * limited to 50. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The `next_page_token` value that's returned from a previous list + * request, if any. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filters to apply to the framework audits. + * Supported filters are `compliance_framework`, `compliance_state`, + * `create_time,` and `framework_audit_name`. If the filter is invalid, an + * invalid argument error is returned. + * For syntax details, see [AIP-160][https://google.aip.dev/160]. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource where the framework audits are listed. + * + * Supported formats are the following: + * + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * Please see {@see AuditClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkAuditsRequest + * + * @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. The parent resource where the framework audits are listed. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/locations/{location}` + * @type int $page_size + * Optional. The maximum number of framework audits to return. The service + * might return fewer audits than this value. If unspecified, a maximum of 10 + * framework audits are returned. The maximum value is 50; values above 50 are + * limited to 50. + * @type string $page_token + * Optional. The `next_page_token` value that's returned from a previous list + * request, if any. + * @type string $filter + * Optional. The filters to apply to the framework audits. + * Supported filters are `compliance_framework`, `compliance_state`, + * `create_time,` and `framework_audit_name`. If the filter is invalid, an + * invalid argument error is returned. + * For syntax details, see [AIP-160][https://google.aip.dev/160]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where the framework audits are listed. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/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. The parent resource where the framework audits are listed. + * Supported formats are the following: + * * `organizations/{organization_id}/locations/{location}` + * * `folders/{folder_id}/locations/{location}` + * * `projects/{project_id}/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; + } + + /** + * Optional. The maximum number of framework audits to return. The service + * might return fewer audits than this value. If unspecified, a maximum of 10 + * framework audits are returned. The maximum value is 50; values above 50 are + * limited to 50. + * + * 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 framework audits to return. The service + * might return fewer audits than this value. If unspecified, a maximum of 10 + * framework audits are returned. The maximum value is 50; values above 50 are + * limited to 50. + * + * 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. The `next_page_token` value that's returned from a previous list + * request, if any. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. The `next_page_token` value that's returned from a previous list + * request, if any. + * + * 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. The filters to apply to the framework audits. + * Supported filters are `compliance_framework`, `compliance_state`, + * `create_time,` and `framework_audit_name`. If the filter is invalid, an + * invalid argument error is returned. + * For syntax details, see [AIP-160][https://google.aip.dev/160]. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filters to apply to the framework audits. + * Supported filters are `compliance_framework`, `compliance_state`, + * `create_time,` and `framework_audit_name`. If the filter is invalid, an + * invalid argument error is returned. + * For syntax details, see [AIP-160][https://google.aip.dev/160]. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php new file mode 100644 index 000000000000..991d34f5ad10 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php @@ -0,0 +1,105 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + */ +class ListFrameworkAuditsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The framework audits. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + */ + private $framework_audits; + /** + * A token, which you can send as the `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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit[] $framework_audits + * The framework audits. + * @type string $next_page_token + * A token, which you can send as the `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * The framework audits. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit> + */ + public function getFrameworkAudits() + { + return $this->framework_audits; + } + + /** + * The framework audits. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit[] $var + * @return $this + */ + public function setFrameworkAudits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit::class); + $this->framework_audits = $arr; + + return $this; + } + + /** + * A token, which you can send as the `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, which you can send as the `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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php new file mode 100644 index 000000000000..d6b902f7aad5 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php @@ -0,0 +1,226 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + */ +class ListFrameworkComplianceSummariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent scope for the framework compliance summary. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $parent Required. The parent scope for the framework compliance summary. Please see + * {@see MonitoringClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkComplianceSummariesRequest + * + * @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. The parent scope for the framework compliance summary. + * @type int $page_size + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * @type string $page_token + * Optional. A token that identifies the page of results that the server + * should return. + * @type string $filter + * Optional. The filtering results. + * @type int $view + * Optional. Specifies the level of detail to return in the response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent scope for the framework compliance summary. + * + * 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. The parent scope for the framework compliance summary. + * + * 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 requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * requested. If unspecified, the server picks an appropriate default. + * + * 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 token that identifies the page of results that the server + * should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token that identifies the page of results that the server + * should return. + * + * 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. The filtering results. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The 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. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummaryView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php new file mode 100644 index 000000000000..b505a58d6c42 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php @@ -0,0 +1,102 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + */ +class ListFrameworkComplianceSummariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of framework compliance summaries. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + */ + private $framework_compliance_summaries; + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary[] $framework_compliance_summaries + * The list of framework compliance summaries. + * @type string $next_page_token + * Output only. The token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The list of framework compliance summaries. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary> + */ + public function getFrameworkComplianceSummaries() + { + return $this->framework_compliance_summaries; + } + + /** + * The list of framework compliance summaries. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary[] $var + * @return $this + */ + public function setFrameworkComplianceSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary::class); + $this->framework_compliance_summaries = $arr; + + return $this; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Output only. The token to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php new file mode 100644 index 000000000000..107b26a5aed7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php @@ -0,0 +1,269 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest + */ +class ListFrameworkDeploymentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The requested page size. The server might return fewer items than + * requested. + * If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token that identifies a page of results the server should + * return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The filter to be applied on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. Please see + * {@see DeploymentClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkDeploymentsRequest + * + * @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. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type int $page_size + * Optional. The requested page size. The server might return fewer items than + * requested. + * If unspecified, the server picks an appropriate default. + * @type string $page_token + * Optional. A token that identifies a page of results the server should + * return. + * @type string $filter + * Optional. The filter to be applied on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * @type string $order_by + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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 requested page size. The server might return fewer items than + * requested. + * If unspecified, the server picks an appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The requested page size. The server might return fewer items than + * requested. + * If unspecified, the server picks an appropriate default. + * + * 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 token that identifies a page of results the server should + * return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token that identifies a page of results the server should + * return. + * + * 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. The filter to be applied on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter to be applied on the resource, as defined by + * [AIP-160: Filtering](https://google.aip.dev/160). + * + * 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. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. The sort order for the results. The following values are + * supported: + * * `name` + * * `name desc` + * If you do not specify a value, then the results are not sorted. + * + * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php new file mode 100644 index 000000000000..0c8e76d37396 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse + */ +class ListFrameworkDeploymentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; + */ + private $framework_deployments; + /** + * A token that identifies the next page of results that the server + * should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment[] $framework_deployments + * The list of framework deployments. + * @type string $next_page_token + * A token that identifies the next page of results that the server + * should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * The list of framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment> + */ + public function getFrameworkDeployments() + { + return $this->framework_deployments; + } + + /** + * The list of framework deployments. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment[] $var + * @return $this + */ + public function setFrameworkDeployments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment::class); + $this->framework_deployments = $arr; + + return $this; + } + + /** + * A token that identifies the next page of results that the server + * should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that identifies the next page of results that the server + * should return. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php new file mode 100644 index 000000000000..f34e76c42879 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php @@ -0,0 +1,181 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest + */ +class ListFrameworksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of frameworks to return. The default value is + * `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A pagination token returned from a previous request to list + * frameworks. Provide this token to retrieve the next page of results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * + * The only supported location is `global`. Please see + * {@see ConfigClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworksRequest + * + * @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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * @type int $page_size + * Optional. The maximum number of frameworks to return. The default value is + * `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * @type string $page_token + * Optional. A pagination token returned from a previous request to list + * frameworks. Provide this token to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * The only supported location is `global`. + * + * 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 frameworks to return. The default value is + * `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * 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 frameworks to return. The default value is + * `500`. + * If you exceed the maximum value of `1000`, then the service uses the + * maximum value. + * + * 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 pagination token returned from a previous request to list + * frameworks. Provide this token to retrieve the next page of results. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A pagination token returned from a previous request to list + * frameworks. Provide this token to retrieve the next page of results. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php new file mode 100644 index 000000000000..0c48679226db --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php @@ -0,0 +1,106 @@ +google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse + */ +class ListFrameworksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of framework resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; + */ + private $frameworks; + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework[] $frameworks + * The list of framework resources. + * @type string $next_page_token + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * The list of framework resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Framework> + */ + public function getFrameworks() + { + return $this->frameworks; + } + + /** + * The list of framework resources. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework[] $var + * @return $this + */ + public function setFrameworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); + $this->frameworks = $arr; + + return $this; + } + + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A pagination token. To retrieve the next page of results, call the method + * again with this token. + * + * 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; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php new file mode 100644 index 000000000000..0f4eb41be6e9 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + */ +class ManualCloudControlAssessmentDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The guide for assessing a cloud control manually. + * + * Generated from protobuf field repeated string manual_cloud_control_guide = 1; + */ + private $manual_cloud_control_guide; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $manual_cloud_control_guide + * The guide for assessing a cloud control manually. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The guide for assessing a cloud control manually. + * + * Generated from protobuf field repeated string manual_cloud_control_guide = 1; + * @return RepeatedField + */ + public function getManualCloudControlGuide() + { + return $this->manual_cloud_control_guide; + } + + /** + * The guide for assessing a cloud control manually. + * + * Generated from protobuf field repeated string manual_cloud_control_guide = 1; + * @param string[] $var + * @return $this + */ + public function setManualCloudControlGuide($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->manual_cloud_control_guide = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php new file mode 100644 index 000000000000..ff00ffca090f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php @@ -0,0 +1,135 @@ +google.cloud.cloudsecuritycompliance.v1.ObservationDetails + */ +class ObservationDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The current value. + * + * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_value = ''; + /** + * Optional. The expected value. + * + * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $expected_value = ''; + /** + * Output only. Any guidance for the observation. + * + * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $guidance = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $current_value + * Output only. The current value. + * @type string $expected_value + * Optional. The expected value. + * @type string $guidance + * Output only. Any guidance for the observation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The current value. + * + * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrentValue() + { + return $this->current_value; + } + + /** + * Output only. The current value. + * + * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCurrentValue($var) + { + GPBUtil::checkString($var, True); + $this->current_value = $var; + + return $this; + } + + /** + * Optional. The expected value. + * + * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExpectedValue() + { + return $this->expected_value; + } + + /** + * Optional. The expected value. + * + * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExpectedValue($var) + { + GPBUtil::checkString($var, True); + $this->expected_value = $var; + + return $this; + } + + /** + * Output only. Any guidance for the observation. + * + * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGuidance() + { + return $this->guidance; + } + + /** + * Output only. Any guidance for the observation. + * + * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGuidance($var) + { + GPBUtil::checkString($var, True); + $this->guidance = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php new file mode 100644 index 000000000000..4b27b064f8ab --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.cloudsecuritycompliance.v1.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. The 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. The name of the verb that was executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. The 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 that the operation + * be cancelled. If an operation was cancelled successfully, then the field + * [google.longrunning.Operation.error][google.longrunning.Operation.error] + * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED]. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. The API version that was 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. The server-defined resource path for the target of the + * operation. + * @type string $verb + * Output only. The name of the verb that was executed by the operation. + * @type string $status_message + * Output only. The human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested that the operation + * be cancelled. If an operation was cancelled successfully, then the field + * [google.longrunning.Operation.error][google.longrunning.Operation.error] + * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED]. + * @type string $api_version + * Output only. The API version that was used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::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. The 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. The 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. The name of the verb that was 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. The name of the verb that was 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. The 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. The 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 that the operation + * be cancelled. If an operation was cancelled successfully, then the field + * [google.longrunning.Operation.error][google.longrunning.Operation.error] + * contains the value [google.rpc.Code.CANCELLED][google.rpc.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 that the operation + * be cancelled. If an operation was cancelled successfully, then the field + * [google.longrunning.Operation.error][google.longrunning.Operation.error] + * contains the value [google.rpc.Code.CANCELLED][google.rpc.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. The API version that was 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. The API version that was 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php new file mode 100644 index 000000000000..8c6f49a8e501 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php @@ -0,0 +1,207 @@ +google.cloud.cloudsecuritycompliance.v1.ParamValue + */ +class ParamValue extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $string_value + * Optional. A string value. + * @type bool $bool_value + * Optional. A boolean value. + * @type \Google\Cloud\CloudSecurityCompliance\V1\StringList $string_list_value + * Optional. A repeated string. + * @type float $number_value + * Optional. A double value. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Parameter $oneof_value + * Optional. Sub-parameter values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A string value. + * + * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * Optional. A string value. + * + * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Optional. A boolean value. + * + * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(4); + } + + public function hasBoolValue() + { + return $this->hasOneof(4); + } + + /** + * Optional. A boolean value. + * + * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. A repeated string. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\StringList|null + */ + public function getStringListValue() + { + return $this->readOneof(5); + } + + public function hasStringListValue() + { + return $this->hasOneof(5); + } + + /** + * Optional. A repeated string. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\StringList $var + * @return $this + */ + public function setStringListValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\StringList::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. A double value. + * + * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getNumberValue() + { + return $this->readOneof(6); + } + + public function hasNumberValue() + { + return $this->hasOneof(6); + } + + /** + * Optional. A double value. + * + * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setNumberValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. Sub-parameter values. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Parameter|null + */ + public function getOneofValue() + { + return $this->readOneof(7); + } + + public function hasOneofValue() + { + return $this->hasOneof(7); + } + + /** + * Optional. Sub-parameter values. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Parameter $var + * @return $this + */ + public function setOneofValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Parameter::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php new file mode 100644 index 000000000000..eeba8a1e2d17 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php @@ -0,0 +1,113 @@ +google.cloud.cloudsecuritycompliance.v1.Parameter + */ +class Parameter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name or key of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parameter_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name or key of the parameter. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $parameter_value + * Required. The value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name or key of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name or key of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ParamValue|null + */ + public function getParameterValue() + { + return $this->parameter_value; + } + + public function hasParameterValue() + { + return isset($this->parameter_value); + } + + public function clearParameterValue() + { + unset($this->parameter_value); + } + + /** + * Required. The value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $var + * @return $this + */ + public function setParameterValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); + $this->parameter_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php new file mode 100644 index 000000000000..b91e9fbcfdda --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php @@ -0,0 +1,367 @@ +google.cloud.cloudsecuritycompliance.v1.ParameterSpec + */ +class ParameterSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. The friendly name of the parameter. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The description of the parameter. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Whether the parameter is required. + * + * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $is_required = false; + /** + * Required. The parameter value type. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value_type = 0; + /** + * Optional. The default value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_value = null; + /** + * Optional. The list of parameter substitutions. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $substitution_rules; + /** + * Optional. The parameter specification for `oneOf` attributes. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $sub_parameters; + /** + * Optional. The permitted set of values for the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the parameter. + * @type string $display_name + * Optional. The friendly name of the parameter. The maximum length is 200 + * characters. + * @type string $description + * Optional. The description of the parameter. The maximum length is 2000 + * characters. + * @type bool $is_required + * Required. Whether the parameter is required. + * @type int $value_type + * Required. The parameter value type. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $default_value + * Optional. The default value of the parameter. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule[] $substitution_rules + * Optional. The list of parameter substitutions. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $sub_parameters + * Optional. The parameter specification for `oneOf` attributes. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Validation $validation + * Optional. The permitted set of values for the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the parameter. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The friendly name of the parameter. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The friendly name of the parameter. The maximum length is 200 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the parameter. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The description of the parameter. The maximum length is 2000 + * characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Whether the parameter is required. + * + * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getIsRequired() + { + return $this->is_required; + } + + /** + * Required. Whether the parameter is required. + * + * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setIsRequired($var) + { + GPBUtil::checkBool($var); + $this->is_required = $var; + + return $this; + } + + /** + * Required. The parameter value type. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * Required. The parameter value type. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * Optional. The default value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ParamValue|null + */ + public function getDefaultValue() + { + return $this->default_value; + } + + public function hasDefaultValue() + { + return isset($this->default_value); + } + + public function clearDefaultValue() + { + unset($this->default_value); + } + + /** + * Optional. The default value of the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); + $this->default_value = $var; + + return $this; + } + + /** + * Optional. The list of parameter substitutions. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule> + */ + public function getSubstitutionRules() + { + return $this->substitution_rules; + } + + /** + * Optional. The list of parameter substitutions. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule[] $var + * @return $this + */ + public function setSubstitutionRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule::class); + $this->substitution_rules = $arr; + + return $this; + } + + /** + * Optional. The parameter specification for `oneOf` attributes. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec> + */ + public function getSubParameters() + { + return $this->sub_parameters; + } + + /** + * Optional. The parameter specification for `oneOf` attributes. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $var + * @return $this + */ + public function setSubParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec::class); + $this->sub_parameters = $arr; + + return $this; + } + + /** + * Optional. The permitted set of values for the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Validation|null + */ + public function getValidation() + { + return $this->validation; + } + + public function hasValidation() + { + return isset($this->validation); + } + + public function clearValidation() + { + unset($this->validation); + } + + /** + * Optional. The permitted set of values for the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Validation $var + * @return $this + */ + public function setValidation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Validation::class); + $this->validation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php new file mode 100644 index 000000000000..aa18000503ce --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php @@ -0,0 +1,82 @@ +google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType + */ +class ValueType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; + */ + const VALUE_TYPE_UNSPECIFIED = 0; + /** + * A string value. + * + * Generated from protobuf enum STRING = 3; + */ + const STRING = 3; + /** + * A boolean value. + * + * Generated from protobuf enum BOOLEAN = 4; + */ + const BOOLEAN = 4; + /** + * A string list value. + * + * Generated from protobuf enum STRINGLIST = 5; + */ + const STRINGLIST = 5; + /** + * A numeric value. + * + * Generated from protobuf enum NUMBER = 6; + */ + const NUMBER = 6; + /** + * A oneOf value. + * + * Generated from protobuf enum ONEOF = 7; + */ + const ONEOF = 7; + + private static $valueToName = [ + self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', + self::STRING => 'STRING', + self::BOOLEAN => 'BOOLEAN', + self::STRINGLIST => 'STRINGLIST', + self::NUMBER => 'NUMBER', + self::ONEOF => 'ONEOF', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php new file mode 100644 index 000000000000..62207686f2b7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php @@ -0,0 +1,108 @@ +google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule + */ +class ParameterSubstitutionRule extends \Google\Protobuf\Internal\Message +{ + protected $substitution_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule $placeholder_substitution_rule + * The placeholder substitution rule. + * @type \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule $attribute_substitution_rule + * The attribute substitution rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The placeholder substitution rule. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule placeholder_substitution_rule = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule|null + */ + public function getPlaceholderSubstitutionRule() + { + return $this->readOneof(1); + } + + public function hasPlaceholderSubstitutionRule() + { + return $this->hasOneof(1); + } + + /** + * The placeholder substitution rule. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule placeholder_substitution_rule = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule $var + * @return $this + */ + public function setPlaceholderSubstitutionRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The attribute substitution rule. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule attribute_substitution_rule = 2; + * @return \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule|null + */ + public function getAttributeSubstitutionRule() + { + return $this->readOneof(2); + } + + public function hasAttributeSubstitutionRule() + { + return $this->hasOneof(2); + } + + /** + * The attribute substitution rule. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule attribute_substitution_rule = 2; + * @param \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule $var + * @return $this + */ + public function setAttributeSubstitutionRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSubstitutionType() + { + return $this->whichOneof("substitution_type"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php new file mode 100644 index 000000000000..7637d3971708 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule + */ +class PlaceholderSubstitutionRule extends \Google\Protobuf\Internal\Message +{ + /** + * The fully qualified proto attribute path, in dot notation. + * + * Generated from protobuf field string attribute = 1; + */ + protected $attribute = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $attribute + * The fully qualified proto attribute path, in dot notation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The fully qualified proto attribute path, in dot notation. + * + * Generated from protobuf field string attribute = 1; + * @return string + */ + public function getAttribute() + { + return $this->attribute; + } + + /** + * The fully qualified proto attribute path, in dot notation. + * + * Generated from protobuf field string attribute = 1; + * @param string $var + * @return $this + */ + public function setAttribute($var) + { + GPBUtil::checkString($var, True); + $this->attribute = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php new file mode 100644 index 000000000000..af0de84129b7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php @@ -0,0 +1,140 @@ +google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig + */ +class ProjectCreationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the project, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The display name of the project. + * + * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_display_name = ''; + /** + * Required. The billing account ID for the project. + * + * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $billing_account_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the project, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * @type string $project_display_name + * Required. The display name of the project. + * @type string $billing_account_id + * Required. The billing account ID for the project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the project, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the project, in the format + * `organizations/{organizationID}` or `folders/{folderID}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The display name of the project. + * + * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectDisplayName() + { + return $this->project_display_name; + } + + /** + * Required. The display name of the project. + * + * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->project_display_name = $var; + + return $this; + } + + /** + * Required. The billing account ID for the project. + * + * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBillingAccountId() + { + return $this->billing_account_id; + } + + /** + * Required. The billing account ID for the project. + * + * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBillingAccountId($var) + { + GPBUtil::checkString($var, True); + $this->billing_account_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php new file mode 100644 index 000000000000..afbac537cf8d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.RegexpPattern + */ +class RegexpPattern extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The regex pattern to match the values of the parameter with. + * + * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pattern = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $pattern + * Required. The regex pattern to match the values of the parameter with. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The regex pattern to match the values of the parameter with. + * + * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPattern() + { + return $this->pattern; + } + + /** + * Required. The regex pattern to match the values of the parameter with. + * + * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPattern($var) + { + GPBUtil::checkString($var, True); + $this->pattern = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php new file mode 100644 index 000000000000..8419e501a945 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php @@ -0,0 +1,68 @@ +google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + */ +class RegulatoryControlResponsibilityType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; + */ + const REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; + /** + * Google's responsibility. + * + * Generated from protobuf enum GOOGLE = 1; + */ + const GOOGLE = 1; + /** + * Your responsibility. + * + * Generated from protobuf enum CUSTOMER = 2; + */ + const CUSTOMER = 2; + /** + * Shared responsibility. + * + * Generated from protobuf enum SHARED = 3; + */ + const SHARED = 3; + + private static $valueToName = [ + self::REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED => 'REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED', + self::GOOGLE => 'GOOGLE', + self::CUSTOMER => 'CUSTOMER', + self::SHARED => 'SHARED', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php new file mode 100644 index 000000000000..672fe6786b82 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php @@ -0,0 +1,203 @@ +google.cloud.cloudsecuritycompliance.v1.ReportSummary + */ +class ReportSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The total number of checks. + * + * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_count = 0; + /** + * Output only. The number of compliant checks. + * + * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compliant_count = 0; + /** + * Output only. The number of checks with violations. + * + * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $violation_count = 0; + /** + * Output only. The number of checks with "manual review needed" status. + * + * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $manual_review_needed_count = 0; + /** + * Output only. The number of checks that can't be performed due to errors. + * + * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $total_count + * Output only. The total number of checks. + * @type int $compliant_count + * Output only. The number of compliant checks. + * @type int $violation_count + * Output only. The number of checks with violations. + * @type int $manual_review_needed_count + * Output only. The number of checks with "manual review needed" status. + * @type int $error_count + * Output only. The number of checks that can't be performed due to errors. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The total number of checks. + * + * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTotalCount() + { + return $this->total_count; + } + + /** + * Output only. The total number of checks. + * + * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTotalCount($var) + { + GPBUtil::checkInt32($var); + $this->total_count = $var; + + return $this; + } + + /** + * Output only. The number of compliant checks. + * + * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompliantCount() + { + return $this->compliant_count; + } + + /** + * Output only. The number of compliant checks. + * + * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompliantCount($var) + { + GPBUtil::checkInt32($var); + $this->compliant_count = $var; + + return $this; + } + + /** + * Output only. The number of checks with violations. + * + * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getViolationCount() + { + return $this->violation_count; + } + + /** + * Output only. The number of checks with violations. + * + * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setViolationCount($var) + { + GPBUtil::checkInt32($var); + $this->violation_count = $var; + + return $this; + } + + /** + * Output only. The number of checks with "manual review needed" status. + * + * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getManualReviewNeededCount() + { + return $this->manual_review_needed_count; + } + + /** + * Output only. The number of checks with "manual review needed" status. + * + * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setManualReviewNeededCount($var) + { + GPBUtil::checkInt32($var); + $this->manual_review_needed_count = $var; + + return $this; + } + + /** + * Output only. The number of checks that can't be performed due to errors. + * + * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getErrorCount() + { + return $this->error_count; + } + + /** + * Output only. The number of checks that can't be performed due to errors. + * + * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->error_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php new file mode 100644 index 000000000000..84e1b546e777 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php @@ -0,0 +1,143 @@ +google.cloud.cloudsecuritycompliance.v1.Rule + */ +class Rule extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The rule description. The maximum length is 2000 characters. + * + * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The functionality that's enabled by the rule. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rule_action_types; + protected $implementation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CELExpression $cel_expression + * The rule's logic expression in Common Expression Language (CEL). + * @type string $description + * Optional. The rule description. The maximum length is 2000 characters. + * @type int[] $rule_action_types + * Required. The functionality that's enabled by the rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The rule's logic expression in Common Expression Language (CEL). + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CELExpression|null + */ + public function getCelExpression() + { + return $this->readOneof(1); + } + + public function hasCelExpression() + { + return $this->hasOneof(1); + } + + /** + * The rule's logic expression in Common Expression Language (CEL). + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CELExpression $var + * @return $this + */ + public function setCelExpression($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CELExpression::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * + * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * + * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The functionality that's enabled by the rule. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getRuleActionTypes() + { + return $this->rule_action_types; + } + + /** + * Required. The functionality that's enabled by the rule. + * + * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param int[] $var + * @return $this + */ + public function setRuleActionTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\RuleActionType::class); + $this->rule_action_types = $arr; + + return $this; + } + + /** + * @return string + */ + public function getImplementation() + { + return $this->whichOneof("implementation"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php new file mode 100644 index 000000000000..aeecd9c9344d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php @@ -0,0 +1,68 @@ +google.cloud.cloudsecuritycompliance.v1.RuleActionType + */ +class RuleActionType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum RULE_ACTION_TYPE_UNSPECIFIED = 0; + */ + const RULE_ACTION_TYPE_UNSPECIFIED = 0; + /** + * The rule is intended to prevent non-compliance. + * + * Generated from protobuf enum RULE_ACTION_TYPE_PREVENTIVE = 1; + */ + const RULE_ACTION_TYPE_PREVENTIVE = 1; + /** + * The rule is intended to detect non-compliance. + * + * Generated from protobuf enum RULE_ACTION_TYPE_DETECTIVE = 2; + */ + const RULE_ACTION_TYPE_DETECTIVE = 2; + /** + * The rule is intended to audit non-compliance. + * + * Generated from protobuf enum RULE_ACTION_TYPE_AUDIT = 3; + */ + const RULE_ACTION_TYPE_AUDIT = 3; + + private static $valueToName = [ + self::RULE_ACTION_TYPE_UNSPECIFIED => 'RULE_ACTION_TYPE_UNSPECIFIED', + self::RULE_ACTION_TYPE_PREVENTIVE => 'RULE_ACTION_TYPE_PREVENTIVE', + self::RULE_ACTION_TYPE_DETECTIVE => 'RULE_ACTION_TYPE_DETECTIVE', + self::RULE_ACTION_TYPE_AUDIT => 'RULE_ACTION_TYPE_AUDIT', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php new file mode 100644 index 000000000000..981fb09a8b22 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php @@ -0,0 +1,104 @@ +google.cloud.cloudsecuritycompliance.v1.Severity + */ +class Severity +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; + */ + const SEVERITY_UNSPECIFIED = 0; + /** + * A critical vulnerability is easily discoverable by an external actor, + * exploitable, and results in the direct ability to execute arbitrary code, + * exfiltrate data, and otherwise gain additional access and privileges to + * cloud resources and workloads. Examples include publicly accessible + * unprotected user data and public SSH access with weak or no + * passwords. + * A critical threat is a threat that can access, modify, or delete data or + * execute unauthorized code within existing resources. + * + * Generated from protobuf enum CRITICAL = 1; + */ + const CRITICAL = 1; + /** + * A high-risk vulnerability can be easily discovered and exploited in + * combination with other vulnerabilities to gain direct access and + * the ability to execute arbitrary code, exfiltrate data, and otherwise + * gain additional access and privileges to cloud resources and workloads. + * An example is a database with weak or no passwords that is only + * accessible internally. This database could easily be compromised by an + * actor that had access to the internal network. + * A high-risk threat is a threat that can create new computational + * resources in an environment but can't access data or execute code in + * existing resources. + * + * Generated from protobuf enum HIGH = 2; + */ + const HIGH = 2; + /** + * A medium-risk vulnerability can be used by an actor to gain access to + * resources or privileges that enable them to eventually (through multiple + * steps or a complex exploit) gain access and the ability to execute + * arbitrary code or exfiltrate data. An example is a service account with + * access to more projects than it should have. If an actor gains access to + * the service account, they could potentially use that access to manipulate + * a project the service account was not intended to. + * A medium-risk threat can cause operational impact but might not + * access data or execute unauthorized code. + * + * Generated from protobuf enum MEDIUM = 3; + */ + const MEDIUM = 3; + /** + * A low-risk vulnerability hampers a security organization's ability to + * detect vulnerabilities or active threats in their deployment, or prevents + * the root cause investigation of security issues. An example is monitoring + * and logs being disabled for resource configurations and access. + * A low-risk threat is a threat that has obtained minimal access to an + * environment but can't access data, execute code, or create resources. + * + * Generated from protobuf enum LOW = 4; + */ + const LOW = 4; + + private static $valueToName = [ + self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', + self::CRITICAL => 'CRITICAL', + self::HIGH => 'HIGH', + self::MEDIUM => 'MEDIUM', + self::LOW => 'LOW', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php new file mode 100644 index 000000000000..0d8279b22c63 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php @@ -0,0 +1,101 @@ +google.cloud.cloudsecuritycompliance.v1.SimilarControls + */ +class SimilarControls extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + */ + protected $framework = ''; + /** + * The ID of the control. + * + * Generated from protobuf field string control_id = 2; + */ + protected $control_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework + * The name of the framework. + * @type string $control_id + * The ID of the control. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @return string + */ + public function getFramework() + { + return $this->framework; + } + + /** + * The name of the framework. + * + * Generated from protobuf field string framework = 1; + * @param string $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkString($var, True); + $this->framework = $var; + + return $this; + } + + /** + * The ID of the control. + * + * Generated from protobuf field string control_id = 2; + * @return string + */ + public function getControlId() + { + return $this->control_id; + } + + /** + * The ID of the control. + * + * Generated from protobuf field string control_id = 2; + * @param string $var + * @return $this + */ + public function setControlId($var) + { + GPBUtil::checkString($var, True); + $this->control_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php new file mode 100644 index 000000000000..d91a2fd949fa --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php @@ -0,0 +1,67 @@ +google.cloud.cloudsecuritycompliance.v1.StringList + */ +class StringList extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The strings in the list. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $values + * Required. The strings in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The strings in the list. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. The strings in the list. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php new file mode 100644 index 000000000000..7d5d1dd97f17 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php @@ -0,0 +1,121 @@ +google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig + */ +class TargetResourceConfig extends \Google\Protobuf\Internal\Message +{ + protected $resource_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $existing_target_resource + * Optional. The resource hierarchy node, in one of the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig $target_resource_creation_config + * Optional. The details that are required to create a resource and use + * that resource as the target resource for deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource hierarchy node, in one of the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExistingTargetResource() + { + return $this->readOneof(1); + } + + public function hasExistingTargetResource() + { + return $this->hasOneof(1); + } + + /** + * Optional. The resource hierarchy node, in one of the following formats: + * - `organizations/{organizationID}` + * - `folders/{folderID}` + * - `projects/{projectID}` + * + * Generated from protobuf field string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExistingTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The details that are required to create a resource and use + * that resource as the target resource for deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig|null + */ + public function getTargetResourceCreationConfig() + { + return $this->readOneof(2); + } + + public function hasTargetResourceCreationConfig() + { + return $this->hasOneof(2); + } + + /** + * Optional. The details that are required to create a resource and use + * that resource as the target resource for deployment. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig $var + * @return $this + */ + public function setTargetResourceCreationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getResourceConfig() + { + return $this->whichOneof("resource_config"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php new file mode 100644 index 000000000000..4a6a034a53c0 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php @@ -0,0 +1,108 @@ +google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig + */ +class TargetResourceCreationConfig extends \Google\Protobuf\Internal\Message +{ + protected $resource_creation_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig $folder_creation_config + * Optional. The configuration that's required to create a folder. + * @type \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig $project_creation_config + * Optional. The configuration that's required to create a project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The configuration that's required to create a folder. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig folder_creation_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig|null + */ + public function getFolderCreationConfig() + { + return $this->readOneof(1); + } + + public function hasFolderCreationConfig() + { + return $this->hasOneof(1); + } + + /** + * Optional. The configuration that's required to create a folder. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig folder_creation_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig $var + * @return $this + */ + public function setFolderCreationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The configuration that's required to create a project. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig project_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig|null + */ + public function getProjectCreationConfig() + { + return $this->readOneof(2); + } + + public function hasProjectCreationConfig() + { + return $this->hasOneof(2); + } + + /** + * Optional. The configuration that's required to create a project. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig project_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig $var + * @return $this + */ + public function setProjectCreationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getResourceCreationConfig() + { + return $this->whichOneof("resource_creation_config"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php new file mode 100644 index 000000000000..e3bf7fed578b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php @@ -0,0 +1,307 @@ +google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + */ +class TargetResourceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The framework deployment name for the target resource. + * For example, + * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` + * + * Generated from protobuf field string framework_deployment = 1; + */ + protected $framework_deployment = ''; + /** + * The display name of the target resource. For example, `google.com`, + * `staging-project`, or `development-folder`. + * + * Generated from protobuf field string target_resource_display_name = 2; + */ + protected $target_resource_display_name = ''; + /** + * The target resource. For example, `organizations/1234567890`, + * `projects/1234567890`, or `folders/1234567890`. + * + * Generated from protobuf field string target_resource = 3; + */ + protected $target_resource = ''; + /** + * The create time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + */ + protected $create_time = null; + /** + * The update time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; + */ + protected $update_time = null; + /** + * The major revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 major_revision_id = 6; + */ + protected $major_revision_id = 0; + /** + * The minor revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 minor_revision_id = 7; + */ + protected $minor_revision_id = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $framework_deployment + * The framework deployment name for the target resource. + * For example, + * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` + * @type string $target_resource_display_name + * The display name of the target resource. For example, `google.com`, + * `staging-project`, or `development-folder`. + * @type string $target_resource + * The target resource. For example, `organizations/1234567890`, + * `projects/1234567890`, or `folders/1234567890`. + * @type \Google\Protobuf\Timestamp $create_time + * The create time of the target resource. + * @type \Google\Protobuf\Timestamp $update_time + * The update time of the target resource. + * @type int|string $major_revision_id + * The major revision ID of the framework for the target resource. + * @type int|string $minor_revision_id + * The minor revision ID of the framework for the target resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The framework deployment name for the target resource. + * For example, + * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` + * + * Generated from protobuf field string framework_deployment = 1; + * @return string + */ + public function getFrameworkDeployment() + { + return $this->framework_deployment; + } + + /** + * The framework deployment name for the target resource. + * For example, + * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` + * + * Generated from protobuf field string framework_deployment = 1; + * @param string $var + * @return $this + */ + public function setFrameworkDeployment($var) + { + GPBUtil::checkString($var, True); + $this->framework_deployment = $var; + + return $this; + } + + /** + * The display name of the target resource. For example, `google.com`, + * `staging-project`, or `development-folder`. + * + * Generated from protobuf field string target_resource_display_name = 2; + * @return string + */ + public function getTargetResourceDisplayName() + { + return $this->target_resource_display_name; + } + + /** + * The display name of the target resource. For example, `google.com`, + * `staging-project`, or `development-folder`. + * + * Generated from protobuf field string target_resource_display_name = 2; + * @param string $var + * @return $this + */ + public function setTargetResourceDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->target_resource_display_name = $var; + + return $this; + } + + /** + * The target resource. For example, `organizations/1234567890`, + * `projects/1234567890`, or `folders/1234567890`. + * + * Generated from protobuf field string target_resource = 3; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * The target resource. For example, `organizations/1234567890`, + * `projects/1234567890`, or `folders/1234567890`. + * + * Generated from protobuf field string target_resource = 3; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + + /** + * The create time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + * @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); + } + + /** + * The create time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * The update time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; + * @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); + } + + /** + * The update time of the target resource. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The major revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 major_revision_id = 6; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * The major revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 major_revision_id = 6; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + + /** + * The minor revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 minor_revision_id = 7; + * @return int|string + */ + public function getMinorRevisionId() + { + return $this->minor_revision_id; + } + + /** + * The minor revision ID of the framework for the target resource. + * + * Generated from protobuf field int64 minor_revision_id = 7; + * @param int|string $var + * @return $this + */ + public function setMinorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->minor_revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php new file mode 100644 index 000000000000..5b7fa808821f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php @@ -0,0 +1,75 @@ +google.cloud.cloudsecuritycompliance.v1.TargetResourceType + */ +class TargetResourceType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TARGET_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const TARGET_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * The target resource is a Google Cloud organization. + * + * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_ORG = 1; + */ + const TARGET_RESOURCE_CRM_TYPE_ORG = 1; + /** + * The target resource is a folder. + * + * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; + */ + const TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; + /** + * The target resource is a project. + * + * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; + */ + const TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; + /** + * The target resource is an application in App Hub. + * + * Generated from protobuf enum TARGET_RESOURCE_TYPE_APPLICATION = 4; + */ + const TARGET_RESOURCE_TYPE_APPLICATION = 4; + + private static $valueToName = [ + self::TARGET_RESOURCE_TYPE_UNSPECIFIED => 'TARGET_RESOURCE_TYPE_UNSPECIFIED', + self::TARGET_RESOURCE_CRM_TYPE_ORG => 'TARGET_RESOURCE_CRM_TYPE_ORG', + self::TARGET_RESOURCE_CRM_TYPE_FOLDER => 'TARGET_RESOURCE_CRM_TYPE_FOLDER', + self::TARGET_RESOURCE_CRM_TYPE_PROJECT => 'TARGET_RESOURCE_CRM_TYPE_PROJECT', + self::TARGET_RESOURCE_TYPE_APPLICATION => 'TARGET_RESOURCE_TYPE_APPLICATION', + ]; + + 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php new file mode 100644 index 000000000000..6ad2ee47f83f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php @@ -0,0 +1,115 @@ +google.cloud.cloudsecuritycompliance.v1.Trend + */ +class Trend extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The duration for the trend. + * + * Generated from protobuf field .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $duration = null; + /** + * Output only. The trend value as a percentage. The value can be positive or + * negative. + * + * Generated from protobuf field double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $value_percent = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $duration + * Output only. The duration for the trend. + * @type float $value_percent + * Output only. The trend value as a percentage. The value can be positive or + * negative. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The duration for the trend. + * + * Generated from protobuf field .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * Output only. The duration for the trend. + * + * Generated from protobuf field .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + + /** + * Output only. The trend value as a percentage. The value can be positive or + * negative. + * + * Generated from protobuf field double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getValuePercent() + { + return $this->value_percent; + } + + /** + * Output only. The trend value as a percentage. The value can be positive or + * negative. + * + * Generated from protobuf field double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setValuePercent($var) + { + GPBUtil::checkDouble($var); + $this->value_percent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php new file mode 100644 index 000000000000..a961a88227f8 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php @@ -0,0 +1,193 @@ +google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest + */ +class UpdateCloudControlRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. + * The fields that you specify in the `update_mask` are relative to the + * cloud control, not the full request. A field is overwritten if it is in + * the mask. If you don't provide a mask, all fields in the request + * are updated. + * You can update the following fields: + * - Display name + * - Description + * - Parameters + * - Rules + * - Parameter specification + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The cloud control that you're updating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_control = null; + + /** + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl Required. The cloud control that you're updating. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. + * The fields that you specify in the `update_mask` are relative to the + * cloud control, not the full request. A field is overwritten if it is in + * the mask. If you don't provide a mask, all fields in the request + * are updated. + * + * You can update the following fields: + * + * - Display name + * - Description + * - Parameters + * - Rules + * - Parameter specification + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateCloudControlRequest + * + * @experimental + */ + public static function build(\Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCloudControl($cloudControl) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. + * The fields that you specify in the `update_mask` are relative to the + * cloud control, not the full request. A field is overwritten if it is in + * the mask. If you don't provide a mask, all fields in the request + * are updated. + * You can update the following fields: + * - Display name + * - Description + * - Parameters + * - Rules + * - Parameter specification + * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloud_control + * Required. The cloud control that you're updating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. + * The fields that you specify in the `update_mask` are relative to the + * cloud control, not the full request. A field is overwritten if it is in + * the mask. If you don't provide a mask, all fields in the request + * are updated. + * You can update the following fields: + * - Display name + * - Description + * - Parameters + * - Rules + * - Parameter specification + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. + * The fields that you specify in the `update_mask` are relative to the + * cloud control, not the full request. A field is overwritten if it is in + * the mask. If you don't provide a mask, all fields in the request + * are updated. + * You can update the following fields: + * - Display name + * - Description + * - Parameters + * - Rules + * - Parameter specification + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The cloud control that you're updating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null + */ + public function getCloudControl() + { + return $this->cloud_control; + } + + public function hasCloudControl() + { + return isset($this->cloud_control); + } + + public function clearCloudControl() + { + unset($this->cloud_control); + } + + /** + * Required. The cloud control that you're updating. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var + * @return $this + */ + public function setCloudControl($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); + $this->cloud_control = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php new file mode 100644 index 000000000000..200bc438ac1d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php @@ -0,0 +1,141 @@ +google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + */ +class UpdateCmEnrollmentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Compliance Manager enrollment to update. + * The `name` field is used to identify the settings that you want to update. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cm_enrollment = null; + /** + * Optional. The list of fields that you want to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cmEnrollment Required. The Compliance Manager enrollment to update. + * The `name` field is used to identify the settings that you want to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields that you want to update. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateCmEnrollmentRequest + * + * @experimental + */ + public static function build(\Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cmEnrollment, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCmEnrollment($cmEnrollment) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cm_enrollment + * Required. The Compliance Manager enrollment to update. + * The `name` field is used to identify the settings that you want to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields that you want to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Compliance Manager enrollment to update. + * The `name` field is used to identify the settings that you want to update. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment|null + */ + public function getCmEnrollment() + { + return $this->cm_enrollment; + } + + public function hasCmEnrollment() + { + return isset($this->cm_enrollment); + } + + public function clearCmEnrollment() + { + unset($this->cm_enrollment); + } + + /** + * Required. The Compliance Manager enrollment to update. + * The `name` field is used to identify the settings that you want to update. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $var + * @return $this + */ + public function setCmEnrollment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment::class); + $this->cm_enrollment = $var; + + return $this; + } + + /** + * Optional. The list of fields that you want to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields that you want to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php new file mode 100644 index 000000000000..49b76f63cba3 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php @@ -0,0 +1,190 @@ +google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest + */ +class UpdateFrameworkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A field mask is used to specify the fields to be overwritten in + * the framework resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field + * is overwritten if it is in the mask. If you don't provide a mask then all + * fields present in the request will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The resource that is being updated. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $framework = null; + /** + * Optional. The major version ID of the framework to update. + * + * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $major_revision_id = 0; + + /** + * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework Required. The resource that is being updated. + * @param \Google\Protobuf\FieldMask $updateMask Optional. A field mask is used to specify the fields to be overwritten in + * the framework resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field + * is overwritten if it is in the mask. If you don't provide a mask then all + * fields present in the request will be overwritten. + * + * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateFrameworkRequest + * + * @experimental + */ + public static function build(\Google\Cloud\CloudSecurityCompliance\V1\Framework $framework, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setFramework($framework) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. A field mask is used to specify the fields to be overwritten in + * the framework resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field + * is overwritten if it is in the mask. If you don't provide a mask then all + * fields present in the request will be overwritten. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework + * Required. The resource that is being updated. + * @type int|string $major_revision_id + * Optional. The major version ID of the framework to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A field mask is used to specify the fields to be overwritten in + * the framework resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field + * is overwritten if it is in the mask. If you don't provide a mask then all + * fields present in the request will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. A field mask is used to specify the fields to be overwritten in + * the framework resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field + * is overwritten if it is in the mask. If you don't provide a mask then all + * fields present in the request will be overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The resource that is being updated. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Framework|null + */ + public function getFramework() + { + return $this->framework; + } + + public function hasFramework() + { + return isset($this->framework); + } + + public function clearFramework() + { + unset($this->framework); + } + + /** + * Required. The resource that is being updated. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $var + * @return $this + */ + public function setFramework($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); + $this->framework = $var; + + return $this; + } + + /** + * Optional. The major version ID of the framework to update. + * + * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMajorRevisionId() + { + return $this->major_revision_id; + } + + /** + * Optional. The major version ID of the framework to update. + * + * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMajorRevisionId($var) + { + GPBUtil::checkInt64($var); + $this->major_revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php new file mode 100644 index 000000000000..297abad0de4e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php @@ -0,0 +1,141 @@ +google.cloud.cloudsecuritycompliance.v1.Validation + */ +class Validation extends \Google\Protobuf\Internal\Message +{ + protected $constraint; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues $allowed_values + * The permitted set of values for the parameter. + * @type \Google\Cloud\CloudSecurityCompliance\V1\IntRange $int_range + * The permitted range for numeric parameters. + * @type \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern $regexp_pattern + * The regular expression for string parameters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The permitted set of values for the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; + * @return \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues|null + */ + public function getAllowedValues() + { + return $this->readOneof(1); + } + + public function hasAllowedValues() + { + return $this->hasOneof(1); + } + + /** + * The permitted set of values for the parameter. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; + * @param \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues $var + * @return $this + */ + public function setAllowedValues($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The permitted range for numeric parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; + * @return \Google\Cloud\CloudSecurityCompliance\V1\IntRange|null + */ + public function getIntRange() + { + return $this->readOneof(2); + } + + public function hasIntRange() + { + return $this->hasOneof(2); + } + + /** + * The permitted range for numeric parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; + * @param \Google\Cloud\CloudSecurityCompliance\V1\IntRange $var + * @return $this + */ + public function setIntRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\IntRange::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The regular expression for string parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; + * @return \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern|null + */ + public function getRegexpPattern() + { + return $this->readOneof(3); + } + + public function hasRegexpPattern() + { + return $this->hasOneof(3); + } + + /** + * The regular expression for string parameters. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; + * @param \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern $var + * @return $this + */ + public function setRegexpPattern($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getConstraint() + { + return $this->whichOneof("constraint"); + } + +} + diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php new file mode 100644 index 000000000000..c71a53b159de --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php @@ -0,0 +1,94 @@ +setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); + $request = (new CreateFrameworkAuditRequest()) + ->setParent($formattedParent) + ->setFrameworkAudit($frameworkAudit); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $auditClient->createFrameworkAudit($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var FrameworkAudit $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = AuditClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + create_framework_audit_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php new file mode 100644 index 000000000000..55133f2efd99 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php @@ -0,0 +1,86 @@ +setScope($scope) + ->setReportFormat($reportFormat) + ->setComplianceFramework($complianceFramework); + + // Call the API and handle any network failures. + try { + /** @var GenerateFrameworkAuditScopeReportResponse $response */ + $response = $auditClient->generateFrameworkAuditScopeReport($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 +{ + $scope = '[SCOPE]'; + $reportFormat = Format::FORMAT_UNSPECIFIED; + $complianceFramework = '[COMPLIANCE_FRAMEWORK]'; + + generate_framework_audit_scope_report_sample($scope, $reportFormat, $complianceFramework); +} +// [END cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php new file mode 100644 index 000000000000..3c51ae55ddc9 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FrameworkAudit $response */ + $response = $auditClient->getFrameworkAudit($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 = AuditClient::frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); + + get_framework_audit_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php new file mode 100644 index 000000000000..71cbe6c7e1ec --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php new file mode 100644 index 000000000000..6295524c20aa --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $auditClient->listFrameworkAudits($request); + + /** @var FrameworkAudit $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 = AuditClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_framework_audits_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php new file mode 100644 index 000000000000..b8188a907c20 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php new file mode 100644 index 000000000000..ecdc1cf01bac --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CalculateEffectiveCmEnrollmentResponse $response */ + $response = $cmEnrollmentServiceClient->calculateEffectiveCmEnrollment($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 = CmEnrollmentServiceClient::cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); + + calculate_effective_cm_enrollment_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php new file mode 100644 index 000000000000..ce51c4c6cda4 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php new file mode 100644 index 000000000000..fa7b3666a267 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php new file mode 100644 index 000000000000..781c31dd89a5 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php @@ -0,0 +1,62 @@ +setCmEnrollment($cmEnrollment); + + // Call the API and handle any network failures. + try { + /** @var CmEnrollment $response */ + $response = $cmEnrollmentServiceClient->updateCmEnrollment($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php new file mode 100644 index 000000000000..ca2fadbc6b56 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php @@ -0,0 +1,97 @@ +setName($cloudControlName); + $request = (new CreateCloudControlRequest()) + ->setParent($formattedParent) + ->setCloudControlId($cloudControlId) + ->setCloudControl($cloudControl); + + // Call the API and handle any network failures. + try { + /** @var CloudControl $response */ + $response = $configClient->createCloudControl($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 +{ + $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $cloudControlId = '[CLOUD_CONTROL_ID]'; + $cloudControlName = '[NAME]'; + + create_cloud_control_sample($formattedParent, $cloudControlId, $cloudControlName); +} +// [END cloudsecuritycompliance_v1_generated_Config_CreateCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php new file mode 100644 index 000000000000..d23a38b3ce00 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php @@ -0,0 +1,95 @@ +setName($frameworkName); + $request = (new CreateFrameworkRequest()) + ->setParent($formattedParent) + ->setFrameworkId($frameworkId) + ->setFramework($framework); + + // Call the API and handle any network failures. + try { + /** @var Framework $response */ + $response = $configClient->createFramework($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 +{ + $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkId = '[FRAMEWORK_ID]'; + $frameworkName = '[NAME]'; + + create_framework_sample($formattedParent, $frameworkId, $frameworkName); +} +// [END cloudsecuritycompliance_v1_generated_Config_CreateFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php new file mode 100644 index 000000000000..235e0fd186f5 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $configClient->deleteCloudControl($request); + printf('Call completed successfully.' . PHP_EOL); + } 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 = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + + delete_cloud_control_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Config_DeleteCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php new file mode 100644 index 000000000000..481d9392318d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $configClient->deleteFramework($request); + printf('Call completed successfully.' . PHP_EOL); + } 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 = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + + delete_framework_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Config_DeleteFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php new file mode 100644 index 000000000000..9a0c103234b1 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php @@ -0,0 +1,83 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CloudControl $response */ + $response = $configClient->getCloudControl($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 = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + + get_cloud_control_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Config_GetCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php new file mode 100644 index 000000000000..2fd2ac055713 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Framework $response */ + $response = $configClient->getFramework($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 = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + + get_framework_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Config_GetFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php new file mode 100644 index 000000000000..32e3219ab8b1 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_Config_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php new file mode 100644 index 000000000000..0d69f96bcc07 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listCloudControls($request); + + /** @var CloudControl $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 = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_cloud_controls_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Config_ListCloudControls_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php new file mode 100644 index 000000000000..2e50149dca3e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $configClient->listFrameworks($request); + + /** @var Framework $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 = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_frameworks_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Config_ListFrameworks_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php new file mode 100644 index 000000000000..49b8aa31b6f6 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END cloudsecuritycompliance_v1_generated_Config_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php new file mode 100644 index 000000000000..5d1374c694bb --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php @@ -0,0 +1,89 @@ +setName($cloudControlName); + $request = (new UpdateCloudControlRequest()) + ->setCloudControl($cloudControl); + + // Call the API and handle any network failures. + try { + /** @var CloudControl $response */ + $response = $configClient->updateCloudControl($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 +{ + $cloudControlName = '[NAME]'; + + update_cloud_control_sample($cloudControlName); +} +// [END cloudsecuritycompliance_v1_generated_Config_UpdateCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php new file mode 100644 index 000000000000..5eddb740a879 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php @@ -0,0 +1,89 @@ +setName($frameworkName); + $request = (new UpdateFrameworkRequest()) + ->setFramework($framework); + + // Call the API and handle any network failures. + try { + /** @var Framework $response */ + $response = $configClient->updateFramework($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 +{ + $frameworkName = '[NAME]'; + + update_framework_sample($frameworkName); +} +// [END cloudsecuritycompliance_v1_generated_Config_UpdateFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php new file mode 100644 index 000000000000..a1d2e64153b1 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php @@ -0,0 +1,140 @@ +setFramework($formattedFrameworkDeploymentFrameworkFramework); + $frameworkDeploymentCloudControlMetadataCloudControlDetails = (new CloudControlDetails()) + ->setName($frameworkDeploymentCloudControlMetadataCloudControlDetailsName) + ->setMajorRevisionId($frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId); + $cloudControlMetadata = (new CloudControlMetadata()) + ->setCloudControlDetails($frameworkDeploymentCloudControlMetadataCloudControlDetails) + ->setEnforcementMode($frameworkDeploymentCloudControlMetadataEnforcementMode); + $frameworkDeploymentCloudControlMetadata = [$cloudControlMetadata,]; + $frameworkDeployment = (new FrameworkDeployment()) + ->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig) + ->setFramework($frameworkDeploymentFramework) + ->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); + $request = (new CreateFrameworkDeploymentRequest()) + ->setParent($formattedParent) + ->setFrameworkDeployment($frameworkDeployment); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $deploymentClient->createFrameworkDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var FrameworkDeployment $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $formattedFrameworkDeploymentFrameworkFramework = DeploymentClient::frameworkName( + '[ORGANIZATION]', + '[LOCATION]', + '[FRAMEWORK]' + ); + $frameworkDeploymentCloudControlMetadataCloudControlDetailsName = '[NAME]'; + $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId = 0; + $frameworkDeploymentCloudControlMetadataEnforcementMode = EnforcementMode::ENFORCEMENT_MODE_UNSPECIFIED; + + create_framework_deployment_sample( + $formattedParent, + $formattedFrameworkDeploymentFrameworkFramework, + $frameworkDeploymentCloudControlMetadataCloudControlDetailsName, + $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId, + $frameworkDeploymentCloudControlMetadataEnforcementMode + ); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_CreateFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php new file mode 100644 index 000000000000..32ca57b08833 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php @@ -0,0 +1,89 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $deploymentClient->deleteFrameworkDeployment($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = DeploymentClient::frameworkDeploymentName( + '[ORGANIZATION]', + '[LOCATION]', + '[FRAMEWORK_DEPLOYMENT]' + ); + + delete_framework_deployment_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_DeleteFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php new file mode 100644 index 000000000000..716a08f0285d --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CloudControlDeployment $response */ + $response = $deploymentClient->getCloudControlDeployment($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 = DeploymentClient::cloudControlDeploymentName( + '[ORGANIZATION]', + '[LOCATION]', + '[CLOUD_CONTROL_DEPLOYMENT]' + ); + + get_cloud_control_deployment_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_GetCloudControlDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php new file mode 100644 index 000000000000..a918d6bf93dc --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FrameworkDeployment $response */ + $response = $deploymentClient->getFrameworkDeployment($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 = DeploymentClient::frameworkDeploymentName( + '[ORGANIZATION]', + '[LOCATION]', + '[FRAMEWORK_DEPLOYMENT]' + ); + + get_framework_deployment_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_GetFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php new file mode 100644 index 000000000000..aa586cbd5e61 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_Deployment_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php new file mode 100644 index 000000000000..8153297a7340 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $deploymentClient->listCloudControlDeployments($request); + + /** @var CloudControlDeployment $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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_cloud_control_deployments_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_ListCloudControlDeployments_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php new file mode 100644 index 000000000000..cce4749f2858 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $deploymentClient->listFrameworkDeployments($request); + + /** @var FrameworkDeployment $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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_framework_deployments_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Deployment_ListFrameworkDeployments_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php new file mode 100644 index 000000000000..db2ca534275e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END cloudsecuritycompliance_v1_generated_Deployment_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php new file mode 100644 index 000000000000..603892f40f53 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AggregateFrameworkComplianceReportResponse $response */ + $response = $monitoringClient->aggregateFrameworkComplianceReport($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 = MonitoringClient::frameworkComplianceReportName( + '[PROJECT]', + '[LOCATION]', + '[FRAMEWORK_COMPLIANCE_REPORT]' + ); + + aggregate_framework_compliance_report_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php new file mode 100644 index 000000000000..7f85c58e96f2 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FrameworkComplianceReport $response */ + $response = $monitoringClient->fetchFrameworkComplianceReport($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 = MonitoringClient::frameworkComplianceReportName( + '[PROJECT]', + '[LOCATION]', + '[FRAMEWORK_COMPLIANCE_REPORT]' + ); + + fetch_framework_compliance_report_sample($formattedName); +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php new file mode 100644 index 000000000000..dc465ba72942 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php new file mode 100644 index 000000000000..ffa69884e3c4 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $monitoringClient->listControlComplianceSummaries($request); + + /** @var ControlComplianceSummary $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 = MonitoringClient::frameworkComplianceReportName( + '[PROJECT]', + '[LOCATION]', + '[FRAMEWORK_COMPLIANCE_REPORT]' + ); + + list_control_compliance_summaries_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php new file mode 100644 index 000000000000..6de4274d2678 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $monitoringClient->listFindingSummaries($request); + + /** @var FindingSummary $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 = MonitoringClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_finding_summaries_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php new file mode 100644 index 000000000000..3369116504da --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $monitoringClient->listFrameworkComplianceSummaries($request); + + /** @var FrameworkComplianceSummary $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 = MonitoringClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_framework_compliance_summaries_sample($formattedParent); +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php new file mode 100644 index 000000000000..b3ba2331dfe9 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php @@ -0,0 +1,77 @@ +listLocations($request); + + /** @var Location $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()); + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php new file mode 100644 index 000000000000..a26b02695978 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php @@ -0,0 +1,544 @@ + createFrameworkAuditAsync(CreateFrameworkAuditRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateFrameworkAuditScopeReportAsync(GenerateFrameworkAuditScopeReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFrameworkAuditAsync(GetFrameworkAuditRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFrameworkAuditsAsync(ListFrameworkAuditsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class AuditClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Audit'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/audit_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/audit_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/audit_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/audit_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * framework_audit resource. + * + * @param string $project + * @param string $location + * @param string $frameworkAudit + * + * @return string The formatted framework_audit resource. + */ + public static function frameworkAuditName(string $project, string $location, string $frameworkAudit): string + { + return self::getPathTemplate('frameworkAudit')->render([ + 'project' => $project, + 'location' => $location, + 'framework_audit' => $frameworkAudit, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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. + */ + 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 + * organization_location_framework_audit resource. + * + * @param string $organization + * @param string $location + * @param string $frameworkAudit + * + * @return string The formatted organization_location_framework_audit resource. + */ + public static function organizationLocationFrameworkAuditName(string $organization, string $location, string $frameworkAudit): string + { + return self::getPathTemplate('organizationLocationFrameworkAudit')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework_audit' => $frameworkAudit, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework_audit resource. + * + * @param string $project + * @param string $location + * @param string $frameworkAudit + * + * @return string The formatted project_location_framework_audit resource. + */ + public static function projectLocationFrameworkAuditName(string $project, string $location, string $frameworkAudit): string + { + return self::getPathTemplate('projectLocationFrameworkAudit')->render([ + 'project' => $project, + 'location' => $location, + 'framework_audit' => $frameworkAudit, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - frameworkAudit: projects/{project}/locations/{location}/frameworkAudits/{framework_audit} + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationFrameworkAudit: organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit} + * - projectLocationFrameworkAudit: projects/{project}/locations/{location}/frameworkAudits/{framework_audit} + * + * 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. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\CloudSecurityCompliance\V1\AuditClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new AuditClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @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. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($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); + } + + /** + * Creates an audit scope report for a framework. + * + * The async variant is {@see AuditClient::createFrameworkAuditAsync()} . + * + * @example samples/V1/AuditClient/create_framework_audit.php + * + * @param CreateFrameworkAuditRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFrameworkAudit(CreateFrameworkAuditRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateFrameworkAudit', $request, $callOptions)->wait(); + } + + /** + * Generates an audit scope report for a framework. + * + * The async variant is + * {@see AuditClient::generateFrameworkAuditScopeReportAsync()} . + * + * @example samples/V1/AuditClient/generate_framework_audit_scope_report.php + * + * @param GenerateFrameworkAuditScopeReportRequest $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 GenerateFrameworkAuditScopeReportResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateFrameworkAuditScopeReport(GenerateFrameworkAuditScopeReportRequest $request, array $callOptions = []): GenerateFrameworkAuditScopeReportResponse + { + return $this->startApiCall('GenerateFrameworkAuditScopeReport', $request, $callOptions)->wait(); + } + + /** + * Gets the details for a framework audit. + * + * The async variant is {@see AuditClient::getFrameworkAuditAsync()} . + * + * @example samples/V1/AuditClient/get_framework_audit.php + * + * @param GetFrameworkAuditRequest $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 FrameworkAudit + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFrameworkAudit(GetFrameworkAuditRequest $request, array $callOptions = []): FrameworkAudit + { + return $this->startApiCall('GetFrameworkAudit', $request, $callOptions)->wait(); + } + + /** + * Lists the framework audits for a given organization, folder, or project. + * + * The async variant is {@see AuditClient::listFrameworkAuditsAsync()} . + * + * @example samples/V1/AuditClient/list_framework_audits.php + * + * @param ListFrameworkAuditsRequest $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. + */ + public function listFrameworkAudits(ListFrameworkAuditsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFrameworkAudits', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see AuditClient::getLocationAsync()} . + * + * @example samples/V1/AuditClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see AuditClient::listLocationsAsync()} . + * + * @example samples/V1/AuditClient/list_locations.php + * + * @param ListLocationsRequest $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. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php new file mode 100644 index 000000000000..b07e35538e03 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php @@ -0,0 +1,400 @@ + calculateEffectiveCmEnrollmentAsync(CalculateEffectiveCmEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCmEnrollmentAsync(UpdateCmEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class CmEnrollmentServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cm_enrollment_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cm_enrollment resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted cm_enrollment resource. + */ + public static function cmEnrollmentName(string $organization, string $location): string + { + return self::getPathTemplate('cmEnrollment')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_cmEnrollment resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted organization_location_cmEnrollment resource. + */ + public static function organizationLocationCmEnrollmentName(string $organization, string $location): string + { + return self::getPathTemplate('organizationLocationCmEnrollment')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_cmEnrollment resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted project_location_cmEnrollment resource. + */ + public static function projectLocationCmEnrollmentName(string $project, string $location): string + { + return self::getPathTemplate('projectLocationCmEnrollment')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cmEnrollment: organizations/{organization}/locations/{location}/cmEnrollment + * - organizationLocationCmEnrollment: organizations/{organization}/locations/{location}/cmEnrollment + * - projectLocationCmEnrollment: projects/{project}/locations/{location}/cmEnrollment + * + * 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. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\CloudSecurityCompliance\V1\CmEnrollmentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CmEnrollmentServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @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. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $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); + } + + /** + * Calculates the effective Compliance Manager enrollment for a resource. + * An effective enrollment is either a direct enrollment of a + * resource (if it exists), or an enrollment of the closest parent of a + * resource that's enrolled in Compliance Manager. + * + * The async variant is + * {@see CmEnrollmentServiceClient::calculateEffectiveCmEnrollmentAsync()} . + * + * @example samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php + * + * @param CalculateEffectiveCmEnrollmentRequest $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 CalculateEffectiveCmEnrollmentResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function calculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest $request, array $callOptions = []): CalculateEffectiveCmEnrollmentResponse + { + return $this->startApiCall('CalculateEffectiveCmEnrollment', $request, $callOptions)->wait(); + } + + /** + * Updates the Compliance Manager enrollment for a resource to facilitate + * an audit. + * Use this method to enroll a resource in Compliance Manager or to + * create or update feature-specific configurations. + * + * The async variant is {@see CmEnrollmentServiceClient::updateCmEnrollmentAsync()} + * . + * + * @example samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php + * + * @param UpdateCmEnrollmentRequest $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 CmEnrollment + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCmEnrollment(UpdateCmEnrollmentRequest $request, array $callOptions = []): CmEnrollment + { + return $this->startApiCall('UpdateCmEnrollment', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see CmEnrollmentServiceClient::getLocationAsync()} . + * + * @example samples/V1/CmEnrollmentServiceClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see CmEnrollmentServiceClient::listLocationsAsync()} . + * + * @example samples/V1/CmEnrollmentServiceClient/list_locations.php + * + * @param ListLocationsRequest $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. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php new file mode 100644 index 000000000000..bc1836f86f54 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php @@ -0,0 +1,770 @@ + createCloudControlAsync(CreateCloudControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFrameworkAsync(CreateFrameworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCloudControlAsync(DeleteCloudControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFrameworkAsync(DeleteFrameworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCloudControlAsync(GetCloudControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFrameworkAsync(GetFrameworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCloudControlsAsync(ListCloudControlsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFrameworksAsync(ListFrameworksRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCloudControlAsync(UpdateCloudControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFrameworkAsync(UpdateFrameworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class ConfigClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Config'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/config_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/config_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/config_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/config_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cloud_control resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControl + * + * @return string The formatted cloud_control resource. + */ + public static function cloudControlName(string $organization, string $location, string $cloudControl): string + { + return self::getPathTemplate('cloudControl')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control' => $cloudControl, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a framework + * resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted framework resource. + */ + public static function frameworkName(string $organization, string $location, string $framework): string + { + return self::getPathTemplate('framework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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. + */ + 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 + * organization_location_cloud_control resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControl + * + * @return string The formatted organization_location_cloud_control resource. + */ + public static function organizationLocationCloudControlName(string $organization, string $location, string $cloudControl): string + { + return self::getPathTemplate('organizationLocationCloudControl')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control' => $cloudControl, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted organization_location_framework resource. + */ + public static function organizationLocationFrameworkName(string $organization, string $location, string $framework): string + { + return self::getPathTemplate('organizationLocationFramework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_cloud_control resource. + * + * @param string $project + * @param string $location + * @param string $cloudControl + * + * @return string The formatted project_location_cloud_control resource. + */ + public static function projectLocationCloudControlName(string $project, string $location, string $cloudControl): string + { + return self::getPathTemplate('projectLocationCloudControl')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_control' => $cloudControl, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework resource. + * + * @param string $project + * @param string $location + * @param string $framework + * + * @return string The formatted project_location_framework resource. + */ + public static function projectLocationFrameworkName(string $project, string $location, string $framework): string + { + return self::getPathTemplate('projectLocationFramework')->render([ + 'project' => $project, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationCloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - projectLocationCloudControl: projects/{project}/locations/{location}/cloudControls/{cloud_control} + * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} + * + * 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. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\CloudSecurityCompliance\V1\ConfigClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ConfigClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @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. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $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); + } + + /** + * Creates a custom cloud control in a given parent + * resource. + * You can't create built-in cloud controls because those are managed by + * Google. + * + * The async variant is {@see ConfigClient::createCloudControlAsync()} . + * + * @example samples/V1/ConfigClient/create_cloud_control.php + * + * @param CreateCloudControlRequest $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 CloudControl + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCloudControl(CreateCloudControlRequest $request, array $callOptions = []): CloudControl + { + return $this->startApiCall('CreateCloudControl', $request, $callOptions)->wait(); + } + + /** + * Creates a custom framework in a given parent resource. + * You can't create built-in frameworks because those are managed by + * Google. + * + * The async variant is {@see ConfigClient::createFrameworkAsync()} . + * + * @example samples/V1/ConfigClient/create_framework.php + * + * @param CreateFrameworkRequest $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 Framework + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFramework(CreateFrameworkRequest $request, array $callOptions = []): Framework + { + return $this->startApiCall('CreateFramework', $request, $callOptions)->wait(); + } + + /** + * Deletes a custom cloud control, including all its + * major and minor revisions. Consider the following: + * + * - You can't delete built-in cloud controls. You can only delete cloud + * controls with type `CUSTOM`. + * - You can't delete cloud controls if any of the versions are referenced + * by a framework. + * - You can't restore a deleted cloud control. This action is permanent. + * + * The async variant is {@see ConfigClient::deleteCloudControlAsync()} . + * + * @example samples/V1/ConfigClient/delete_cloud_control.php + * + * @param DeleteCloudControlRequest $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. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCloudControl(DeleteCloudControlRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteCloudControl', $request, $callOptions)->wait(); + } + + /** + * Deletes a custom framework, including all its major and + * minor revisions. Consider the following: + * + * - You can't delete built-in frameworks. You can only delete frameworks + * with type `CUSTOM`. + * - You can't delete frameworks that are deployed to a resource. + * - You can't restore a deleted framework. This action is permanent. + * + * The async variant is {@see ConfigClient::deleteFrameworkAsync()} . + * + * @example samples/V1/ConfigClient/delete_framework.php + * + * @param DeleteFrameworkRequest $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. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFramework(DeleteFrameworkRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFramework', $request, $callOptions)->wait(); + } + + /** + * Gets details about a cloud control. + * This method retrieves the latest major version of a cloud control that + * you identify by name. + * + * By default, the latest major version of the cloud control is returned. + * To retrieve a specific major version, include `major_revision_id` in + * the request. + * + * The async variant is {@see ConfigClient::getCloudControlAsync()} . + * + * @example samples/V1/ConfigClient/get_cloud_control.php + * + * @param GetCloudControlRequest $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 CloudControl + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCloudControl(GetCloudControlRequest $request, array $callOptions = []): CloudControl + { + return $this->startApiCall('GetCloudControl', $request, $callOptions)->wait(); + } + + /** + * Gets details about a framework. + * This method retrieves the latest major version of the framework. + * + * To retrieve a specific major version, include `major_revision_id` in + * the request. + * + * The async variant is {@see ConfigClient::getFrameworkAsync()} . + * + * @example samples/V1/ConfigClient/get_framework.php + * + * @param GetFrameworkRequest $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 Framework + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFramework(GetFrameworkRequest $request, array $callOptions = []): Framework + { + return $this->startApiCall('GetFramework', $request, $callOptions)->wait(); + } + + /** + * Lists the cloud controls (both built-in and custom) that are available + * in a given parent resource. The latest major version of each cloud control + * is returned. + * This method supports pagination. + * + * The async variant is {@see ConfigClient::listCloudControlsAsync()} . + * + * @example samples/V1/ConfigClient/list_cloud_controls.php + * + * @param ListCloudControlsRequest $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. + */ + public function listCloudControls(ListCloudControlsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCloudControls', $request, $callOptions); + } + + /** + * Lists the frameworks (both built-in and custom) that are available within + * the parent resource. The latest major version of each framework is + * returned. + * This method supports pagination. + * + * The async variant is {@see ConfigClient::listFrameworksAsync()} . + * + * @example samples/V1/ConfigClient/list_frameworks.php + * + * @param ListFrameworksRequest $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. + */ + public function listFrameworks(ListFrameworksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFrameworks', $request, $callOptions); + } + + /** + * Updates a custom cloud control. + * This method allows for partial updates of a cloud control. Use the + * `update_mask` to specify which fields to update. Consider the following: + * + * - If you provide an `update_mask`, only the fields that are specified + * in the mask are updated. + * - If you don't provide an `update_mask`, all the fields that are present + * in the request's `cloud_control` body are used to overwrite the existing + * resource. + * + * You can only update cloud controls with the `CUSTOM` type. + * A successful update creates a new version of the cloud control. + * + * The async variant is {@see ConfigClient::updateCloudControlAsync()} . + * + * @example samples/V1/ConfigClient/update_cloud_control.php + * + * @param UpdateCloudControlRequest $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 CloudControl + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCloudControl(UpdateCloudControlRequest $request, array $callOptions = []): CloudControl + { + return $this->startApiCall('UpdateCloudControl', $request, $callOptions)->wait(); + } + + /** + * Updates a custom framework. + * This method allows for partial updates of a framework. Use the + * `update_mask` to specify which fields to update. Consider the following: + * + * - If you provide an `update_mask`, only the fields that are specified + * in the mask are updated. + * - If you don't provide an `update_mask`, all the fields that are present + * in the request's `framework` body are used to overwrite the existing + * resource. + * + * You can only update frameworks with the `CUSTOM` type. + * A successful update creates a new version of the framework. + * + * The async variant is {@see ConfigClient::updateFrameworkAsync()} . + * + * @example samples/V1/ConfigClient/update_framework.php + * + * @param UpdateFrameworkRequest $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 Framework + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateFramework(UpdateFrameworkRequest $request, array $callOptions = []): Framework + { + return $this->startApiCall('UpdateFramework', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see ConfigClient::getLocationAsync()} . + * + * @example samples/V1/ConfigClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see ConfigClient::listLocationsAsync()} . + * + * @example samples/V1/ConfigClient/list_locations.php + * + * @param ListLocationsRequest $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. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php new file mode 100644 index 000000000000..fd2797c6020b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php @@ -0,0 +1,724 @@ + createFrameworkDeploymentAsync(CreateFrameworkDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFrameworkDeploymentAsync(DeleteFrameworkDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCloudControlDeploymentAsync(GetCloudControlDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFrameworkDeploymentAsync(GetFrameworkDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCloudControlDeploymentsAsync(ListCloudControlDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFrameworkDeploymentsAsync(ListFrameworkDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DeploymentClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Deployment'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/deployment_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/deployment_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/deployment_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/deployment_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cloud_control_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControlDeployment + * + * @return string The formatted cloud_control_deployment resource. + */ + public static function cloudControlDeploymentName(string $organization, string $location, string $cloudControlDeployment): string + { + return self::getPathTemplate('cloudControlDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control_deployment' => $cloudControlDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a framework + * resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted framework resource. + */ + public static function frameworkName(string $organization, string $location, string $framework): string + { + return self::getPathTemplate('framework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * framework_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $frameworkDeployment + * + * @return string The formatted framework_deployment resource. + */ + public static function frameworkDeploymentName(string $organization, string $location, string $frameworkDeployment): string + { + return self::getPathTemplate('frameworkDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework_deployment' => $frameworkDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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. + */ + 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 + * organization_location_cloud_control_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControlDeployment + * + * @return string The formatted organization_location_cloud_control_deployment resource. + */ + public static function organizationLocationCloudControlDeploymentName(string $organization, string $location, string $cloudControlDeployment): string + { + return self::getPathTemplate('organizationLocationCloudControlDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control_deployment' => $cloudControlDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted organization_location_framework resource. + */ + public static function organizationLocationFrameworkName(string $organization, string $location, string $framework): string + { + return self::getPathTemplate('organizationLocationFramework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $frameworkDeployment + * + * @return string The formatted organization_location_framework_deployment resource. + */ + public static function organizationLocationFrameworkDeploymentName(string $organization, string $location, string $frameworkDeployment): string + { + return self::getPathTemplate('organizationLocationFrameworkDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework_deployment' => $frameworkDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_cloud_control_deployment resource. + * + * @param string $project + * @param string $location + * @param string $cloudControlDeployment + * + * @return string The formatted project_location_cloud_control_deployment resource. + */ + public static function projectLocationCloudControlDeploymentName(string $project, string $location, string $cloudControlDeployment): string + { + return self::getPathTemplate('projectLocationCloudControlDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_control_deployment' => $cloudControlDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework resource. + * + * @param string $project + * @param string $location + * @param string $framework + * + * @return string The formatted project_location_framework resource. + */ + public static function projectLocationFrameworkName(string $project, string $location, string $framework): string + { + return self::getPathTemplate('projectLocationFramework')->render([ + 'project' => $project, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework_deployment resource. + * + * @param string $project + * @param string $location + * @param string $frameworkDeployment + * + * @return string The formatted project_location_framework_deployment resource. + */ + public static function projectLocationFrameworkDeploymentName(string $project, string $location, string $frameworkDeployment): string + { + return self::getPathTemplate('projectLocationFrameworkDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'framework_deployment' => $frameworkDeployment, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - cloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - frameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationCloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - organizationLocationFrameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} + * - projectLocationCloudControlDeployment: projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} + * - projectLocationFrameworkDeployment: projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment} + * + * 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. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\CloudSecurityCompliance\V1\DeploymentClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DeploymentClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @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. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($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); + } + + /** + * Creates a framework deployment in a given parent resource. A + * framework deployment lets you assign a particular framework version to an + * organization, folder, or project so that you can control and monitor + * those resources using the framework's cloud controls. + * + * The async variant is {@see DeploymentClient::createFrameworkDeploymentAsync()} . + * + * @example samples/V1/DeploymentClient/create_framework_deployment.php + * + * @param CreateFrameworkDeploymentRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFrameworkDeployment(CreateFrameworkDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateFrameworkDeployment', $request, $callOptions)->wait(); + } + + /** + * Deletes a framework deployment. + * + * The async variant is {@see DeploymentClient::deleteFrameworkDeploymentAsync()} . + * + * @example samples/V1/DeploymentClient/delete_framework_deployment.php + * + * @param DeleteFrameworkDeploymentRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFrameworkDeployment(DeleteFrameworkDeploymentRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteFrameworkDeployment', $request, $callOptions)->wait(); + } + + /** + * Gets details about a cloud control deployment. + * + * The async variant is {@see DeploymentClient::getCloudControlDeploymentAsync()} . + * + * @example samples/V1/DeploymentClient/get_cloud_control_deployment.php + * + * @param GetCloudControlDeploymentRequest $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 CloudControlDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCloudControlDeployment(GetCloudControlDeploymentRequest $request, array $callOptions = []): CloudControlDeployment + { + return $this->startApiCall('GetCloudControlDeployment', $request, $callOptions)->wait(); + } + + /** + * Gets details about a framework deployment. + * + * The async variant is {@see DeploymentClient::getFrameworkDeploymentAsync()} . + * + * @example samples/V1/DeploymentClient/get_framework_deployment.php + * + * @param GetFrameworkDeploymentRequest $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 FrameworkDeployment + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFrameworkDeployment(GetFrameworkDeploymentRequest $request, array $callOptions = []): FrameworkDeployment + { + return $this->startApiCall('GetFrameworkDeployment', $request, $callOptions)->wait(); + } + + /** + * Lists the cloud conrol deployments in a given parent resource. + * + * The async variant is {@see DeploymentClient::listCloudControlDeploymentsAsync()} + * . + * + * @example samples/V1/DeploymentClient/list_cloud_control_deployments.php + * + * @param ListCloudControlDeploymentsRequest $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. + */ + public function listCloudControlDeployments(ListCloudControlDeploymentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCloudControlDeployments', $request, $callOptions); + } + + /** + * Lists the framework deployments in a given parent resource. + * + * The async variant is {@see DeploymentClient::listFrameworkDeploymentsAsync()} . + * + * @example samples/V1/DeploymentClient/list_framework_deployments.php + * + * @param ListFrameworkDeploymentsRequest $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. + */ + public function listFrameworkDeployments(ListFrameworkDeploymentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFrameworkDeployments', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DeploymentClient::getLocationAsync()} . + * + * @example samples/V1/DeploymentClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DeploymentClient::listLocationsAsync()} . + * + * @example samples/V1/DeploymentClient/list_locations.php + * + * @param ListLocationsRequest $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. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php new file mode 100644 index 000000000000..3da0430ed283 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php @@ -0,0 +1,559 @@ + aggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface listControlComplianceSummariesAsync(ListControlComplianceSummariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFindingSummariesAsync(ListFindingSummariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFrameworkComplianceSummariesAsync(ListFrameworkComplianceSummariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class MonitoringClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Monitoring'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/monitoring_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/monitoring_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/monitoring_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/monitoring_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * folder_location resource. + * + * @param string $folder + * @param string $location + * + * @return string The formatted folder_location resource. + */ + public static function folderLocationName(string $folder, string $location): string + { + return self::getPathTemplate('folderLocation')->render([ + 'folder' => $folder, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * folder_location_framework_compliance_report resource. + * + * @param string $folder + * @param string $location + * @param string $frameworkComplianceReport + * + * @return string The formatted folder_location_framework_compliance_report resource. + */ + public static function folderLocationFrameworkComplianceReportName(string $folder, string $location, string $frameworkComplianceReport): string + { + return self::getPathTemplate('folderLocationFrameworkComplianceReport')->render([ + 'folder' => $folder, + 'location' => $location, + 'framework_compliance_report' => $frameworkComplianceReport, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * framework_compliance_report resource. + * + * @param string $project + * @param string $location + * @param string $frameworkComplianceReport + * + * @return string The formatted framework_compliance_report resource. + */ + public static function frameworkComplianceReportName(string $project, string $location, string $frameworkComplianceReport): string + { + return self::getPathTemplate('frameworkComplianceReport')->render([ + 'project' => $project, + 'location' => $location, + 'framework_compliance_report' => $frameworkComplianceReport, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * 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. + */ + 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 + * organization_location_framework_compliance_report resource. + * + * @param string $organization + * @param string $location + * @param string $frameworkComplianceReport + * + * @return string The formatted organization_location_framework_compliance_report resource. + */ + public static function organizationLocationFrameworkComplianceReportName(string $organization, string $location, string $frameworkComplianceReport): string + { + return self::getPathTemplate('organizationLocationFrameworkComplianceReport')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework_compliance_report' => $frameworkComplianceReport, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework_compliance_report resource. + * + * @param string $project + * @param string $location + * @param string $frameworkComplianceReport + * + * @return string The formatted project_location_framework_compliance_report resource. + */ + public static function projectLocationFrameworkComplianceReportName(string $project, string $location, string $frameworkComplianceReport): string + { + return self::getPathTemplate('projectLocationFrameworkComplianceReport')->render([ + 'project' => $project, + 'location' => $location, + 'framework_compliance_report' => $frameworkComplianceReport, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - folderLocation: folders/{folder}/locations/{location} + * - folderLocationFrameworkComplianceReport: folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} + * - frameworkComplianceReport: projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} + * - location: projects/{project}/locations/{location} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationFrameworkComplianceReport: organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} + * - projectLocationFrameworkComplianceReport: projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} + * + * 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. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\CloudSecurityCompliance\V1\MonitoringClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MonitoringClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @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. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $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 the aggregated compliance report over time for a given scope. + * + * The async variant is + * {@see MonitoringClient::aggregateFrameworkComplianceReportAsync()} . + * + * @example samples/V1/MonitoringClient/aggregate_framework_compliance_report.php + * + * @param AggregateFrameworkComplianceReportRequest $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 AggregateFrameworkComplianceReportResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function aggregateFrameworkComplianceReport(AggregateFrameworkComplianceReportRequest $request, array $callOptions = []): AggregateFrameworkComplianceReportResponse + { + return $this->startApiCall('AggregateFrameworkComplianceReport', $request, $callOptions)->wait(); + } + + /** + * Fetches the framework compliance report for a given scope. + * + * The async variant is + * {@see MonitoringClient::fetchFrameworkComplianceReportAsync()} . + * + * @example samples/V1/MonitoringClient/fetch_framework_compliance_report.php + * + * @param FetchFrameworkComplianceReportRequest $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 FrameworkComplianceReport + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest $request, array $callOptions = []): FrameworkComplianceReport + { + return $this->startApiCall('FetchFrameworkComplianceReport', $request, $callOptions)->wait(); + } + + /** + * Lists the control compliance summary for a given scope. + * + * The async variant is + * {@see MonitoringClient::listControlComplianceSummariesAsync()} . + * + * @example samples/V1/MonitoringClient/list_control_compliance_summaries.php + * + * @param ListControlComplianceSummariesRequest $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. + */ + public function listControlComplianceSummaries(ListControlComplianceSummariesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListControlComplianceSummaries', $request, $callOptions); + } + + /** + * Lists the finding summary by category for a given scope. + * + * The async variant is {@see MonitoringClient::listFindingSummariesAsync()} . + * + * @example samples/V1/MonitoringClient/list_finding_summaries.php + * + * @param ListFindingSummariesRequest $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. + */ + public function listFindingSummaries(ListFindingSummariesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFindingSummaries', $request, $callOptions); + } + + /** + * Lists the framework compliance summary for a given scope. + * + * The async variant is + * {@see MonitoringClient::listFrameworkComplianceSummariesAsync()} . + * + * @example samples/V1/MonitoringClient/list_framework_compliance_summaries.php + * + * @param ListFrameworkComplianceSummariesRequest $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. + */ + public function listFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFrameworkComplianceSummaries', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see MonitoringClient::getLocationAsync()} . + * + * @example samples/V1/MonitoringClient/get_location.php + * + * @param GetLocationRequest $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 Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see MonitoringClient::listLocationsAsync()} . + * + * @example samples/V1/MonitoringClient/list_locations.php + * + * @param ListLocationsRequest $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. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..97ea78469438 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json @@ -0,0 +1,239 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.cloudsecuritycompliance.v1", + "libraryPackage": "Google\\Cloud\\CloudSecurityCompliance\\V1", + "services": { + "Audit": { + "clients": { + "grpc": { + "libraryClient": "AuditGapicClient", + "rpcs": { + "CreateFrameworkAudit": { + "methods": [ + "createFrameworkAudit" + ] + }, + "GenerateFrameworkAuditScopeReport": { + "methods": [ + "generateFrameworkAuditScopeReport" + ] + }, + "GetFrameworkAudit": { + "methods": [ + "getFrameworkAudit" + ] + }, + "ListFrameworkAudits": { + "methods": [ + "listFrameworkAudits" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "CmEnrollmentService": { + "clients": { + "grpc": { + "libraryClient": "CmEnrollmentServiceGapicClient", + "rpcs": { + "CalculateEffectiveCmEnrollment": { + "methods": [ + "calculateEffectiveCmEnrollment" + ] + }, + "UpdateCmEnrollment": { + "methods": [ + "updateCmEnrollment" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "Config": { + "clients": { + "grpc": { + "libraryClient": "ConfigGapicClient", + "rpcs": { + "CreateCloudControl": { + "methods": [ + "createCloudControl" + ] + }, + "CreateFramework": { + "methods": [ + "createFramework" + ] + }, + "DeleteCloudControl": { + "methods": [ + "deleteCloudControl" + ] + }, + "DeleteFramework": { + "methods": [ + "deleteFramework" + ] + }, + "GetCloudControl": { + "methods": [ + "getCloudControl" + ] + }, + "GetFramework": { + "methods": [ + "getFramework" + ] + }, + "ListCloudControls": { + "methods": [ + "listCloudControls" + ] + }, + "ListFrameworks": { + "methods": [ + "listFrameworks" + ] + }, + "UpdateCloudControl": { + "methods": [ + "updateCloudControl" + ] + }, + "UpdateFramework": { + "methods": [ + "updateFramework" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "Deployment": { + "clients": { + "grpc": { + "libraryClient": "DeploymentGapicClient", + "rpcs": { + "CreateFrameworkDeployment": { + "methods": [ + "createFrameworkDeployment" + ] + }, + "DeleteFrameworkDeployment": { + "methods": [ + "deleteFrameworkDeployment" + ] + }, + "GetCloudControlDeployment": { + "methods": [ + "getCloudControlDeployment" + ] + }, + "GetFrameworkDeployment": { + "methods": [ + "getFrameworkDeployment" + ] + }, + "ListCloudControlDeployments": { + "methods": [ + "listCloudControlDeployments" + ] + }, + "ListFrameworkDeployments": { + "methods": [ + "listFrameworkDeployments" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + }, + "Monitoring": { + "clients": { + "grpc": { + "libraryClient": "MonitoringGapicClient", + "rpcs": { + "AggregateFrameworkComplianceReport": { + "methods": [ + "aggregateFrameworkComplianceReport" + ] + }, + "FetchFrameworkComplianceReport": { + "methods": [ + "fetchFrameworkComplianceReport" + ] + }, + "ListControlComplianceSummaries": { + "methods": [ + "listControlComplianceSummaries" + ] + }, + "ListFindingSummaries": { + "methods": [ + "listFindingSummaries" + ] + }, + "ListFrameworkComplianceSummaries": { + "methods": [ + "listFrameworkComplianceSummaries" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json new file mode 100644 index 000000000000..8847614942cc --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json @@ -0,0 +1,74 @@ +{ + "interfaces": { + "google.cloud.cloudsecuritycompliance.v1.Audit": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "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 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateFrameworkAudit": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateFrameworkAuditScopeReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetFrameworkAudit": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFrameworkAudits": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php new file mode 100644 index 000000000000..7438a998d28e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php @@ -0,0 +1,132 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Audit' => [ + 'CreateFrameworkAudit' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit', + 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GenerateFrameworkAuditScopeReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'scope', + 'fieldAccessors' => [ + 'getScope', + ], + ], + ], + ], + 'GetFrameworkAudit' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListFrameworkAudits' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFrameworkAudits', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkAuditsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'frameworkAudit' => 'projects/{project}/locations/{location}/frameworkAudits/{framework_audit}', + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationFrameworkAudit' => 'organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}', + 'projectLocationFrameworkAudit' => 'projects/{project}/locations/{location}/frameworkAudits/{framework_audit}', + ], + ], + ], +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php new file mode 100644 index 000000000000..1f63c54afb8a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php @@ -0,0 +1,227 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Audit' => [ + 'CreateFrameworkAudit' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkAudits', + 'body' => 'framework_audit', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkAudits', + 'body' => 'framework_audit', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkAudits', + 'body' => 'framework_audit', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GenerateFrameworkAuditScopeReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'scope' => [ + 'getters' => [ + 'getScope', + ], + ], + ], + ], + 'GetFrameworkAudit' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkAudits/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkAudits/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkAudits/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFrameworkAudits' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkAudits', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkAudits', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkAudits', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json new file mode 100644 index 000000000000..df283f576880 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService": { + "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": { + "CalculateEffectiveCmEnrollment": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCmEnrollment": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php new file mode 100644 index 000000000000..eafae016cd3f --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php @@ -0,0 +1,92 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService' => [ + 'CalculateEffectiveCmEnrollment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CalculateEffectiveCmEnrollmentResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateCmEnrollment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment', + 'headerParams' => [ + [ + 'keyName' => 'cm_enrollment.name', + 'fieldAccessors' => [ + 'getCmEnrollment', + 'getName', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'cmEnrollment' => 'organizations/{organization}/locations/{location}/cmEnrollment', + 'organizationLocationCmEnrollment' => 'organizations/{organization}/locations/{location}/cmEnrollment', + 'projectLocationCmEnrollment' => 'projects/{project}/locations/{location}/cmEnrollment', + ], + ], + ], +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php new file mode 100644 index 000000000000..5bb0f9753353 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php @@ -0,0 +1,183 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService' => [ + 'CalculateEffectiveCmEnrollment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cmEnrollment}:calculate', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=folders/*/locations/*/cmEnrollment}:calculate', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cmEnrollment}:calculate', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateCmEnrollment' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}', + 'body' => 'cm_enrollment', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}', + 'body' => 'cm_enrollment', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cm_enrollment.name=projects/*/locations/*/cmEnrollment}', + 'body' => 'cm_enrollment', + ], + ], + 'placeholders' => [ + 'cm_enrollment.name' => [ + 'getters' => [ + 'getCmEnrollment', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json new file mode 100644 index 000000000000..f6f92793809e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json @@ -0,0 +1,104 @@ +{ + "interfaces": { + "google.cloud.cloudsecuritycompliance.v1.Config": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "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 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateCloudControl": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateFramework": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCloudControl": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteFramework": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetCloudControl": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFramework": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCloudControls": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFrameworks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCloudControl": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateFramework": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php new file mode 100644 index 000000000000..a5457427909e --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php @@ -0,0 +1,210 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Config' => [ + 'CreateCloudControl' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFramework' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteCloudControl' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFramework' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudControl' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFramework' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCloudControls' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCloudControls', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFrameworks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCloudControl' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', + 'headerParams' => [ + [ + 'keyName' => 'cloud_control.name', + 'fieldAccessors' => [ + 'getCloudControl', + 'getName', + ], + ], + ], + ], + 'UpdateFramework' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', + 'headerParams' => [ + [ + 'keyName' => 'framework.name', + 'fieldAccessors' => [ + 'getFramework', + 'getName', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'cloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', + 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationCloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', + 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'projectLocationCloudControl' => 'projects/{project}/locations/{location}/cloudControls/{cloud_control}', + 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', + ], + ], + ], +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php new file mode 100644 index 000000000000..1a02c7d8eeee --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php @@ -0,0 +1,329 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Config' => [ + 'CreateCloudControl' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', + 'body' => 'cloud_control', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', + 'body' => 'cloud_control', + 'queryParams' => [ + 'cloud_control_id', + ], + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'cloud_control_id', + ], + ], + 'CreateFramework' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', + 'body' => 'framework', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', + 'body' => 'framework', + 'queryParams' => [ + 'framework_id', + ], + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'framework_id', + ], + ], + 'DeleteCloudControl' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFramework' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudControl' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFramework' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCloudControls' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCloudControl' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}', + 'body' => 'cloud_control', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}', + 'body' => 'cloud_control', + ], + ], + 'placeholders' => [ + 'cloud_control.name' => [ + 'getters' => [ + 'getCloudControl', + 'getName', + ], + ], + ], + ], + 'UpdateFramework' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{framework.name=organizations/*/locations/*/frameworks/*}', + 'body' => 'framework', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{framework.name=projects/*/locations/*/frameworks/*}', + 'body' => 'framework', + ], + ], + 'placeholders' => [ + 'framework.name' => [ + 'getters' => [ + 'getFramework', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json new file mode 100644 index 000000000000..7aee7b1a43f7 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json @@ -0,0 +1,84 @@ +{ + "interfaces": { + "google.cloud.cloudsecuritycompliance.v1.Deployment": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "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 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateFrameworkDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteFrameworkDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetCloudControlDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFrameworkDeployment": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCloudControlDeployments": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFrameworkDeployments": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php new file mode 100644 index 000000000000..2a2364f87632 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php @@ -0,0 +1,177 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Deployment' => [ + 'CreateFrameworkDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment', + 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFrameworkDeployment' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudControlDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFrameworkDeployment' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCloudControlDeployments' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCloudControlDeployments', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlDeploymentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworkDeployments' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFrameworkDeployments', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkDeploymentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'cloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'frameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationCloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'organizationLocationFrameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', + 'projectLocationCloudControlDeployment' => 'projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', + 'projectLocationFrameworkDeployment' => 'projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}', + ], + ], + ], +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php new file mode 100644 index 000000000000..a9e3ea422cce --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php @@ -0,0 +1,241 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Deployment' => [ + 'CreateFrameworkDeployment' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', + 'body' => 'framework_deployment', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', + 'body' => 'framework_deployment', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFrameworkDeployment' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudControlDeployment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControlDeployments/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFrameworkDeployment' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCloudControlDeployments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControlDeployments', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControlDeployments', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworkDeployments' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json new file mode 100644 index 000000000000..ce661a561da9 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json @@ -0,0 +1,69 @@ +{ + "interfaces": { + "google.cloud.cloudsecuritycompliance.v1.Monitoring": { + "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": { + "AggregateFrameworkComplianceReport": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "FetchFrameworkComplianceReport": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListControlComplianceSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFindingSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFrameworkComplianceSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php new file mode 100644 index 000000000000..40b012f42a16 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php @@ -0,0 +1,155 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Monitoring' => [ + 'AggregateFrameworkComplianceReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\AggregateFrameworkComplianceReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchFrameworkComplianceReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceReport', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListControlComplianceSummaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getControlComplianceSummaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListControlComplianceSummariesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFindingSummaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFindingSummaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFindingSummariesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworkComplianceSummaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFrameworkComplianceSummaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkComplianceSummariesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'folderLocation' => 'folders/{folder}/locations/{location}', + 'folderLocationFrameworkComplianceReport' => 'folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', + 'frameworkComplianceReport' => 'projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', + 'location' => 'projects/{project}/locations/{location}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationFrameworkComplianceReport' => 'organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', + 'projectLocationFrameworkComplianceReport' => 'projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', + ], + ], + ], +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php new file mode 100644 index 000000000000..9e2e0444d08a --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php @@ -0,0 +1,242 @@ + [ + 'google.cloud.cloudsecuritycompliance.v1.Monitoring' => [ + 'AggregateFrameworkComplianceReport' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregate', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregate', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchFrameworkComplianceReport' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetch', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetch', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListControlComplianceSummaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFindingSummaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/findingSummaries', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/findingSummaries', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/findingSummaries', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFrameworkComplianceSummaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummaries', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkComplianceSummaries', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php new file mode 100644 index 000000000000..68377c72b1a6 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php @@ -0,0 +1,646 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AuditClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AuditClient($options); + } + + /** @test */ + public function createFrameworkAuditTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkAuditTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $frameworkAuditId2 = 'frameworkAuditId22046715091'; + $complianceFramework = 'complianceFramework1384085210'; + $scope = 'scope109264468'; + $operationId = 'operationId-274116877'; + $expectedResponse = new FrameworkAudit(); + $expectedResponse->setName($name); + $expectedResponse->setFrameworkAuditId($frameworkAuditId2); + $expectedResponse->setComplianceFramework($complianceFramework); + $expectedResponse->setScope($scope); + $expectedResponse->setOperationId($operationId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFrameworkAuditTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkAudit = new FrameworkAudit(); + $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); + $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); + $request = (new CreateFrameworkAuditRequest()) + ->setParent($formattedParent) + ->setFrameworkAudit($frameworkAudit); + $response = $gapicClient->createFrameworkAudit($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFrameworkAudit(); + $this->assertProtobufEquals($frameworkAudit, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createFrameworkAuditExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkAuditTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkAudit = new FrameworkAudit(); + $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); + $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); + $request = (new CreateFrameworkAuditRequest()) + ->setParent($formattedParent) + ->setFrameworkAudit($frameworkAudit); + $response = $gapicClient->createFrameworkAudit($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function generateFrameworkAuditScopeReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $scopeReportContents = '-38'; + $name = 'name3373707'; + $complianceFramework2 = 'complianceFramework2-1333971955'; + $expectedResponse = new GenerateFrameworkAuditScopeReportResponse(); + $expectedResponse->setScopeReportContents($scopeReportContents); + $expectedResponse->setName($name); + $expectedResponse->setComplianceFramework($complianceFramework2); + $transport->addResponse($expectedResponse); + // Mock request + $scope = 'scope109264468'; + $reportFormat = Format::FORMAT_UNSPECIFIED; + $complianceFramework = 'complianceFramework1384085210'; + $request = (new GenerateFrameworkAuditScopeReportRequest()) + ->setScope($scope) + ->setReportFormat($reportFormat) + ->setComplianceFramework($complianceFramework); + $response = $gapicClient->generateFrameworkAuditScopeReport($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.cloudsecuritycompliance.v1.Audit/GenerateFrameworkAuditScopeReport', $actualFuncCall); + $actualValue = $actualRequestObject->getScope(); + $this->assertProtobufEquals($scope, $actualValue); + $actualValue = $actualRequestObject->getReportFormat(); + $this->assertProtobufEquals($reportFormat, $actualValue); + $actualValue = $actualRequestObject->getComplianceFramework(); + $this->assertProtobufEquals($complianceFramework, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateFrameworkAuditScopeReportExceptionTest() + { + $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 + $scope = 'scope109264468'; + $reportFormat = Format::FORMAT_UNSPECIFIED; + $complianceFramework = 'complianceFramework1384085210'; + $request = (new GenerateFrameworkAuditScopeReportRequest()) + ->setScope($scope) + ->setReportFormat($reportFormat) + ->setComplianceFramework($complianceFramework); + try { + $gapicClient->generateFrameworkAuditScopeReport($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 getFrameworkAuditTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $frameworkAuditId = 'frameworkAuditId-234741472'; + $complianceFramework = 'complianceFramework1384085210'; + $scope = 'scope109264468'; + $operationId = 'operationId-274116877'; + $expectedResponse = new FrameworkAudit(); + $expectedResponse->setName($name2); + $expectedResponse->setFrameworkAuditId($frameworkAuditId); + $expectedResponse->setComplianceFramework($complianceFramework); + $expectedResponse->setScope($scope); + $expectedResponse->setOperationId($operationId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); + $request = (new GetFrameworkAuditRequest()) + ->setName($formattedName); + $response = $gapicClient->getFrameworkAudit($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.cloudsecuritycompliance.v1.Audit/GetFrameworkAudit', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFrameworkAuditExceptionTest() + { + $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->frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); + $request = (new GetFrameworkAuditRequest()) + ->setName($formattedName); + try { + $gapicClient->getFrameworkAudit($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 listFrameworkAuditsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $frameworkAuditsElement = new FrameworkAudit(); + $frameworkAudits = [ + $frameworkAuditsElement, + ]; + $expectedResponse = new ListFrameworkAuditsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFrameworkAudits($frameworkAudits); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFrameworkAuditsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFrameworkAudits($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFrameworkAudits()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/ListFrameworkAudits', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFrameworkAuditsExceptionTest() + { + $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 ListFrameworkAuditsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFrameworkAudits($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createFrameworkAuditAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkAuditTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $frameworkAuditId2 = 'frameworkAuditId22046715091'; + $complianceFramework = 'complianceFramework1384085210'; + $scope = 'scope109264468'; + $operationId = 'operationId-274116877'; + $expectedResponse = new FrameworkAudit(); + $expectedResponse->setName($name); + $expectedResponse->setFrameworkAuditId($frameworkAuditId2); + $expectedResponse->setComplianceFramework($complianceFramework); + $expectedResponse->setScope($scope); + $expectedResponse->setOperationId($operationId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFrameworkAuditTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkAudit = new FrameworkAudit(); + $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); + $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); + $request = (new CreateFrameworkAuditRequest()) + ->setParent($formattedParent) + ->setFrameworkAudit($frameworkAudit); + $response = $gapicClient->createFrameworkAuditAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFrameworkAudit(); + $this->assertProtobufEquals($frameworkAudit, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php new file mode 100644 index 000000000000..1b1e97db4581 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php @@ -0,0 +1,347 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CmEnrollmentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CmEnrollmentServiceClient($options); + } + + /** @test */ + public function calculateEffectiveCmEnrollmentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CalculateEffectiveCmEnrollmentResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); + $request = (new CalculateEffectiveCmEnrollmentRequest()) + ->setName($formattedName); + $response = $gapicClient->calculateEffectiveCmEnrollment($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.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function calculateEffectiveCmEnrollmentExceptionTest() + { + $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->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); + $request = (new CalculateEffectiveCmEnrollmentRequest()) + ->setName($formattedName); + try { + $gapicClient->calculateEffectiveCmEnrollment($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 updateCmEnrollmentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $enrolled = false; + $expectedResponse = new CmEnrollment(); + $expectedResponse->setName($name); + $expectedResponse->setEnrolled($enrolled); + $transport->addResponse($expectedResponse); + // Mock request + $cmEnrollment = new CmEnrollment(); + $request = (new UpdateCmEnrollmentRequest()) + ->setCmEnrollment($cmEnrollment); + $response = $gapicClient->updateCmEnrollment($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.cloudsecuritycompliance.v1.CmEnrollmentService/UpdateCmEnrollment', $actualFuncCall); + $actualValue = $actualRequestObject->getCmEnrollment(); + $this->assertProtobufEquals($cmEnrollment, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCmEnrollmentExceptionTest() + { + $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 + $cmEnrollment = new CmEnrollment(); + $request = (new UpdateCmEnrollmentRequest()) + ->setCmEnrollment($cmEnrollment); + try { + $gapicClient->updateCmEnrollment($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 calculateEffectiveCmEnrollmentAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CalculateEffectiveCmEnrollmentResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); + $request = (new CalculateEffectiveCmEnrollmentRequest()) + ->setName($formattedName); + $response = $gapicClient->calculateEffectiveCmEnrollmentAsync($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.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php new file mode 100644 index 000000000000..e5017e9516d3 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php @@ -0,0 +1,990 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ConfigClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ConfigClient($options); + } + + /** @test */ + public function createCloudControlTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $majorRevisionId = 612576889; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $findingCategory = 'findingCategory1739472116'; + $remediationSteps = 'remediationSteps-161402227'; + $expectedResponse = new CloudControl(); + $expectedResponse->setName($name); + $expectedResponse->setMajorRevisionId($majorRevisionId); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setFindingCategory($findingCategory); + $expectedResponse->setRemediationSteps($remediationSteps); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $cloudControlId = 'cloudControlId2101815175'; + $cloudControl = new CloudControl(); + $cloudControlName = 'cloudControlName328508435'; + $cloudControl->setName($cloudControlName); + $request = (new CreateCloudControlRequest()) + ->setParent($formattedParent) + ->setCloudControlId($cloudControlId) + ->setCloudControl($cloudControl); + $response = $gapicClient->createCloudControl($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.cloudsecuritycompliance.v1.Config/CreateCloudControl', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCloudControlId(); + $this->assertProtobufEquals($cloudControlId, $actualValue); + $actualValue = $actualRequestObject->getCloudControl(); + $this->assertProtobufEquals($cloudControl, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCloudControlExceptionTest() + { + $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]'); + $cloudControlId = 'cloudControlId2101815175'; + $cloudControl = new CloudControl(); + $cloudControlName = 'cloudControlName328508435'; + $cloudControl->setName($cloudControlName); + $request = (new CreateCloudControlRequest()) + ->setParent($formattedParent) + ->setCloudControlId($cloudControlId) + ->setCloudControl($cloudControl); + try { + $gapicClient->createCloudControl($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 createFrameworkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $majorRevisionId = 612576889; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Framework(); + $expectedResponse->setName($name); + $expectedResponse->setMajorRevisionId($majorRevisionId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkId = 'frameworkId1716868860'; + $framework = new Framework(); + $frameworkName = 'frameworkName1682813353'; + $framework->setName($frameworkName); + $request = (new CreateFrameworkRequest()) + ->setParent($formattedParent) + ->setFrameworkId($frameworkId) + ->setFramework($framework); + $response = $gapicClient->createFramework($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.cloudsecuritycompliance.v1.Config/CreateFramework', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFrameworkId(); + $this->assertProtobufEquals($frameworkId, $actualValue); + $actualValue = $actualRequestObject->getFramework(); + $this->assertProtobufEquals($framework, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFrameworkExceptionTest() + { + $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]'); + $frameworkId = 'frameworkId1716868860'; + $framework = new Framework(); + $frameworkName = 'frameworkName1682813353'; + $framework->setName($frameworkName); + $request = (new CreateFrameworkRequest()) + ->setParent($formattedParent) + ->setFrameworkId($frameworkId) + ->setFramework($framework); + try { + $gapicClient->createFramework($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 deleteCloudControlTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + $request = (new DeleteCloudControlRequest()) + ->setName($formattedName); + $gapicClient->deleteCloudControl($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/DeleteCloudControl', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteCloudControlExceptionTest() + { + $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->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + $request = (new DeleteCloudControlRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteCloudControl($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 deleteFrameworkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $request = (new DeleteFrameworkRequest()) + ->setName($formattedName); + $gapicClient->deleteFramework($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/DeleteFramework', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFrameworkExceptionTest() + { + $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->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $request = (new DeleteFrameworkRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFramework($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 getCloudControlTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $majorRevisionId2 = 275873772; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $findingCategory = 'findingCategory1739472116'; + $remediationSteps = 'remediationSteps-161402227'; + $expectedResponse = new CloudControl(); + $expectedResponse->setName($name2); + $expectedResponse->setMajorRevisionId($majorRevisionId2); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setFindingCategory($findingCategory); + $expectedResponse->setRemediationSteps($remediationSteps); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + $request = (new GetCloudControlRequest()) + ->setName($formattedName); + $response = $gapicClient->getCloudControl($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.cloudsecuritycompliance.v1.Config/GetCloudControl', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudControlExceptionTest() + { + $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->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); + $request = (new GetCloudControlRequest()) + ->setName($formattedName); + try { + $gapicClient->getCloudControl($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 getFrameworkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $majorRevisionId2 = 275873772; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Framework(); + $expectedResponse->setName($name2); + $expectedResponse->setMajorRevisionId($majorRevisionId2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $request = (new GetFrameworkRequest()) + ->setName($formattedName); + $response = $gapicClient->getFramework($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.cloudsecuritycompliance.v1.Config/GetFramework', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFrameworkExceptionTest() + { + $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->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $request = (new GetFrameworkRequest()) + ->setName($formattedName); + try { + $gapicClient->getFramework($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 listCloudControlsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $cloudControlsElement = new CloudControl(); + $cloudControls = [ + $cloudControlsElement, + ]; + $expectedResponse = new ListCloudControlsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCloudControls($cloudControls); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCloudControlsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCloudControls($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCloudControls()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/ListCloudControls', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudControlsExceptionTest() + { + $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 ListCloudControlsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCloudControls($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 listFrameworksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $frameworksElement = new Framework(); + $frameworks = [ + $frameworksElement, + ]; + $expectedResponse = new ListFrameworksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFrameworks($frameworks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFrameworksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFrameworks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFrameworks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/ListFrameworks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFrameworksExceptionTest() + { + $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 ListFrameworksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFrameworks($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 updateCloudControlTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $majorRevisionId = 612576889; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $findingCategory = 'findingCategory1739472116'; + $remediationSteps = 'remediationSteps-161402227'; + $expectedResponse = new CloudControl(); + $expectedResponse->setName($name); + $expectedResponse->setMajorRevisionId($majorRevisionId); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setFindingCategory($findingCategory); + $expectedResponse->setRemediationSteps($remediationSteps); + $transport->addResponse($expectedResponse); + // Mock request + $cloudControl = new CloudControl(); + $cloudControlName = 'cloudControlName328508435'; + $cloudControl->setName($cloudControlName); + $request = (new UpdateCloudControlRequest()) + ->setCloudControl($cloudControl); + $response = $gapicClient->updateCloudControl($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.cloudsecuritycompliance.v1.Config/UpdateCloudControl', $actualFuncCall); + $actualValue = $actualRequestObject->getCloudControl(); + $this->assertProtobufEquals($cloudControl, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCloudControlExceptionTest() + { + $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 + $cloudControl = new CloudControl(); + $cloudControlName = 'cloudControlName328508435'; + $cloudControl->setName($cloudControlName); + $request = (new UpdateCloudControlRequest()) + ->setCloudControl($cloudControl); + try { + $gapicClient->updateCloudControl($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 updateFrameworkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $majorRevisionId2 = 275873772; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new Framework(); + $expectedResponse->setName($name); + $expectedResponse->setMajorRevisionId($majorRevisionId2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $framework = new Framework(); + $frameworkName = 'frameworkName1682813353'; + $framework->setName($frameworkName); + $request = (new UpdateFrameworkRequest()) + ->setFramework($framework); + $response = $gapicClient->updateFramework($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.cloudsecuritycompliance.v1.Config/UpdateFramework', $actualFuncCall); + $actualValue = $actualRequestObject->getFramework(); + $this->assertProtobufEquals($framework, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFrameworkExceptionTest() + { + $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 + $framework = new Framework(); + $frameworkName = 'frameworkName1682813353'; + $framework->setName($frameworkName); + $request = (new UpdateFrameworkRequest()) + ->setFramework($framework); + try { + $gapicClient->updateFramework($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createCloudControlAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $majorRevisionId = 612576889; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $findingCategory = 'findingCategory1739472116'; + $remediationSteps = 'remediationSteps-161402227'; + $expectedResponse = new CloudControl(); + $expectedResponse->setName($name); + $expectedResponse->setMajorRevisionId($majorRevisionId); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setFindingCategory($findingCategory); + $expectedResponse->setRemediationSteps($remediationSteps); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $cloudControlId = 'cloudControlId2101815175'; + $cloudControl = new CloudControl(); + $cloudControlName = 'cloudControlName328508435'; + $cloudControl->setName($cloudControlName); + $request = (new CreateCloudControlRequest()) + ->setParent($formattedParent) + ->setCloudControlId($cloudControlId) + ->setCloudControl($cloudControl); + $response = $gapicClient->createCloudControlAsync($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.cloudsecuritycompliance.v1.Config/CreateCloudControl', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCloudControlId(); + $this->assertProtobufEquals($cloudControlId, $actualValue); + $actualValue = $actualRequestObject->getCloudControl(); + $this->assertProtobufEquals($cloudControl, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php new file mode 100644 index 000000000000..058ed616e83b --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php @@ -0,0 +1,853 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DeploymentClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DeploymentClient($options); + } + + /** @test */ + public function createFrameworkDeploymentTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $computedTargetResource = 'computedTargetResource956813770'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; + $expectedResponse = new FrameworkDeployment(); + $expectedResponse->setName($name); + $expectedResponse->setComputedTargetResource($computedTargetResource); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFrameworkDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkDeployment = new FrameworkDeployment(); + $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); + $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); + $frameworkDeploymentFramework = new FrameworkReference(); + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $frameworkDeploymentFramework->setFramework($frameworkFramework); + $frameworkDeployment->setFramework($frameworkDeploymentFramework); + $frameworkDeploymentCloudControlMetadata = []; + $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); + $request = (new CreateFrameworkDeploymentRequest()) + ->setParent($formattedParent) + ->setFrameworkDeployment($frameworkDeployment); + $response = $gapicClient->createFrameworkDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/CreateFrameworkDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFrameworkDeployment(); + $this->assertProtobufEquals($frameworkDeployment, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createFrameworkDeploymentExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkDeployment = new FrameworkDeployment(); + $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); + $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); + $frameworkDeploymentFramework = new FrameworkReference(); + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $frameworkDeploymentFramework->setFramework($frameworkFramework); + $frameworkDeployment->setFramework($frameworkDeploymentFramework); + $frameworkDeploymentCloudControlMetadata = []; + $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); + $request = (new CreateFrameworkDeploymentRequest()) + ->setParent($formattedParent) + ->setFrameworkDeployment($frameworkDeployment); + $response = $gapicClient->createFrameworkDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteFrameworkDeploymentTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFrameworkDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteFrameworkDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); + $request = (new DeleteFrameworkDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFrameworkDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/DeleteFrameworkDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFrameworkDeploymentTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteFrameworkDeploymentExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFrameworkDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); + $request = (new DeleteFrameworkDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFrameworkDeployment($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFrameworkDeploymentTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getCloudControlDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $targetResource = 'targetResource-69552388'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; + $expectedResponse = new CloudControlDeployment(); + $expectedResponse->setName($name2); + $expectedResponse->setTargetResource($targetResource); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cloudControlDeploymentName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL_DEPLOYMENT]'); + $request = (new GetCloudControlDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->getCloudControlDeployment($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.cloudsecuritycompliance.v1.Deployment/GetCloudControlDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudControlDeploymentExceptionTest() + { + $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->cloudControlDeploymentName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL_DEPLOYMENT]'); + $request = (new GetCloudControlDeploymentRequest()) + ->setName($formattedName); + try { + $gapicClient->getCloudControlDeployment($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 getFrameworkDeploymentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $computedTargetResource = 'computedTargetResource956813770'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; + $expectedResponse = new FrameworkDeployment(); + $expectedResponse->setName($name2); + $expectedResponse->setComputedTargetResource($computedTargetResource); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); + $request = (new GetFrameworkDeploymentRequest()) + ->setName($formattedName); + $response = $gapicClient->getFrameworkDeployment($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.cloudsecuritycompliance.v1.Deployment/GetFrameworkDeployment', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFrameworkDeploymentExceptionTest() + { + $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->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); + $request = (new GetFrameworkDeploymentRequest()) + ->setName($formattedName); + try { + $gapicClient->getFrameworkDeployment($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 listCloudControlDeploymentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $cloudControlDeploymentsElement = new CloudControlDeployment(); + $cloudControlDeployments = [ + $cloudControlDeploymentsElement, + ]; + $expectedResponse = new ListCloudControlDeploymentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCloudControlDeployments($cloudControlDeployments); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListCloudControlDeploymentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCloudControlDeployments($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCloudControlDeployments()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/ListCloudControlDeployments', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudControlDeploymentsExceptionTest() + { + $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 ListCloudControlDeploymentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCloudControlDeployments($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 listFrameworkDeploymentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $frameworkDeploymentsElement = new FrameworkDeployment(); + $frameworkDeployments = [ + $frameworkDeploymentsElement, + ]; + $expectedResponse = new ListFrameworkDeploymentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFrameworkDeployments($frameworkDeployments); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFrameworkDeploymentsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFrameworkDeployments($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFrameworkDeployments()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/ListFrameworkDeployments', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFrameworkDeploymentsExceptionTest() + { + $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 ListFrameworkDeploymentsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFrameworkDeployments($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 createFrameworkDeploymentAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $computedTargetResource = 'computedTargetResource956813770'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; + $expectedResponse = new FrameworkDeployment(); + $expectedResponse->setName($name); + $expectedResponse->setComputedTargetResource($computedTargetResource); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createFrameworkDeploymentTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $frameworkDeployment = new FrameworkDeployment(); + $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); + $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); + $frameworkDeploymentFramework = new FrameworkReference(); + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); + $frameworkDeploymentFramework->setFramework($frameworkFramework); + $frameworkDeployment->setFramework($frameworkDeploymentFramework); + $frameworkDeploymentCloudControlMetadata = []; + $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); + $request = (new CreateFrameworkDeploymentRequest()) + ->setParent($formattedParent) + ->setFrameworkDeployment($frameworkDeployment); + $response = $gapicClient->createFrameworkDeploymentAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/CreateFrameworkDeployment', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getFrameworkDeployment(); + $this->assertProtobufEquals($frameworkDeployment, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php new file mode 100644 index 000000000000..c331c19c9481 --- /dev/null +++ b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php @@ -0,0 +1,580 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MonitoringClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MonitoringClient($options); + } + + /** @test */ + public function aggregateFrameworkComplianceReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AggregateFrameworkComplianceReportResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new AggregateFrameworkComplianceReportRequest()) + ->setName($formattedName); + $response = $gapicClient->aggregateFrameworkComplianceReport($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.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function aggregateFrameworkComplianceReportExceptionTest() + { + $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new AggregateFrameworkComplianceReportRequest()) + ->setName($formattedName); + try { + $gapicClient->aggregateFrameworkComplianceReport($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 fetchFrameworkComplianceReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $framework = 'framework546173438'; + $frameworkDescription = 'frameworkDescription676251451'; + $frameworkDisplayName = 'frameworkDisplayName-1269602167'; + $name2 = 'name2-1052831874'; + $majorRevisionId = 612576889; + $minorRevisionId = 1736456587; + $expectedResponse = new FrameworkComplianceReport(); + $expectedResponse->setFramework($framework); + $expectedResponse->setFrameworkDescription($frameworkDescription); + $expectedResponse->setFrameworkDisplayName($frameworkDisplayName); + $expectedResponse->setName($name2); + $expectedResponse->setMajorRevisionId($majorRevisionId); + $expectedResponse->setMinorRevisionId($minorRevisionId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new FetchFrameworkComplianceReportRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchFrameworkComplianceReport($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.cloudsecuritycompliance.v1.Monitoring/FetchFrameworkComplianceReport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFrameworkComplianceReportExceptionTest() + { + $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new FetchFrameworkComplianceReportRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchFrameworkComplianceReport($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 listControlComplianceSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $controlComplianceSummariesElement = new ControlComplianceSummary(); + $controlComplianceSummaries = [ + $controlComplianceSummariesElement, + ]; + $expectedResponse = new ListControlComplianceSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setControlComplianceSummaries($controlComplianceSummaries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new ListControlComplianceSummariesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listControlComplianceSummaries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getControlComplianceSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListControlComplianceSummaries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listControlComplianceSummariesExceptionTest() + { + $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new ListControlComplianceSummariesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listControlComplianceSummaries($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 listFindingSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $findingSummariesElement = new FindingSummary(); + $findingSummaries = [ + $findingSummariesElement, + ]; + $expectedResponse = new ListFindingSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFindingSummaries($findingSummaries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFindingSummariesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFindingSummaries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFindingSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFindingSummaries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFindingSummariesExceptionTest() + { + $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 ListFindingSummariesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFindingSummaries($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 listFrameworkComplianceSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $frameworkComplianceSummariesElement = new FrameworkComplianceSummary(); + $frameworkComplianceSummaries = [ + $frameworkComplianceSummariesElement, + ]; + $expectedResponse = new ListFrameworkComplianceSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFrameworkComplianceSummaries($frameworkComplianceSummaries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFrameworkComplianceSummariesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFrameworkComplianceSummaries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFrameworkComplianceSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFrameworkComplianceSummaries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFrameworkComplianceSummariesExceptionTest() + { + $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 ListFrameworkComplianceSummariesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFrameworkComplianceSummaries($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 getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $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); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($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 listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $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); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($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 aggregateFrameworkComplianceReportAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AggregateFrameworkComplianceReportResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); + $request = (new AggregateFrameworkComplianceReportRequest()) + ->setName($formattedName); + $response = $gapicClient->aggregateFrameworkComplianceReportAsync($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.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From c45b111ea77887f2a50bcd74446d8105e9cb1dc6 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Apr 2026 09:10:17 +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 --- SecurityCompliance/metadata/V1/Common.php | 2 +- SecurityCompliance/metadata/V1/Config.php | 2 +- SecurityCompliance/metadata/V1/Deployment.php | 2 +- SecurityCompliance/metadata/V1/Monitoring.php | 3 +- .../samples/V1/AuditClient/list_locations.php | 15 + .../list_locations.php | 15 + .../V1/ConfigClient/create_cloud_control.php | 14 +- .../V1/ConfigClient/create_framework.php | 14 +- .../V1/ConfigClient/delete_cloud_control.php | 8 +- .../V1/ConfigClient/delete_framework.php | 7 +- .../V1/ConfigClient/get_cloud_control.php | 8 +- .../samples/V1/ConfigClient/get_framework.php | 8 +- .../V1/ConfigClient/list_cloud_controls.php | 6 +- .../V1/ConfigClient/list_frameworks.php | 6 +- .../V1/ConfigClient/list_locations.php | 15 + .../V1/ConfigClient/update_cloud_control.php | 8 +- .../V1/ConfigClient/update_framework.php | 8 +- .../create_framework_deployment.php | 28 +- .../delete_framework_deployment.php | 4 +- .../get_cloud_control_deployment.php | 4 +- .../get_framework_deployment.php | 4 +- .../list_cloud_control_deployments.php | 5 +- .../list_framework_deployments.php | 4 +- .../V1/DeploymentClient/list_locations.php | 15 + .../V1/MonitoringClient/list_locations.php | 15 + .../src/V1/Client/AuditClient.php | 15 + .../V1/Client/CmEnrollmentServiceClient.php | 15 + .../src/V1/Client/ConfigClient.php | 122 +++ .../src/V1/Client/DeploymentClient.php | 188 ++++ .../src/V1/Client/MonitoringClient.php | 15 + SecurityCompliance/src/V1/CloudControl.php | 28 +- .../src/V1/CloudControlCategory.php | 28 + .../src/V1/CloudControlDeployment.php | 16 +- .../V1/CloudControlDeploymentReference.php | 16 +- .../src/V1/CloudControlDetails.php | 24 +- .../src}/V1/Control.php | 0 .../src}/V1/Control/Family.php | 0 .../src/V1/CreateCloudControlRequest.php | 26 +- .../V1/CreateFrameworkDeploymentRequest.php | 20 +- .../src/V1/CreateFrameworkRequest.php | 26 +- .../src/V1/DeleteCloudControlRequest.php | 36 +- .../V1/DeleteFrameworkDeploymentRequest.php | 20 +- .../src/V1/DeleteFrameworkRequest.php | 31 +- SecurityCompliance/src/V1/DeploymentState.php | 7 + .../FetchFrameworkComplianceReportRequest.php | 34 + SecurityCompliance/src/V1/Framework.php | 28 +- .../src/V1/FrameworkComplianceSummary.php | 78 ++ .../V1/FrameworkComplianceSummaryView.php | 0 .../src/V1/FrameworkDeployment.php | 16 +- .../src/V1/FrameworkDeploymentReference.php | 24 +- .../src/V1/FrameworkReference.php | 11 +- .../V1/GetCloudControlDeploymentRequest.php | 20 +- .../src/V1/GetCloudControlRequest.php | 36 +- .../src/V1/GetFrameworkDeploymentRequest.php | 20 +- .../src/V1/GetFrameworkRequest.php | 36 +- .../V1/ListCloudControlDeploymentsRequest.php | 25 +- .../src/V1/ListCloudControlsRequest.php | 26 +- ...istFrameworkComplianceSummariesRequest.php | 34 + .../V1/ListFrameworkDeploymentsRequest.php | 20 +- .../src/V1/ListFrameworksRequest.php | 26 +- SecurityCompliance/src/V1/ParamValue.php | 50 +- .../src}/V1/Trend.php | 0 .../V1/resources/audit_rest_client_config.php | 37 + ..._enrollment_service_rest_client_config.php | 37 + .../V1/resources/config_descriptor_config.php | 5 + .../resources/config_rest_client_config.php | 107 ++ .../deployment_descriptor_config.php | 8 + .../deployment_rest_client_config.php | 74 ++ .../monitoring_rest_client_config.php | 37 + .../Unit/V1/Client/DeploymentClientTest.php | 6 +- .../Cloudsecuritycompliance/V1/Audit.php | 31 - .../V1/CmEnrollmentService.php | 29 - .../Cloudsecuritycompliance/V1/Common.php | 27 - .../Cloudsecuritycompliance/V1/Config.php | 31 - .../Cloudsecuritycompliance/V1/Deployment.php | 32 - .../Cloudsecuritycompliance/V1/Monitoring.php | 32 - ...regateFrameworkComplianceReportRequest.php | 179 ---- ...egateFrameworkComplianceReportResponse.php | 67 -- .../V1/AggregatedComplianceReport.php | 121 --- .../V1/AllowedValues.php | 67 -- .../V1/AttributeSubstitutionRule.php | 71 -- .../V1/AuditConfig.php | 71 -- .../V1/AuditConfig/CmEligibleDestination.php | 79 -- .../V1/BucketDestination.php | 101 -- .../V1/BucketDestination/Format.php | 54 - .../V1/CELExpression.php | 123 --- .../CalculateEffectiveCmEnrollmentRequest.php | 103 -- ...CalculateEffectiveCmEnrollmentResponse.php | 77 -- .../V1/CloudControl.php | 614 ----------- .../V1/CloudControl/Type.php | 61 -- .../V1/CloudControlAssessmentDetails.php | 101 -- .../V1/CloudControlAuditDetails.php | 247 ----- .../V1/CloudControlCategory.php | 180 ---- .../V1/CloudControlDeployment.php | 554 ---------- .../V1/CloudControlDeploymentReference.php | 83 -- .../V1/CloudControlDetails.php | 163 --- .../V1/CloudControlGroupAuditDetails.php | 495 --------- .../V1/CloudControlMetadata.php | 112 -- .../V1/CloudControlReport.php | 584 ----------- .../V1/CloudProvider.php | 68 -- .../V1/CmEnrollment.php | 173 --- .../V1/ComplianceState.php | 82 -- .../V1/ControlAssessmentDetails.php | 173 --- .../V1/ControlComplianceSummary.php | 411 -------- .../V1/ControlFamily.php | 101 -- .../V1/CreateCloudControlRequest.php | 189 ---- .../V1/CreateFrameworkAuditRequest.php | 201 ---- .../V1/CreateFrameworkDeploymentRequest.php | 193 ---- .../V1/CreateFrameworkRequest.php | 184 ---- .../V1/DeleteCloudControlRequest.php | 107 -- .../V1/DeleteFrameworkDeploymentRequest.php | 160 --- .../V1/DeleteFrameworkRequest.php | 102 -- .../V1/DeploymentState.php | 109 -- .../V1/EnforcementMode.php | 68 -- .../V1/EvaluationState.php | 68 -- .../V1/EvidenceDetails.php | 135 --- .../FetchFrameworkComplianceReportRequest.php | 159 --- .../V1/FindingClass.php | 117 --- .../V1/FindingDetails.php | 189 ---- .../V1/FindingSummary.php | 281 ----- .../V1/FolderCreationConfig.php | 106 -- .../CloudSecurityCompliance/V1/Framework.php | 411 -------- .../V1/Framework/FrameworkType.php | 61 -- .../V1/FrameworkAudit.php | 515 --------- .../V1/FrameworkAudit/State.php | 82 -- .../V1/FrameworkAuditDestination.php | 75 -- .../V1/FrameworkCategory.php | 82 -- .../V1/FrameworkComplianceReport.php | 461 -------- .../V1/FrameworkComplianceSummary.php | 461 -------- .../V1/FrameworkDeployment.php | 603 ----------- .../V1/FrameworkDeploymentReference.php | 201 ---- .../V1/FrameworkReference.php | 122 --- ...nerateFrameworkAuditScopeReportRequest.php | 175 ---- .../Format.php | 54 - ...erateFrameworkAuditScopeReportResponse.php | 151 --- .../V1/GetCloudControlDeploymentRequest.php | 101 -- .../V1/GetCloudControlRequest.php | 145 --- .../V1/GetFrameworkAuditRequest.php | 103 -- .../V1/GetFrameworkDeploymentRequest.php | 101 -- .../V1/GetFrameworkRequest.php | 145 --- .../CloudSecurityCompliance/V1/IntRange.php | 109 -- .../V1/ListCloudControlDeploymentsRequest.php | 264 ----- .../ListCloudControlDeploymentsResponse.php | 105 -- .../V1/ListCloudControlsRequest.php | 197 ---- .../V1/ListCloudControlsResponse.php | 105 -- .../ListControlComplianceSummariesRequest.php | 246 ----- ...ListControlComplianceSummariesResponse.php | 101 -- .../V1/ListFindingSummariesRequest.php | 246 ----- .../V1/ListFindingSummariesResponse.php | 101 -- .../V1/ListFrameworkAuditsRequest.php | 237 ----- .../V1/ListFrameworkAuditsResponse.php | 105 -- ...istFrameworkComplianceSummariesRequest.php | 226 ---- ...stFrameworkComplianceSummariesResponse.php | 102 -- .../V1/ListFrameworkDeploymentsRequest.php | 269 ----- .../V1/ListFrameworkDeploymentsResponse.php | 105 -- .../V1/ListFrameworksRequest.php | 181 ---- .../V1/ListFrameworksResponse.php | 106 -- .../ManualCloudControlAssessmentDetails.php | 67 -- .../V1/ObservationDetails.php | 135 --- .../V1/OperationMetadata.php | 307 ------ .../CloudSecurityCompliance/V1/ParamValue.php | 207 ---- .../CloudSecurityCompliance/V1/Parameter.php | 113 -- .../V1/ParameterSpec.php | 367 ------- .../V1/ParameterSpec/ValueType.php | 82 -- .../V1/ParameterSubstitutionRule.php | 108 -- .../V1/PlaceholderSubstitutionRule.php | 67 -- .../V1/ProjectCreationConfig.php | 140 --- .../V1/RegexpPattern.php | 67 -- .../RegulatoryControlResponsibilityType.php | 68 -- .../V1/ReportSummary.php | 203 ---- .../Cloud/CloudSecurityCompliance/V1/Rule.php | 143 --- .../V1/RuleActionType.php | 68 -- .../CloudSecurityCompliance/V1/Severity.php | 104 -- .../V1/SimilarControls.php | 101 -- .../CloudSecurityCompliance/V1/StringList.php | 67 -- .../V1/TargetResourceConfig.php | 121 --- .../V1/TargetResourceCreationConfig.php | 108 -- .../V1/TargetResourceDetails.php | 307 ------ .../V1/TargetResourceType.php | 75 -- .../V1/UpdateCloudControlRequest.php | 193 ---- .../V1/UpdateCmEnrollmentRequest.php | 141 --- .../V1/UpdateFrameworkRequest.php | 190 ---- .../CloudSecurityCompliance/V1/Validation.php | 141 --- .../V1/AuditClient/create_framework_audit.php | 94 -- .../generate_framework_audit_scope_report.php | 86 -- .../V1/AuditClient/get_framework_audit.php | 77 -- .../samples/V1/AuditClient/get_location.php | 57 - .../V1/AuditClient/list_framework_audits.php | 82 -- .../samples/V1/AuditClient/list_locations.php | 77 -- .../calculate_effective_cm_enrollment.php | 80 -- .../get_location.php | 57 - .../list_locations.php | 77 -- .../update_cm_enrollment.php | 62 -- .../V1/ConfigClient/create_cloud_control.php | 97 -- .../V1/ConfigClient/create_framework.php | 95 -- .../V1/ConfigClient/delete_cloud_control.php | 82 -- .../V1/ConfigClient/delete_framework.php | 80 -- .../V1/ConfigClient/get_cloud_control.php | 83 -- .../samples/V1/ConfigClient/get_framework.php | 81 -- .../samples/V1/ConfigClient/get_location.php | 57 - .../V1/ConfigClient/list_cloud_controls.php | 83 -- .../V1/ConfigClient/list_frameworks.php | 83 -- .../V1/ConfigClient/list_locations.php | 77 -- .../V1/ConfigClient/update_cloud_control.php | 89 -- .../V1/ConfigClient/update_framework.php | 89 -- .../create_framework_deployment.php | 140 --- .../delete_framework_deployment.php | 89 -- .../get_cloud_control_deployment.php | 79 -- .../get_framework_deployment.php | 79 -- .../V1/DeploymentClient/get_location.php | 57 - .../list_cloud_control_deployments.php | 79 -- .../list_framework_deployments.php | 80 -- .../V1/DeploymentClient/list_locations.php | 77 -- .../aggregate_framework_compliance_report.php | 79 -- .../fetch_framework_compliance_report.php | 75 -- .../V1/MonitoringClient/get_location.php | 57 - .../list_control_compliance_summaries.php | 80 -- .../list_finding_summaries.php | 76 -- .../list_framework_compliance_summaries.php | 76 -- .../V1/MonitoringClient/list_locations.php | 77 -- .../v1/src/V1/Client/AuditClient.php | 544 ---------- .../V1/Client/CmEnrollmentServiceClient.php | 400 ------- .../v1/src/V1/Client/ConfigClient.php | 770 -------------- .../v1/src/V1/Client/DeploymentClient.php | 724 ------------- .../v1/src/V1/Client/MonitoringClient.php | 559 ---------- .../v1/src/V1/gapic_metadata.json | 239 ----- .../src/V1/resources/audit_client_config.json | 74 -- .../V1/resources/audit_descriptor_config.php | 132 --- .../V1/resources/audit_rest_client_config.php | 227 ---- .../cm_enrollment_service_client_config.json | 54 - ...m_enrollment_service_descriptor_config.php | 92 -- ..._enrollment_service_rest_client_config.php | 183 ---- .../V1/resources/config_client_config.json | 104 -- .../V1/resources/config_descriptor_config.php | 210 ---- .../resources/config_rest_client_config.php | 329 ------ .../resources/deployment_client_config.json | 84 -- .../deployment_descriptor_config.php | 177 ---- .../deployment_rest_client_config.php | 241 ----- .../resources/monitoring_client_config.json | 69 -- .../monitoring_descriptor_config.php | 155 --- .../monitoring_rest_client_config.php | 242 ----- .../tests/Unit/V1/Client/AuditClientTest.php | 646 ------------ .../Client/CmEnrollmentServiceClientTest.php | 347 ------ .../tests/Unit/V1/Client/ConfigClientTest.php | 990 ------------------ .../Unit/V1/Client/DeploymentClientTest.php | 853 --------------- .../Unit/V1/Client/MonitoringClientTest.php | 580 ---------- 246 files changed, 1413 insertions(+), 30614 deletions(-) rename {owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance => SecurityCompliance/src}/V1/Control.php (100%) rename {owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance => SecurityCompliance/src}/V1/Control/Family.php (100%) rename {owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance => SecurityCompliance/src}/V1/FrameworkComplianceSummaryView.php (100%) rename {owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance => SecurityCompliance/src}/V1/Trend.php (100%) delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Common.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php delete mode 100644 owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php diff --git a/SecurityCompliance/metadata/V1/Common.php b/SecurityCompliance/metadata/V1/Common.php index 36574ad306ad..bba19aa537ba 100644 --- a/SecurityCompliance/metadata/V1/Common.php +++ b/SecurityCompliance/metadata/V1/Common.php @@ -18,7 +18,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xB86\x0A4google/cloud/cloudsecuritycompliance/v1/common.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x94\x07\x0A\x09Framework\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x04type\x18\x06 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xE0A\x03\x12`\x0A\x15cloud_control_details\x18\x08 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x01\x12Q\x0A\x08category\x18\x09 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0A \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x0B \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x03\x12b\x0A\x1Bsupported_enforcement_modes\x18\x0D \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\"I\x0A\x0DFrameworkType\x12\x1E\x0A\x1AFRAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08BUILT_IN\x10\x01\x12\x0A\x0A\x06CUSTOM\x10\x02:\x97\x01\xEAA\x93\x01\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}*\x0Aframeworks2\x09framework\"\x95\x01\x0A\x13CloudControlDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x02\x12K\x0A\x0Aparameters\x18\x04 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01\"g\x0A\x12FrameworkReference\x12\x16\x0A\x09framework\x18\x01 \x01(\x09B\x03\xE0A\x02\x12#\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01B\x14\x0A\x12_major_revision_id\"q\x0A\x09Parameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Fparameter_value\x18\x02 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"\xDA\x08\x0A\x0CCloudControl\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x1Bsupported_enforcement_modes\x18\x07 \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\x12S\x0A\x0Eparameter_spec\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12A\x0A\x05rules\x18\x09 \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xE0A\x01\x12H\x0A\x08severity\x18\x0B \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xE0A\x01\x12\x1D\x0A\x10finding_category\x18\x0C \x01(\x09B\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0D \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x01\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\x12\x1E\x0A\x11remediation_steps\x18\x0F \x01(\x09B\x03\xE0A\x01\x12V\x0A\x0Acategories\x18\x10 \x03(\x0E2=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x12 \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x01\"6\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CUSTOM\x10\x01\x12\x0C\x0A\x08BUILT_IN\x10\x02:\xA7\x01\xEAA\xA3\x01\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}*\x0DcloudControls2\x0CcloudControl\"\x8E\x05\x0A\x0DParameterSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bis_required\x18\x04 \x01(\x08B\x03\xE0A\x02\x12Y\x0A\x0Avalue_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xE0A\x02\x12O\x0A\x0Ddefault_value\x18\x06 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x01\x12c\x0A\x12substitution_rules\x18\x07 \x03(\x0B2B.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xE0A\x01\x12S\x0A\x0Esub_parameters\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12L\x0A\x0Avalidation\x18\x09 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xE0A\x01\"g\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x03\x12\x0B\x0A\x07BOOLEAN\x10\x04\x12\x0E\x0A\x0ASTRINGLIST\x10\x05\x12\x0A\x0A\x06NUMBER\x10\x06\x12\x09\x0A\x05ONEOF\x10\x07\"\x86\x02\x0A\x0AValidation\x12P\x0A\x0Eallowed_values\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12F\x0A\x09int_range\x18\x02 \x01(\x0B21.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\x0A\x0Eregexp_pattern\x18\x03 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00B\x0C\x0A\x0Aconstraint\"Y\x0A\x0DAllowedValues\x12H\x0A\x06values\x18\x01 \x03(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"%\x0A\x0DRegexpPattern\x12\x14\x0A\x07pattern\x18\x01 \x01(\x09B\x03\xE0A\x02\".\x0A\x08IntRange\x12\x10\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\x10\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x02\"!\x0A\x0AStringList\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x02\"\xF7\x01\x0A\x0AParamValue\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x14\x0A\x0Abool_value\x18\x04 \x01(\x08H\x00\x12P\x0A\x11string_list_value\x18\x05 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x16\x0A\x0Cnumber_value\x18\x06 \x01(\x01H\x00\x12I\x0A\x0Boneof_value\x18\x07 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterH\x00B\x06\x0A\x04kind\"\x8A\x02\x0A\x19ParameterSubstitutionRule\x12m\x0A\x1Dplaceholder_substitution_rule\x18\x01 \x01(\x0B2D.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\x0A\x1Battribute_substitution_rule\x18\x02 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00B\x13\x0A\x11substitution_type\".\x0A\x19AttributeSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"0\x0A\x1BPlaceholderSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"\xDD\x01\x0A\x04Rule\x12P\x0A\x0Ecel_expression\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\x0A\x0Bdescription\x18\x0A \x01(\x09B\x03\xE0A\x01\x12W\x0A\x11rule_action_types\x18\x10 \x03(\x0E27.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xE0A\x02B\x10\x0A\x0Eimplementation\"\x8A\x01\x0A\x0DCELExpression\x12T\x0A\x15resource_types_values\x18\x03 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\x0A\x0Aexpression\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0A\x0A\x08criteria\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x03\"8\x0A\x0DControlFamily\x12\x11\x0A\x09family_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09*\x83\x01\x0A#RegulatoryControlResponsibilityType\x126\x0A2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0C\x0A\x08CUSTOMER\x10\x02\x12\x0A\x0A\x06SHARED\x10\x03*]\x0A\x0FEnforcementMode\x12 \x0A\x1CENFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APREVENTIVE\x10\x01\x12\x0D\x0A\x09DETECTIVE\x10\x02\x12\x09\x0A\x05AUDIT\x10\x03*\xB1\x01\x0A\x11FrameworkCategory\x12\"\x0A\x1EFRAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\x0A\x11ASSURED_WORKLOADS\x10\x02\x12\x11\x0A\x0DDATA_SECURITY\x10\x03\x12\x19\x0A\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\x0A\x10CUSTOM_FRAMEWORK\x10\x05*\xF2\x04\x0A\x14CloudControlCategory\x12&\x0A\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ACC_CATEGORY_INFRASTRUCTURE\x10\x01\x12'\x0A#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\x0A\x1DCC_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1D\x0A\x19CC_CATEGORY_DATA_SECURITY\x10\x04\x12 \x0A\x1CCC_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\x0A\x1FCC_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\x0A*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1A\x0A\x16CC_CATEGORY_ENCRYPTION\x10\x08\x122\x0A.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\x09\x12&\x0A\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\x0A\x128\x0A4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0B\x12%\x0A!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0C\x12(\x0A\$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\x0D\x12\x17\x0A\x13CC_CATEGORY_PRIVACY\x10\x0E\x12\x14\x0A\x10CC_CATEGORY_BCDR\x10\x0F*L\x0A\x0DCloudProvider\x12\x1E\x0A\x1ACLOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AWS\x10\x01\x12\x09\x0A\x05AZURE\x10\x02\x12\x07\x0A\x03GCP\x10\x03*Q\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CRITICAL\x10\x01\x12\x08\x0A\x04HIGH\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x07\x0A\x03LOW\x10\x04*\x8F\x01\x0A\x0ERuleActionType\x12 \x0A\x1CRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1E\x0A\x1ARULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1A\x0A\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xCD\x01\x0A\x12TargetResourceType\x12\$\x0A TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\x0A\x1FTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12\$\x0A TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12\$\x0A TARGET_RESOURCE_TYPE_APPLICATION\x10\x04B\x97\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BCommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAAp\x0A;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + "\x0A\xC0A\x0A4google/cloud/cloudsecuritycompliance/v1/common.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD4\x07\x0A\x09Framework\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x04type\x18\x06 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xE0A\x03\x12`\x0A\x15cloud_control_details\x18\x08 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x01\x12Q\x0A\x08category\x18\x09 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0A \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x0B \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x03\x12b\x0A\x1Bsupported_enforcement_modes\x18\x0D \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\"I\x0A\x0DFrameworkType\x12\x1E\x0A\x1AFRAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08BUILT_IN\x10\x01\x12\x0A\x0A\x06CUSTOM\x10\x02:\xD7\x01\xEAA\xD3\x01\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}\x12>projects/{project}/locations/{location}/frameworks/{framework}*\x0Aframeworks2\x09framework\"\x95\x01\x0A\x13CloudControlDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x02\x12K\x0A\x0Aparameters\x18\x04 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01\"\x9C\x01\x0A\x12FrameworkReference\x12K\x0A\x09framework\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12#\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01B\x14\x0A\x12_major_revision_id\"q\x0A\x09Parameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Fparameter_value\x18\x02 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"\xA1\x09\x0A\x0CCloudControl\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x1Bsupported_enforcement_modes\x18\x07 \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\x12S\x0A\x0Eparameter_spec\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12A\x0A\x05rules\x18\x09 \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xE0A\x01\x12H\x0A\x08severity\x18\x0B \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xE0A\x01\x12\x1D\x0A\x10finding_category\x18\x0C \x01(\x09B\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0D \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x01\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\x12\x1E\x0A\x11remediation_steps\x18\x0F \x01(\x09B\x03\xE0A\x01\x12V\x0A\x0Acategories\x18\x10 \x03(\x0E2=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x12 \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x01\"6\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CUSTOM\x10\x01\x12\x0C\x0A\x08BUILT_IN\x10\x02:\xEE\x01\xEAA\xEA\x01\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}\x12Eprojects/{project}/locations/{location}/cloudControls/{cloud_control}*\x0DcloudControls2\x0CcloudControl\"\x8E\x05\x0A\x0DParameterSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bis_required\x18\x04 \x01(\x08B\x03\xE0A\x02\x12Y\x0A\x0Avalue_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xE0A\x02\x12O\x0A\x0Ddefault_value\x18\x06 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x01\x12c\x0A\x12substitution_rules\x18\x07 \x03(\x0B2B.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xE0A\x01\x12S\x0A\x0Esub_parameters\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12L\x0A\x0Avalidation\x18\x09 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xE0A\x01\"g\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x03\x12\x0B\x0A\x07BOOLEAN\x10\x04\x12\x0E\x0A\x0ASTRINGLIST\x10\x05\x12\x0A\x0A\x06NUMBER\x10\x06\x12\x09\x0A\x05ONEOF\x10\x07\"\x86\x02\x0A\x0AValidation\x12P\x0A\x0Eallowed_values\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12F\x0A\x09int_range\x18\x02 \x01(\x0B21.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\x0A\x0Eregexp_pattern\x18\x03 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00B\x0C\x0A\x0Aconstraint\"Y\x0A\x0DAllowedValues\x12H\x0A\x06values\x18\x01 \x03(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"%\x0A\x0DRegexpPattern\x12\x14\x0A\x07pattern\x18\x01 \x01(\x09B\x03\xE0A\x02\".\x0A\x08IntRange\x12\x10\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\x10\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x02\"!\x0A\x0AStringList\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x02\"\x90\x02\x0A\x0AParamValue\x12\x1B\x0A\x0Cstring_value\x18\x03 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x04 \x01(\x08B\x03\xE0A\x01H\x00\x12U\x0A\x11string_list_value\x18\x05 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x06 \x01(\x01B\x03\xE0A\x01H\x00\x12N\x0A\x0Boneof_value\x18\x07 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01H\x00B\x06\x0A\x04kind\"\x8A\x02\x0A\x19ParameterSubstitutionRule\x12m\x0A\x1Dplaceholder_substitution_rule\x18\x01 \x01(\x0B2D.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\x0A\x1Battribute_substitution_rule\x18\x02 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00B\x13\x0A\x11substitution_type\".\x0A\x19AttributeSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"0\x0A\x1BPlaceholderSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"\xDD\x01\x0A\x04Rule\x12P\x0A\x0Ecel_expression\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\x0A\x0Bdescription\x18\x0A \x01(\x09B\x03\xE0A\x01\x12W\x0A\x11rule_action_types\x18\x10 \x03(\x0E27.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xE0A\x02B\x10\x0A\x0Eimplementation\"\x8A\x01\x0A\x0DCELExpression\x12T\x0A\x15resource_types_values\x18\x03 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\x0A\x0Aexpression\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0A\x0A\x08criteria\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x03\"\xA3\x08\x0A\x07Control\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06family\x18\x05 \x01(\x0E27.google.cloud.cloudsecuritycompliance.v1.Control.FamilyB\x03\xE0A\x03\x12S\x0A\x0Econtrol_family\x18\x06 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xE0A\x03\x12n\x0A\x13responsibility_type\x18\x07 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityTypeB\x03\xE0A\x03\x12.\x0A!google_responsibility_description\x18\x08 \x01(\x09B\x03\xE0A\x03\x121\x0A\$google_responsibility_implementation\x18\x09 \x01(\x09B\x03\xE0A\x03\x120\x0A#customer_responsibility_description\x18\x0A \x01(\x09B\x03\xE0A\x03\x123\x0A&customer_responsibility_implementation\x18\x0B \x01(\x09B\x03\xE0A\x03\x12.\x0A!shared_responsibility_description\x18\x0C \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16additional_content_uri\x18\x0D \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\"\xB0\x01\x0A\x06Family\x12\x16\x0A\x12FAMILY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AC\x10\x01\x12\x06\x0A\x02AT\x10\x02\x12\x06\x0A\x02AU\x10\x03\x12\x06\x0A\x02CA\x10\x04\x12\x06\x0A\x02CM\x10\x05\x12\x06\x0A\x02CP\x10\x06\x12\x06\x0A\x02IA\x10\x07\x12\x06\x0A\x02IR\x10\x08\x12\x06\x0A\x02MA\x10\x09\x12\x06\x0A\x02MP\x10\x0A\x12\x06\x0A\x02PE\x10\x0B\x12\x06\x0A\x02PL\x10\x0C\x12\x06\x0A\x02PS\x10\x0D\x12\x06\x0A\x02RA\x10\x0E\x12\x06\x0A\x02SA\x10\x0F\x12\x06\x0A\x02SC\x10\x10\x12\x06\x0A\x02SI\x10\x11\x12\x06\x0A\x02SR\x10\x12:\xC9\x01\xEAA\xC5\x01\x0A.cloudsecuritycompliance.googleapis.com/Control\x12Dorganizations/{organization}/locations/{location}/controls/{control}\x12:projects/{project}/locations/{location}/controls/{control}*\x08controls2\x07control\"8\x0A\x0DControlFamily\x12\x11\x0A\x09family_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09*\x83\x01\x0A#RegulatoryControlResponsibilityType\x126\x0A2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0C\x0A\x08CUSTOMER\x10\x02\x12\x0A\x0A\x06SHARED\x10\x03*]\x0A\x0FEnforcementMode\x12 \x0A\x1CENFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APREVENTIVE\x10\x01\x12\x0D\x0A\x09DETECTIVE\x10\x02\x12\x09\x0A\x05AUDIT\x10\x03*\xB1\x01\x0A\x11FrameworkCategory\x12\"\x0A\x1EFRAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\x0A\x11ASSURED_WORKLOADS\x10\x02\x12\x11\x0A\x0DDATA_SECURITY\x10\x03\x12\x19\x0A\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\x0A\x10CUSTOM_FRAMEWORK\x10\x05*\xFE\x05\x0A\x14CloudControlCategory\x12&\x0A\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ACC_CATEGORY_INFRASTRUCTURE\x10\x01\x12'\x0A#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\x0A\x1DCC_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1D\x0A\x19CC_CATEGORY_DATA_SECURITY\x10\x04\x12 \x0A\x1CCC_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\x0A\x1FCC_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\x0A*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1A\x0A\x16CC_CATEGORY_ENCRYPTION\x10\x08\x122\x0A.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\x09\x12&\x0A\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\x0A\x128\x0A4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0B\x12%\x0A!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0C\x12(\x0A\$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\x0D\x12\x17\x0A\x13CC_CATEGORY_PRIVACY\x10\x0E\x12\x14\x0A\x10CC_CATEGORY_BCDR\x10\x0F\x12\x1C\x0A\x18CC_CATEGORY_ADMIN_ACCESS\x10\x10\x12\x1E\x0A\x1ACC_CATEGORY_DATA_RESIDENCY\x10\x11\x12*\x0A&CC_CATEGORY_RESOURCE_USAGE_RESTRICTION\x10\x12\x12 \x0A\x1CCC_CATEGORY_SERVICE_SPECIFIC\x10\x13*L\x0A\x0DCloudProvider\x12\x1E\x0A\x1ACLOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AWS\x10\x01\x12\x09\x0A\x05AZURE\x10\x02\x12\x07\x0A\x03GCP\x10\x03*Q\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CRITICAL\x10\x01\x12\x08\x0A\x04HIGH\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x07\x0A\x03LOW\x10\x04*\x8F\x01\x0A\x0ERuleActionType\x12 \x0A\x1CRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1E\x0A\x1ARULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1A\x0A\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xCD\x01\x0A\x12TargetResourceType\x12\$\x0A TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\x0A\x1FTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12\$\x0A TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12\$\x0A TARGET_RESOURCE_TYPE_APPLICATION\x10\x04B\x97\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BCommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAAp\x0A;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" , true); static::$is_initialized = true; diff --git a/SecurityCompliance/metadata/V1/Config.php b/SecurityCompliance/metadata/V1/Config.php index 2ad8d31ac7f1..579217125655 100644 --- a/SecurityCompliance/metadata/V1/Config.php +++ b/SecurityCompliance/metadata/V1/Config.php @@ -22,7 +22,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x89%\x0A4google/cloud/cloudsecuritycompliance/v1/config.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\x92\x01\x0A\x15ListFrameworksRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"y\x0A\x16ListFrameworksResponse\x12F\x0A\x0Aframeworks\x18\x01 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"}\x0A\x13GetFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xC9\x01\x0A\x16CreateFrameworkRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x19\x0A\x0Cframework_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x09framework\x18\x03 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\"\xBA\x01\x0A\x16UpdateFrameworkRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12J\x0A\x09framework\x18\x02 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x03 \x01(\x03B\x03\xE0A\x01\"`\x0A\x16DeleteFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\x0A\x18ListCloudControlsRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x19ListCloudControlsResponse\x12M\x0A\x0Ecloud_controls\x18\x01 \x03(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x16GetCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xDA\x01\x0A\x19CreateCloudControlRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Dcloud_control\x18\x03 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"\xA4\x01\x0A\x19UpdateCloudControlRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12Q\x0A\x0Dcloud_control\x18\x02 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"f\x0A\x19DeleteCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl2\xA1\x12\x0A\x06Config\x12\xD7\x01\x0A\x0EListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"D\xDAA\x06parent\x82\xD3\xE4\x93\x025\x123/v1/{parent=organizations/*/locations/*}/frameworks\x12\xC4\x01\x0A\x0CGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"B\xDAA\x04name\x82\xD3\xE4\x93\x025\x123/v1/{name=organizations/*/locations/*/frameworks/*}\x12\xEE\x01\x0A\x0FCreateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"f\xDAA\x1Dparent,framework,framework_id\x82\xD3\xE4\x93\x02@\"3/v1/{parent=organizations/*/locations/*}/frameworks:\x09framework\x12\xF0\x01\x0A\x0FUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"h\xDAA\x15framework,update_mask\x82\xD3\xE4\x93\x02J2=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\x09framework\x12\xAE\x01\x0A\x0FDeleteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1A\x16.google.protobuf.Empty\"B\xDAA\x04name\x82\xD3\xE4\x93\x025*3/v1/{name=organizations/*/locations/*/frameworks/*}\x12\xE3\x01\x0A\x11ListCloudControls\x12A.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"G\xDAA\x06parent\x82\xD3\xE4\x93\x028\x126/v1/{parent=organizations/*/locations/*}/cloudControls\x12\xD0\x01\x0A\x0FGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\x126/v1/{name=organizations/*/locations/*/cloudControls/*}\x12\x86\x02\x0A\x12CreateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"u\xDAA%parent,cloud_control,cloud_control_id\x82\xD3\xE4\x93\x02G\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\x0Dcloud_control\x12\x88\x02\x0A\x12UpdateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"w\xDAA\x19cloud_control,update_mask\x82\xD3\xE4\x93\x02U2D/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\x0Dcloud_control\x12\xB7\x01\x0A\x12DeleteCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028*6/v1/{name=organizations/*/locations/*/cloudControls/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA4\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BConfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" + "\x0A\xDF)\x0A4google/cloud/cloudsecuritycompliance/v1/config.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\x92\x01\x0A\x15ListFrameworksRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"y\x0A\x16ListFrameworksResponse\x12F\x0A\x0Aframeworks\x18\x01 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"}\x0A\x13GetFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xC9\x01\x0A\x16CreateFrameworkRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x19\x0A\x0Cframework_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x09framework\x18\x03 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\"\xBA\x01\x0A\x16UpdateFrameworkRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12J\x0A\x09framework\x18\x02 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x03 \x01(\x03B\x03\xE0A\x01\"`\x0A\x16DeleteFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\x0A\x18ListCloudControlsRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x19ListCloudControlsResponse\x12M\x0A\x0Ecloud_controls\x18\x01 \x03(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x16GetCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xDA\x01\x0A\x19CreateCloudControlRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Dcloud_control\x18\x03 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"\xA4\x01\x0A\x19UpdateCloudControlRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12Q\x0A\x0Dcloud_control\x18\x02 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"f\x0A\x19DeleteCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl2\xF7\x16\x0A\x06Config\x12\x89\x02\x0A\x0EListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"v\xDAA\x06parent\x82\xD3\xE4\x93\x02g\x123/v1/{parent=organizations/*/locations/*}/frameworksZ0\x12./v1/{parent=projects/*/locations/*}/frameworks\x12\xF6\x01\x0A\x0CGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\x123/v1/{name=organizations/*/locations/*/frameworks/*}Z0\x12./v1/{name=projects/*/locations/*/frameworks/*}\x12\xAC\x02\x0A\x0FCreateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xA3\x01\xDAA\x1Dparent,framework,framework_id\x82\xD3\xE4\x93\x02}\"3/v1/{parent=organizations/*/locations/*}/frameworks:\x09frameworkZ;\"./v1/{parent=projects/*/locations/*}/frameworks:\x09framework\x12\xB9\x02\x0A\x0FUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xB0\x01\xDAA\x15framework,update_mask\x82\xD3\xE4\x93\x02\x91\x012=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\x09frameworkZE28/v1/{framework.name=projects/*/locations/*/frameworks/*}:\x09framework\x12\xE0\x01\x0A\x0FDeleteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1A\x16.google.protobuf.Empty\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g*3/v1/{name=organizations/*/locations/*/frameworks/*}Z0*./v1/{name=projects/*/locations/*/frameworks/*}\x12\x98\x02\x0A\x11ListCloudControls\x12A.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"|\xDAA\x06parent\x82\xD3\xE4\x93\x02m\x126/v1/{parent=organizations/*/locations/*}/cloudControlsZ3\x121/v1/{parent=projects/*/locations/*}/cloudControls\x12\x85\x02\x0A\x0FGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m\x126/v1/{name=organizations/*/locations/*/cloudControls/*}Z3\x121/v1/{name=projects/*/locations/*/cloudControls/*}\x12\xCC\x02\x0A\x12CreateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xBA\x01\xDAA%parent,cloud_control,cloud_control_id\x82\xD3\xE4\x93\x02\x8B\x01\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\x0Dcloud_controlZB\"1/v1/{parent=projects/*/locations/*}/cloudControls:\x0Dcloud_control\x12\xDC\x02\x0A\x12UpdateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xCA\x01\xDAA\x19cloud_control,update_mask\x82\xD3\xE4\x93\x02\xA7\x012D/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\x0Dcloud_controlZP2?/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}:\x0Dcloud_control\x12\xEC\x01\x0A\x12DeleteCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1A\x16.google.protobuf.Empty\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m*6/v1/{name=organizations/*/locations/*/cloudControls/*}Z3*1/v1/{name=projects/*/locations/*/cloudControls/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA4\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BConfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/SecurityCompliance/metadata/V1/Deployment.php b/SecurityCompliance/metadata/V1/Deployment.php index 556626bfd89d..13a333cadbf1 100644 --- a/SecurityCompliance/metadata/V1/Deployment.php +++ b/SecurityCompliance/metadata/V1/Deployment.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xCA9\x0A8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD2\x07\x0A\x13FrameworkDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12%\x0A\x18computed_target_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12S\x0A\x09framework\x18\x04 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x16cloud_control_metadata\x18\x06 \x03(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12W\x0A\x10deployment_state\x18\x07 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12)\x0A\x1Ctarget_resource_display_name\x18\x0D \x01(\x09B\x03\xE0A\x03\x12z\x0A#cloud_control_deployment_references\x18\x0E \x03(\x0B2H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xE0A\x03:\xCA\x01\xEAA\xC6\x01\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14frameworkDeployments2\x13frameworkDeployment\"\xE9\x07\x0A\x16CloudControlDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12\x1C\x0A\x0Ftarget_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x16cloud_control_metadata\x18\x04 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12W\x0A\x10deployment_state\x18\x06 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x09 \x01(\x09B\x03\xE0A\x01\x12g\x0A#parameter_substituted_cloud_control\x18\x0A \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x03\x12s\x0A\x1Fframework_deployment_references\x18\x0B \x03(\x0B2E.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xE0A\x03\x12)\x0A\x1Ctarget_resource_display_name\x18\x0C \x01(\x09B\x03\xE0A\x03:\xDA\x01\xEAA\xD6\x01\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12dorganizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17cloudControlDeployments2\x16cloudControlDeployment\"\xC9\x01\x0A\x14TargetResourceConfig\x12'\x0A\x18existing_target_resource\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12u\x0A\x1Ftarget_resource_creation_config\x18\x02 \x01(\x0B2E.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xE0A\x01H\x00B\x11\x0A\x0Fresource_config\"\x88\x02\x0A\x1CTargetResourceCreationConfig\x12d\x0A\x16folder_creation_config\x18\x01 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xE0A\x01H\x00\x12f\x0A\x17project_creation_config\x18\x02 \x01(\x0B2>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xE0A\x01H\x00B\x1A\x0A\x18resource_creation_config\"M\x0A\x14FolderCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13folder_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"p\x0A\x15ProjectCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12!\x0A\x14project_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x12billing_account_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xD1\x01\x0A\x14CloudControlMetadata\x12`\x0A\x15cloud_control_details\x18\x01 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x02\x12W\x0A\x10enforcement_mode\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x02\"\xFD\x01\x0A CreateFrameworkDeploymentRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\$\x0A\x17framework_deployment_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x14framework_deployment\x18\x03 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xE0A\x02\"\x87\x01\x0A DeleteFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"q\x0A\x1DGetFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xD2\x01\x0A\x1FListFrameworkDeploymentsRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A ListFrameworkDeploymentsResponse\x12[\x0A\x15framework_deployments\x18\x01 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"w\x0A GetCloudControlDeploymentRequest\x12S\x0A\x04name\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xD8\x01\x0A\"ListCloudControlDeploymentsRequest\x12U\x0A\x06parent\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA2\x01\x0A#ListCloudControlDeploymentsResponse\x12b\x0A\x19cloud_control_deployments\x18\x01 \x03(\x0B2?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1FCloudControlDeploymentReference\x12g\x0A\x18cloud_control_deployment\x18\x01 \x01(\x09BE\xE0A\x03\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\x0A\x1CFrameworkDeploymentReference\x12`\x0A\x14framework_deployment\x18\x01 \x01(\x09BB\xE0A\x03\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\x0A\x13framework_reference\x18\x02 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x01\x12#\x0A\x16framework_display_name\x18\x03 \x01(\x09B\x03\xE0A\x01*\x9C\x02\x0A\x0FDeploymentState\x12 \x0A\x1CDEPLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BDEPLOYMENT_STATE_VALIDATING\x10\x01\x12\x1D\x0A\x19DEPLOYMENT_STATE_CREATING\x10\x02\x12\x1D\x0A\x19DEPLOYMENT_STATE_DELETING\x10\x03\x12\x1B\x0A\x17DEPLOYMENT_STATE_FAILED\x10\x04\x12\x1A\x0A\x16DEPLOYMENT_STATE_READY\x10\x05\x12'\x0A#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\x0A\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x072\xFD\x0D\x0A\x0ADeployment\x12\xEC\x02\x0A\x19CreateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xE4\x01\xCAAP\x0A\x13FrameworkDeployment\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA3parent,framework_deployment,framework_deployment_id\x82\xD3\xE4\x93\x02U\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14framework_deployment\x12\xA9\x02\x0A\x19DeleteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xA1\x01\xCAAR\x0A\x15google.protobuf.Empty\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\x12\xEC\x01\x0A\x16GetFrameworkDeployment\x12F.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1A<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\x12\xFF\x01\x0A\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1AI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeployments\x12\xF8\x01\x0A\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"O\xDAA\x04name\x82\xD3\xE4\x93\x02B\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}\x12\x8B\x02\x0A\x1BListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1AL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"Q\xDAA\x06parent\x82\xD3\xE4\x93\x02B\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeployments\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA8\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FDeploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" + "\x0A\xA5>\x0A8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA7\x08\x0A\x13FrameworkDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12%\x0A\x18computed_target_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12S\x0A\x09framework\x18\x04 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x16cloud_control_metadata\x18\x06 \x03(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12W\x0A\x10deployment_state\x18\x07 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12)\x0A\x1Ctarget_resource_display_name\x18\x0D \x01(\x09B\x03\xE0A\x03\x12z\x0A#cloud_control_deployment_references\x18\x0E \x03(\x0B2H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xE0A\x03:\x9F\x02\xEAA\x9B\x02\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}\x12Sprojects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14frameworkDeployments2\x13frameworkDeployment\"\xC5\x08\x0A\x16CloudControlDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12\x1C\x0A\x0Ftarget_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x16cloud_control_metadata\x18\x04 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12W\x0A\x10deployment_state\x18\x06 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x09 \x01(\x09B\x03\xE0A\x01\x12g\x0A#parameter_substituted_cloud_control\x18\x0A \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x03\x12s\x0A\x1Fframework_deployment_references\x18\x0B \x03(\x0B2E.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xE0A\x03\x12)\x0A\x1Ctarget_resource_display_name\x18\x0C \x01(\x09B\x03\xE0A\x03:\xB6\x02\xEAA\xB2\x02\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12dorganizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}\x12Zprojects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17cloudControlDeployments2\x16cloudControlDeployment\"\xC9\x01\x0A\x14TargetResourceConfig\x12'\x0A\x18existing_target_resource\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12u\x0A\x1Ftarget_resource_creation_config\x18\x02 \x01(\x0B2E.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xE0A\x01H\x00B\x11\x0A\x0Fresource_config\"\x88\x02\x0A\x1CTargetResourceCreationConfig\x12d\x0A\x16folder_creation_config\x18\x01 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xE0A\x01H\x00\x12f\x0A\x17project_creation_config\x18\x02 \x01(\x0B2>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xE0A\x01H\x00B\x1A\x0A\x18resource_creation_config\"M\x0A\x14FolderCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13folder_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"p\x0A\x15ProjectCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12!\x0A\x14project_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x12billing_account_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xD1\x01\x0A\x14CloudControlMetadata\x12`\x0A\x15cloud_control_details\x18\x01 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x02\x12W\x0A\x10enforcement_mode\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x02\"\xFD\x01\x0A CreateFrameworkDeploymentRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\$\x0A\x17framework_deployment_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x14framework_deployment\x18\x03 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xE0A\x02\"\x87\x01\x0A DeleteFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"q\x0A\x1DGetFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xD2\x01\x0A\x1FListFrameworkDeploymentsRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A ListFrameworkDeploymentsResponse\x12[\x0A\x15framework_deployments\x18\x01 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"w\x0A GetCloudControlDeploymentRequest\x12S\x0A\x04name\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xD8\x01\x0A\"ListCloudControlDeploymentsRequest\x12U\x0A\x06parent\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA2\x01\x0A#ListCloudControlDeploymentsResponse\x12b\x0A\x19cloud_control_deployments\x18\x01 \x03(\x0B2?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1FCloudControlDeploymentReference\x12g\x0A\x18cloud_control_deployment\x18\x01 \x01(\x09BE\xE0A\x03\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\x0A\x1CFrameworkDeploymentReference\x12`\x0A\x14framework_deployment\x18\x01 \x01(\x09BB\xE0A\x03\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\x0A\x13framework_reference\x18\x02 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x01\x12#\x0A\x16framework_display_name\x18\x03 \x01(\x09B\x03\xE0A\x01*\xBB\x02\x0A\x0FDeploymentState\x12 \x0A\x1CDEPLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BDEPLOYMENT_STATE_VALIDATING\x10\x01\x12\x1D\x0A\x19DEPLOYMENT_STATE_CREATING\x10\x02\x12\x1D\x0A\x19DEPLOYMENT_STATE_DELETING\x10\x03\x12\x1D\x0A\x19DEPLOYMENT_STATE_UPDATING\x10\x08\x12\x1B\x0A\x17DEPLOYMENT_STATE_FAILED\x10\x04\x12\x1A\x0A\x16DEPLOYMENT_STATE_READY\x10\x05\x12'\x0A#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\x0A\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x072\x88\x11\x0A\x0ADeployment\x12\xBF\x03\x0A\x19CreateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xB7\x02\xCAAP\x0A\x13FrameworkDeployment\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA3parent,framework_deployment,framework_deployment_id\x82\xD3\xE4\x93\x02\xA7\x01\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14framework_deploymentZP\"8/v1/{parent=projects/*/locations/*}/frameworkDeployments:\x14framework_deployment\x12\xE5\x02\x0A\x19DeleteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xDD\x01\xCAAR\x0A\x15google.protobuf.Empty\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02{*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:*8/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xA9\x02\x0A\x16GetFrameworkDeployment\x12F.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1A<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"\x88\x01\xDAA\x04name\x82\xD3\xE4\x93\x02{\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:\x128/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xBC\x02\x0A\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1AI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"\x8A\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02{\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeploymentsZ:\x128/v1/{parent=projects/*/locations/*}/frameworkDeployments\x12\xB9\x02\x0A\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"\x8F\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}Z=\x12;/v1/{name=projects/*/locations/*/cloudControlDeployments/*}\x12\xCC\x02\x0A\x1BListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1AL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"\x91\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeploymentsZ=\x12;/v1/{parent=projects/*/locations/*}/cloudControlDeployments\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA8\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FDeploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/SecurityCompliance/metadata/V1/Monitoring.php b/SecurityCompliance/metadata/V1/Monitoring.php index 369cd545fa86..33f790055159 100644 --- a/SecurityCompliance/metadata/V1/Monitoring.php +++ b/SecurityCompliance/metadata/V1/Monitoring.php @@ -19,10 +19,11 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); + \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Type\Interval::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xB2U\x0A8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\xCA\x01\x0A'ListFrameworkComplianceSummariesRequest\x12Y\x0A\x06parent\x18\x01 \x01(\x09BI\xE0A\x02\xFAAC\x12Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\xB5\x01\x0A(ListFrameworkComplianceSummariesResponse\x12k\x0A\x1Eframework_compliance_summaries\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xF6\x08\x0A\x19FrameworkComplianceReport\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x1D\x0A\x15framework_description\x18\x02 \x01(\x09\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12e\x0A\x1Acontrol_assessment_details\x18\x04 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x06 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x07 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x09 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x0A \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x0B \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0C \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xAB\x03\xEAA\xA7\x03\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1AframeworkComplianceReports2\x19frameworkComplianceReport\"\xB2\x01\x0A%FetchFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\"\xE7\x01\x0A\x1BListFindingSummariesRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x123\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\"\x90\x01\x0A\x1CListFindingSummariesResponse\x12R\x0A\x11finding_summaries\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xFB\x01\x0A%ListControlComplianceSummariesRequest\x12W\x0A\x06parent\x18\x01 \x01(\x09BG\xE0A\x02\xFAAA\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x123\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A&ListControlComplianceSummariesResponse\x12g\x0A\x1Ccontrol_compliance_summaries\x18\x01 \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xC6\x01\x0A)AggregateFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\x0A\x08interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A*AggregateFrameworkComplianceReportResponse\x12j\x0A\x1Daggregated_compliance_reports\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\x0A\x18ControlAssessmentDetails\x12\x18\x0A\x10passing_controls\x18\x01 \x01(\x05\x12\x18\x0A\x10failing_controls\x18\x02 \x01(\x05\x12!\x0A\x19assessed_passing_controls\x18\x03 \x01(\x05\x12\x1D\x0A\x15not_assessed_controls\x18\x04 \x01(\x05\"\xAF\x08\x0A\x1AFrameworkComplianceSummary\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12e\x0A\x1Acontrol_assessment_details\x18\x02 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x03 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x04 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x05 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x09 \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0A \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xB8\x03\xEAA\xB4\x03\x0AAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12cprojects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1CframeworkComplianceSummaries2\x1AframeworkComplianceSummary\"\x8A\x05\x0A\x0EFindingSummary\x12\x18\x0A\x10finding_category\x18\x01 \x01(\x09\x12L\x0A\x0Dfinding_class\x18\x02 \x01(\x0E25.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12C\x0A\x08severity\x18\x03 \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\x0A\x0Dfinding_count\x18\x04 \x01(\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08:\xC9\x02\xEAA\xC5\x02\x0A5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10findingSummaries2\x0EfindingSummary\"\x9A\x09\x0A\x18ControlComplianceSummary\x12\x0F\x0A\x07control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12_\x0A\x18overall_evaluation_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\x12\x1C\x0A\x14total_findings_count\x18\x05 \x01(\x05\x12\x1D\x0A\x15compliance_frameworks\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x07 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\x0A\x15cloud_control_reports\x18\x08 \x03(\x0B2;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\x0A\x1Bcontrol_responsibility_type\x18\x09 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\x0A\x0Fis_fake_control\x18\x0A \x01(\x08\x12\x11\x0A\x04name\x18\x0B \x01(\x09B\x03\xE0A\x08:\xD4\x04\xEAA\xD0\x04\x0A?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xA2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1AcontrolComplianceSummaries2\x18controlComplianceSummary\"\x98\x07\x0A\x12CloudControlReport\x12\x7F\x0A'manual_cloud_control_assessment_details\x18\x0D \x01(\x0B2L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\x0A cloud_control_assessment_details\x18\x0E \x01(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\x0A\x0Dcloud_control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x12\x0A\x0Acategories\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x09 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\x0A\x12cloud_control_type\x18\x0A \x01(\x0E2:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\x0A\x10finding_category\x18\x0B \x01(\x09\x12<\x0A\x05rules\x18\x0C \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\x0A\x10finding_severity\x18\x0F \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\x0A\x10enforcement_mode\x18\x10 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \x0A\x18cloud_control_deployment\x18\x11 \x01(\x09\x12\x19\x0A\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x13 \x01(\x03\x12\$\x0A\x1Cframework_major_revision_ids\x18\x14 \x03(\x03B\x14\x0A\x12assessment_details\"I\x0A#ManualCloudControlAssessmentDetails\x12\"\x0A\x1Amanual_cloud_control_guide\x18\x01 \x03(\x09\"\x90\x01\x0A\x1DCloudControlAssessmentDetails\x12\x16\x0A\x0Efindings_count\x18\x01 \x01(\x05\x12W\x0A\x10evaluation_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\"8\x0A\x0FSimilarControls\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x12\x0A\x0Acontrol_id\x18\x02 \x01(\x09\"\xB4\x01\x0A\x1AAggregatedComplianceReport\x12e\x0A\x1Acontrol_assessment_details\x18\x01 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\x0A\x0Breport_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x8C\x02\x0A\x15TargetResourceDetails\x12\x1C\x0A\x14framework_deployment\x18\x01 \x01(\x09\x12\$\x0A\x1Ctarget_resource_display_name\x18\x02 \x01(\x09\x12\x17\x0A\x0Ftarget_resource\x18\x03 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x07 \x01(\x03*\x90\x01\x0A\x0FEvaluationState\x12 \x0A\x1CEVALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17EVALUATION_STATE_PASSED\x10\x01\x12\x1B\x0A\x17EVALUATION_STATE_FAILED\x10\x02\x12!\x0A\x1DEVALUATION_STATE_NOT_ASSESSED\x10\x03*\xD9\x01\x0A\x0CFindingClass\x12\x1D\x0A\x19FINDING_CLASS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06THREAT\x10\x01\x12\x11\x0A\x0DVULNERABILITY\x10\x02\x12\x14\x0A\x10MISCONFIGURATION\x10\x03\x12\x0F\x0A\x0BOBSERVATION\x10\x04\x12\x0D\x0A\x09SCC_ERROR\x10\x05\x12\x15\x0A\x11POSTURE_VIOLATION\x10\x06\x12\x15\x0A\x11TOXIC_COMBINATION\x10\x07\x12\x17\x0A\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0E\x0A\x0ACHOKEPOINT\x10\x092\xD5\x11\x0A\x0AMonitoring\x12\xA8\x03\x0A ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1AQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xDE\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCE\x01\x12E/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xE0\x02\x0A\x14ListFindingSummaries\x12D.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1AE.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xBA\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xAA\x01\x129/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x123/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x124/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9F\x03\x0A\x1EFetchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xE8\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xDA\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12C/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12D/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xF3\x03\x0A\x1EListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1AO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xAF\x02\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9F\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xC4\x03\x0A\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1AS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xF4\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xE6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\x89\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAA^\x0A5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" + "\x0A\xBAY\x0A8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\xA6\x02\x0A'ListFrameworkComplianceSummariesRequest\x12Y\x0A\x06parent\x18\x01 \x01(\x09BI\xE0A\x02\xFAAC\x12Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x04view\x18\x05 \x01(\x0E2G.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryViewB\x03\xE0A\x01\"\xB5\x01\x0A(ListFrameworkComplianceSummariesResponse\x12k\x0A\x1Eframework_compliance_summaries\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xF6\x08\x0A\x19FrameworkComplianceReport\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x1D\x0A\x15framework_description\x18\x02 \x01(\x09\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12e\x0A\x1Acontrol_assessment_details\x18\x04 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x06 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x07 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x09 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x0A \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x0B \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0C \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xAB\x03\xEAA\xA7\x03\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1AframeworkComplianceReports2\x19frameworkComplianceReport\"\xC7\x01\x0A%FetchFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE7\x01\x0A\x1BListFindingSummariesRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x123\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\"\x90\x01\x0A\x1CListFindingSummariesResponse\x12R\x0A\x11finding_summaries\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xFB\x01\x0A%ListControlComplianceSummariesRequest\x12W\x0A\x06parent\x18\x01 \x01(\x09BG\xE0A\x02\xFAAA\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x123\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A&ListControlComplianceSummariesResponse\x12g\x0A\x1Ccontrol_compliance_summaries\x18\x01 \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xC6\x01\x0A)AggregateFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\x0A\x08interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A*AggregateFrameworkComplianceReportResponse\x12j\x0A\x1Daggregated_compliance_reports\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\x0A\x18ControlAssessmentDetails\x12\x18\x0A\x10passing_controls\x18\x01 \x01(\x05\x12\x18\x0A\x10failing_controls\x18\x02 \x01(\x05\x12!\x0A\x19assessed_passing_controls\x18\x03 \x01(\x05\x12\x1D\x0A\x15not_assessed_controls\x18\x04 \x01(\x05\"\xA0\x09\x0A\x1AFrameworkComplianceSummary\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12e\x0A\x1Acontrol_assessment_details\x18\x02 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x03 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x04 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x05 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x09 \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0A \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails\x12\x1A\x0A\x0Dfinding_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12S\x0A\x16controls_passing_trend\x18\x0C \x01(\x0B2..google.cloud.cloudsecuritycompliance.v1.TrendB\x03\xE0A\x03:\xB8\x03\xEAA\xB4\x03\x0AAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12cprojects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1CframeworkComplianceSummaries2\x1AframeworkComplianceSummary\"\x8A\x05\x0A\x0EFindingSummary\x12\x18\x0A\x10finding_category\x18\x01 \x01(\x09\x12L\x0A\x0Dfinding_class\x18\x02 \x01(\x0E25.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12C\x0A\x08severity\x18\x03 \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\x0A\x0Dfinding_count\x18\x04 \x01(\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08:\xC9\x02\xEAA\xC5\x02\x0A5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10findingSummaries2\x0EfindingSummary\"\x9A\x09\x0A\x18ControlComplianceSummary\x12\x0F\x0A\x07control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12_\x0A\x18overall_evaluation_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\x12\x1C\x0A\x14total_findings_count\x18\x05 \x01(\x05\x12\x1D\x0A\x15compliance_frameworks\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x07 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\x0A\x15cloud_control_reports\x18\x08 \x03(\x0B2;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\x0A\x1Bcontrol_responsibility_type\x18\x09 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\x0A\x0Fis_fake_control\x18\x0A \x01(\x08\x12\x11\x0A\x04name\x18\x0B \x01(\x09B\x03\xE0A\x08:\xD4\x04\xEAA\xD0\x04\x0A?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xA2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1AcontrolComplianceSummaries2\x18controlComplianceSummary\"\x98\x07\x0A\x12CloudControlReport\x12\x7F\x0A'manual_cloud_control_assessment_details\x18\x0D \x01(\x0B2L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\x0A cloud_control_assessment_details\x18\x0E \x01(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\x0A\x0Dcloud_control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x12\x0A\x0Acategories\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x09 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\x0A\x12cloud_control_type\x18\x0A \x01(\x0E2:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\x0A\x10finding_category\x18\x0B \x01(\x09\x12<\x0A\x05rules\x18\x0C \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\x0A\x10finding_severity\x18\x0F \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\x0A\x10enforcement_mode\x18\x10 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \x0A\x18cloud_control_deployment\x18\x11 \x01(\x09\x12\x19\x0A\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x13 \x01(\x03\x12\$\x0A\x1Cframework_major_revision_ids\x18\x14 \x03(\x03B\x14\x0A\x12assessment_details\"I\x0A#ManualCloudControlAssessmentDetails\x12\"\x0A\x1Amanual_cloud_control_guide\x18\x01 \x03(\x09\"\x90\x01\x0A\x1DCloudControlAssessmentDetails\x12\x16\x0A\x0Efindings_count\x18\x01 \x01(\x05\x12W\x0A\x10evaluation_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\"8\x0A\x0FSimilarControls\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x12\x0A\x0Acontrol_id\x18\x02 \x01(\x09\"\xB4\x01\x0A\x1AAggregatedComplianceReport\x12e\x0A\x1Acontrol_assessment_details\x18\x01 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\x0A\x0Breport_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x8C\x02\x0A\x15TargetResourceDetails\x12\x1C\x0A\x14framework_deployment\x18\x01 \x01(\x09\x12\$\x0A\x1Ctarget_resource_display_name\x18\x02 \x01(\x09\x12\x17\x0A\x0Ftarget_resource\x18\x03 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x07 \x01(\x03\"U\x0A\x05Trend\x120\x0A\x08duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x03\x12\x1A\x0A\x0Dvalue_percent\x18\x02 \x01(\x01B\x03\xE0A\x03*\x90\x01\x0A\x0FEvaluationState\x12 \x0A\x1CEVALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17EVALUATION_STATE_PASSED\x10\x01\x12\x1B\x0A\x17EVALUATION_STATE_FAILED\x10\x02\x12!\x0A\x1DEVALUATION_STATE_NOT_ASSESSED\x10\x03*\xD9\x01\x0A\x0CFindingClass\x12\x1D\x0A\x19FINDING_CLASS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06THREAT\x10\x01\x12\x11\x0A\x0DVULNERABILITY\x10\x02\x12\x14\x0A\x10MISCONFIGURATION\x10\x03\x12\x0F\x0A\x0BOBSERVATION\x10\x04\x12\x0D\x0A\x09SCC_ERROR\x10\x05\x12\x15\x0A\x11POSTURE_VIOLATION\x10\x06\x12\x15\x0A\x11TOXIC_COMBINATION\x10\x07\x12\x17\x0A\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0E\x0A\x0ACHOKEPOINT\x10\x09*\xAC\x01\x0A\x1EFrameworkComplianceSummaryView\x121\x0A-FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED\x10\x00\x12+\x0A'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC\x10\x01\x12*\x0A&FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL\x10\x022\xD5\x11\x0A\x0AMonitoring\x12\xA8\x03\x0A ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1AQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xDE\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCE\x01\x12E/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xE0\x02\x0A\x14ListFindingSummaries\x12D.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1AE.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xBA\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xAA\x01\x129/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x123/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x124/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9F\x03\x0A\x1EFetchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xE8\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xDA\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12C/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12D/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xF3\x03\x0A\x1EListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1AO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xAF\x02\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9F\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xC4\x03\x0A\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1AS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xF4\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xE6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\x89\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAA^\x0A5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" , true); static::$is_initialized = true; diff --git a/SecurityCompliance/samples/V1/AuditClient/list_locations.php b/SecurityCompliance/samples/V1/AuditClient/list_locations.php index cda12cb9956a..d37e508bb520 100644 --- a/SecurityCompliance/samples/V1/AuditClient/list_locations.php +++ b/SecurityCompliance/samples/V1/AuditClient/list_locations.php @@ -31,6 +31,21 @@ /** * Lists information about the supported locations for this service. + +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/SecurityCompliance/samples/V1/CmEnrollmentServiceClient/list_locations.php b/SecurityCompliance/samples/V1/CmEnrollmentServiceClient/list_locations.php index 1ef3b13c9276..592ad5415f6a 100644 --- a/SecurityCompliance/samples/V1/CmEnrollmentServiceClient/list_locations.php +++ b/SecurityCompliance/samples/V1/CmEnrollmentServiceClient/list_locations.php @@ -31,6 +31,21 @@ /** * Lists information about the supported locations for this service. + +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/SecurityCompliance/samples/V1/ConfigClient/create_cloud_control.php b/SecurityCompliance/samples/V1/ConfigClient/create_cloud_control.php index a6dda4affd76..0f0a6b399f05 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/create_cloud_control.php +++ b/SecurityCompliance/samples/V1/ConfigClient/create_cloud_control.php @@ -34,15 +34,21 @@ * You can't create built-in cloud controls because those are managed by * Google. * - * @param string $formattedParent The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $formattedParent The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @param string $cloudControlId The identifier for the cloud control, which is the last segment * of the cloud control name. The format is * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * @param string $cloudControlName Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * @param string $cloudControlName Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * * The only supported location is `global`. */ function create_cloud_control_sample( diff --git a/SecurityCompliance/samples/V1/ConfigClient/create_framework.php b/SecurityCompliance/samples/V1/ConfigClient/create_framework.php index 7e017e3da8e4..ece72979d12e 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/create_framework.php +++ b/SecurityCompliance/samples/V1/ConfigClient/create_framework.php @@ -33,14 +33,20 @@ * You can't create built-in frameworks because those are managed by * Google. * - * @param string $formattedParent The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $formattedParent The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @param string $frameworkId The identifier (ID) of the framework. The ID is not the full name * of the framework; it's the last part of the full name of the framework. - * @param string $frameworkName Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * @param string $frameworkName Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. */ function create_framework_sample( diff --git a/SecurityCompliance/samples/V1/ConfigClient/delete_cloud_control.php b/SecurityCompliance/samples/V1/ConfigClient/delete_cloud_control.php index e0b9385e08b2..32f1edcaa513 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/delete_cloud_control.php +++ b/SecurityCompliance/samples/V1/ConfigClient/delete_cloud_control.php @@ -37,8 +37,12 @@ * by a framework. * - You can't restore a deleted cloud control. This action is permanent. * - * @param string $formattedName The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * @param string $formattedName The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::cloudControlName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/delete_framework.php b/SecurityCompliance/samples/V1/ConfigClient/delete_framework.php index 16d2c560d9bb..d96c6d0708b7 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/delete_framework.php +++ b/SecurityCompliance/samples/V1/ConfigClient/delete_framework.php @@ -36,8 +36,11 @@ * - You can't delete frameworks that are deployed to a resource. * - You can't restore a deleted framework. This action is permanent. * - * @param string $formattedName The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * @param string $formattedName The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::frameworkName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/get_cloud_control.php b/SecurityCompliance/samples/V1/ConfigClient/get_cloud_control.php index 626f37c43c49..148c2df289fb 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/get_cloud_control.php +++ b/SecurityCompliance/samples/V1/ConfigClient/get_cloud_control.php @@ -37,8 +37,12 @@ * To retrieve a specific major version, include `major_revision_id` in * the request. * - * @param string $formattedName The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * @param string $formattedName The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::cloudControlName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/get_framework.php b/SecurityCompliance/samples/V1/ConfigClient/get_framework.php index bf1f9a5cce22..210d9f0398f6 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/get_framework.php +++ b/SecurityCompliance/samples/V1/ConfigClient/get_framework.php @@ -35,8 +35,12 @@ * To retrieve a specific major version, include `major_revision_id` in * the request. * - * @param string $formattedName The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * @param string $formattedName The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::frameworkName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/list_cloud_controls.php b/SecurityCompliance/samples/V1/ConfigClient/list_cloud_controls.php index ee2465c00d70..fa5a45c14074 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/list_cloud_controls.php +++ b/SecurityCompliance/samples/V1/ConfigClient/list_cloud_controls.php @@ -35,8 +35,10 @@ * is returned. * This method supports pagination. * - * @param string $formattedParent The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $formattedParent The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/list_frameworks.php b/SecurityCompliance/samples/V1/ConfigClient/list_frameworks.php index fa797adcb105..b327f112aeab 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/list_frameworks.php +++ b/SecurityCompliance/samples/V1/ConfigClient/list_frameworks.php @@ -35,8 +35,10 @@ * returned. * This method supports pagination. * - * @param string $formattedParent The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $formattedParent The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/ConfigClient/list_locations.php b/SecurityCompliance/samples/V1/ConfigClient/list_locations.php index 42b126ad9ad6..309afe5dc8d2 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/list_locations.php +++ b/SecurityCompliance/samples/V1/ConfigClient/list_locations.php @@ -31,6 +31,21 @@ /** * Lists information about the supported locations for this service. + +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/SecurityCompliance/samples/V1/ConfigClient/update_cloud_control.php b/SecurityCompliance/samples/V1/ConfigClient/update_cloud_control.php index 28d430a9c64e..b3cac353badb 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/update_cloud_control.php +++ b/SecurityCompliance/samples/V1/ConfigClient/update_cloud_control.php @@ -42,8 +42,12 @@ * You can only update cloud controls with the `CUSTOM` type. * A successful update creates a new version of the cloud control. * - * @param string $cloudControlName Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * @param string $cloudControlName Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * * The only supported location is `global`. */ function update_cloud_control_sample(string $cloudControlName): void diff --git a/SecurityCompliance/samples/V1/ConfigClient/update_framework.php b/SecurityCompliance/samples/V1/ConfigClient/update_framework.php index efd95c9b62ee..038fafc96386 100644 --- a/SecurityCompliance/samples/V1/ConfigClient/update_framework.php +++ b/SecurityCompliance/samples/V1/ConfigClient/update_framework.php @@ -42,8 +42,12 @@ * You can only update frameworks with the `CUSTOM` type. * A successful update creates a new version of the framework. * - * @param string $frameworkName Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * @param string $frameworkName Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. */ function update_framework_sample(string $frameworkName): void diff --git a/SecurityCompliance/samples/V1/DeploymentClient/create_framework_deployment.php b/SecurityCompliance/samples/V1/DeploymentClient/create_framework_deployment.php index cbd7264c80fe..0e3165f425f1 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/create_framework_deployment.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/create_framework_deployment.php @@ -42,20 +42,26 @@ * those resources using the framework's cloud controls. * * @param string $formattedParent The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. - * @param string $frameworkDeploymentFrameworkFramework The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * @param string $frameworkDeploymentCloudControlMetadataCloudControlDetailsName The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + * @param string $formattedFrameworkDeploymentFrameworkFramework The major version of the framework. If not specified, the version + * corresponds to the latest version of the framework. Please see + * {@see DeploymentClient::frameworkName()} for help formatting this field. + * @param string $frameworkDeploymentCloudControlMetadataCloudControlDetailsName The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * * The only supported location is `global`. * @param int $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId The major version of the cloud control. * @param int $frameworkDeploymentCloudControlMetadataEnforcementMode The enforcement mode of the cloud control. */ function create_framework_deployment_sample( string $formattedParent, - string $frameworkDeploymentFrameworkFramework, + string $formattedFrameworkDeploymentFrameworkFramework, string $frameworkDeploymentCloudControlMetadataCloudControlDetailsName, int $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId, int $frameworkDeploymentCloudControlMetadataEnforcementMode @@ -66,7 +72,7 @@ function create_framework_deployment_sample( // Prepare the request message. $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); $frameworkDeploymentFramework = (new FrameworkReference()) - ->setFramework($frameworkDeploymentFrameworkFramework); + ->setFramework($formattedFrameworkDeploymentFrameworkFramework); $frameworkDeploymentCloudControlMetadataCloudControlDetails = (new CloudControlDetails()) ->setName($frameworkDeploymentCloudControlMetadataCloudControlDetailsName) ->setMajorRevisionId($frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId); @@ -114,14 +120,18 @@ function create_framework_deployment_sample( function callSample(): void { $formattedParent = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkDeploymentFrameworkFramework = '[FRAMEWORK]'; + $formattedFrameworkDeploymentFrameworkFramework = DeploymentClient::frameworkName( + '[ORGANIZATION]', + '[LOCATION]', + '[FRAMEWORK]' + ); $frameworkDeploymentCloudControlMetadataCloudControlDetailsName = '[NAME]'; $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId = 0; $frameworkDeploymentCloudControlMetadataEnforcementMode = EnforcementMode::ENFORCEMENT_MODE_UNSPECIFIED; create_framework_deployment_sample( $formattedParent, - $frameworkDeploymentFrameworkFramework, + $formattedFrameworkDeploymentFrameworkFramework, $frameworkDeploymentCloudControlMetadataCloudControlDetailsName, $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId, $frameworkDeploymentCloudControlMetadataEnforcementMode diff --git a/SecurityCompliance/samples/V1/DeploymentClient/delete_framework_deployment.php b/SecurityCompliance/samples/V1/DeploymentClient/delete_framework_deployment.php index 23e5020c1b51..450359393d6b 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/delete_framework_deployment.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/delete_framework_deployment.php @@ -34,7 +34,9 @@ * * @param string $formattedName The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/DeploymentClient/get_cloud_control_deployment.php b/SecurityCompliance/samples/V1/DeploymentClient/get_cloud_control_deployment.php index a5fbb3577383..d9c1813bb805 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/get_cloud_control_deployment.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/get_cloud_control_deployment.php @@ -32,7 +32,9 @@ * Gets details about a cloud control deployment. * * @param string $formattedName The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::cloudControlDeploymentName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/DeploymentClient/get_framework_deployment.php b/SecurityCompliance/samples/V1/DeploymentClient/get_framework_deployment.php index 440bf2cb5393..7120b75f6bda 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/get_framework_deployment.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/get_framework_deployment.php @@ -32,7 +32,9 @@ * Gets details about a framework deployment. * * @param string $formattedName The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/DeploymentClient/list_cloud_control_deployments.php b/SecurityCompliance/samples/V1/DeploymentClient/list_cloud_control_deployments.php index 614551b9a4b8..67e1e77c3734 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/list_cloud_control_deployments.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/list_cloud_control_deployments.php @@ -33,8 +33,9 @@ * Lists the cloud conrol deployments in a given parent resource. * * @param string $formattedParent The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. Please see + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. */ function list_cloud_control_deployments_sample(string $formattedParent): void diff --git a/SecurityCompliance/samples/V1/DeploymentClient/list_framework_deployments.php b/SecurityCompliance/samples/V1/DeploymentClient/list_framework_deployments.php index 4a2b2f486982..f2ccd3b6e305 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/list_framework_deployments.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/list_framework_deployments.php @@ -33,7 +33,9 @@ * Lists the framework deployments in a given parent resource. * * @param string $formattedParent The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. */ diff --git a/SecurityCompliance/samples/V1/DeploymentClient/list_locations.php b/SecurityCompliance/samples/V1/DeploymentClient/list_locations.php index dbb7cb25ad4d..dd3bf71e0b90 100644 --- a/SecurityCompliance/samples/V1/DeploymentClient/list_locations.php +++ b/SecurityCompliance/samples/V1/DeploymentClient/list_locations.php @@ -31,6 +31,21 @@ /** * Lists information about the supported locations for this service. + +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/SecurityCompliance/samples/V1/MonitoringClient/list_locations.php b/SecurityCompliance/samples/V1/MonitoringClient/list_locations.php index b085d5e35c8d..04e28877680d 100644 --- a/SecurityCompliance/samples/V1/MonitoringClient/list_locations.php +++ b/SecurityCompliance/samples/V1/MonitoringClient/list_locations.php @@ -31,6 +31,21 @@ /** * Lists information about the supported locations for this service. + +This method lists locations based on the resource scope provided in +the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * +**Global locations**: If `name` is empty, the method lists the +public locations available to all projects. * **Project-specific +locations**: If `name` follows the format +`projects/{project}`, the method lists locations visible to that +specific project. This includes public, private, or other +project-specific locations enabled for the project. + +For gRPC and client library implementations, the resource name is +passed as the `name` field. For direct service calls, the resource +name is +incorporated into the request path based on the specific service +implementation and version. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/SecurityCompliance/src/V1/Client/AuditClient.php b/SecurityCompliance/src/V1/Client/AuditClient.php index 970c83cb454b..31eb65f53f2e 100644 --- a/SecurityCompliance/src/V1/Client/AuditClient.php +++ b/SecurityCompliance/src/V1/Client/AuditClient.php @@ -511,6 +511,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see AuditClient::listLocationsAsync()} . * diff --git a/SecurityCompliance/src/V1/Client/CmEnrollmentServiceClient.php b/SecurityCompliance/src/V1/Client/CmEnrollmentServiceClient.php index 612605a73bb9..837c1c6f3c63 100644 --- a/SecurityCompliance/src/V1/Client/CmEnrollmentServiceClient.php +++ b/SecurityCompliance/src/V1/Client/CmEnrollmentServiceClient.php @@ -359,6 +359,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see CmEnrollmentServiceClient::listLocationsAsync()} . * diff --git a/SecurityCompliance/src/V1/Client/ConfigClient.php b/SecurityCompliance/src/V1/Client/ConfigClient.php index d1c1a76a966e..80e3db0f6c69 100644 --- a/SecurityCompliance/src/V1/Client/ConfigClient.php +++ b/SecurityCompliance/src/V1/Client/ConfigClient.php @@ -161,6 +161,23 @@ public static function frameworkName(string $organization, string $location, str ]); } + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * organization_location resource. @@ -178,13 +195,103 @@ public static function organizationLocationName(string $organization, string $lo ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_cloud_control resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControl + * + * @return string The formatted organization_location_cloud_control resource. + */ + public static function organizationLocationCloudControlName( + string $organization, + string $location, + string $cloudControl + ): string { + return self::getPathTemplate('organizationLocationCloudControl')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control' => $cloudControl, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted organization_location_framework resource. + */ + public static function organizationLocationFrameworkName( + string $organization, + string $location, + string $framework + ): string { + return self::getPathTemplate('organizationLocationFramework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_cloud_control resource. + * + * @param string $project + * @param string $location + * @param string $cloudControl + * + * @return string The formatted project_location_cloud_control resource. + */ + public static function projectLocationCloudControlName( + string $project, + string $location, + string $cloudControl + ): string { + return self::getPathTemplate('projectLocationCloudControl')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_control' => $cloudControl, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework resource. + * + * @param string $project + * @param string $location + * @param string $framework + * + * @return string The formatted project_location_framework resource. + */ + public static function projectLocationFrameworkName(string $project, string $location, string $framework): string + { + return self::getPathTemplate('projectLocationFramework')->render([ + 'project' => $project, + 'location' => $location, + 'framework' => $framework, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern * - cloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - location: projects/{project}/locations/{location} * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationCloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - projectLocationCloudControl: projects/{project}/locations/{location}/cloudControls/{cloud_control} + * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} * * 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 @@ -629,6 +736,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see ConfigClient::listLocationsAsync()} . * diff --git a/SecurityCompliance/src/V1/Client/DeploymentClient.php b/SecurityCompliance/src/V1/Client/DeploymentClient.php index 5fec4f5630d4..57d02a157bd1 100644 --- a/SecurityCompliance/src/V1/Client/DeploymentClient.php +++ b/SecurityCompliance/src/V1/Client/DeploymentClient.php @@ -190,6 +190,25 @@ public static function cloudControlDeploymentName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a framework + * resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted framework resource. + */ + public static function frameworkName(string $organization, string $location, string $framework): string + { + return self::getPathTemplate('framework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * framework_deployment resource. @@ -212,6 +231,23 @@ public static function frameworkDeploymentName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * organization_location resource. @@ -229,13 +265,150 @@ public static function organizationLocationName(string $organization, string $lo ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_cloud_control_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $cloudControlDeployment + * + * @return string The formatted organization_location_cloud_control_deployment resource. + */ + public static function organizationLocationCloudControlDeploymentName( + string $organization, + string $location, + string $cloudControlDeployment + ): string { + return self::getPathTemplate('organizationLocationCloudControlDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'cloud_control_deployment' => $cloudControlDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework resource. + * + * @param string $organization + * @param string $location + * @param string $framework + * + * @return string The formatted organization_location_framework resource. + */ + public static function organizationLocationFrameworkName( + string $organization, + string $location, + string $framework + ): string { + return self::getPathTemplate('organizationLocationFramework')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_framework_deployment resource. + * + * @param string $organization + * @param string $location + * @param string $frameworkDeployment + * + * @return string The formatted organization_location_framework_deployment resource. + */ + public static function organizationLocationFrameworkDeploymentName( + string $organization, + string $location, + string $frameworkDeployment + ): string { + return self::getPathTemplate('organizationLocationFrameworkDeployment')->render([ + 'organization' => $organization, + 'location' => $location, + 'framework_deployment' => $frameworkDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_cloud_control_deployment resource. + * + * @param string $project + * @param string $location + * @param string $cloudControlDeployment + * + * @return string The formatted project_location_cloud_control_deployment resource. + */ + public static function projectLocationCloudControlDeploymentName( + string $project, + string $location, + string $cloudControlDeployment + ): string { + return self::getPathTemplate('projectLocationCloudControlDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_control_deployment' => $cloudControlDeployment, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework resource. + * + * @param string $project + * @param string $location + * @param string $framework + * + * @return string The formatted project_location_framework resource. + */ + public static function projectLocationFrameworkName(string $project, string $location, string $framework): string + { + return self::getPathTemplate('projectLocationFramework')->render([ + 'project' => $project, + 'location' => $location, + 'framework' => $framework, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_framework_deployment resource. + * + * @param string $project + * @param string $location + * @param string $frameworkDeployment + * + * @return string The formatted project_location_framework_deployment resource. + */ + public static function projectLocationFrameworkDeploymentName( + string $project, + string $location, + string $frameworkDeployment + ): string { + return self::getPathTemplate('projectLocationFrameworkDeployment')->render([ + 'project' => $project, + 'location' => $location, + 'framework_deployment' => $frameworkDeployment, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern * - cloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} * - frameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} + * - location: projects/{project}/locations/{location} * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationCloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} + * - organizationLocationFrameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} + * - projectLocationCloudControlDeployment: projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} + * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} + * - projectLocationFrameworkDeployment: projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment} * * 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 @@ -541,6 +714,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see DeploymentClient::listLocationsAsync()} . * diff --git a/SecurityCompliance/src/V1/Client/MonitoringClient.php b/SecurityCompliance/src/V1/Client/MonitoringClient.php index 5254fae65ddb..516a269de6fa 100644 --- a/SecurityCompliance/src/V1/Client/MonitoringClient.php +++ b/SecurityCompliance/src/V1/Client/MonitoringClient.php @@ -538,6 +538,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * + **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * * The async variant is {@see MonitoringClient::listLocationsAsync()} . * diff --git a/SecurityCompliance/src/V1/CloudControl.php b/SecurityCompliance/src/V1/CloudControl.php index f6a0fd3033c5..118fbd7806ee 100644 --- a/SecurityCompliance/src/V1/CloudControl.php +++ b/SecurityCompliance/src/V1/CloudControl.php @@ -17,8 +17,11 @@ class CloudControl extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; @@ -126,8 +129,11 @@ class CloudControl extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * @type int|string $major_revision_id * Output only. The major version of the cloud control, which is incremented @@ -175,8 +181,11 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; @@ -188,8 +197,11 @@ public function getName() } /** - * Required. Identifier. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + * Required. Identifier. The name of the cloud control, in either of the + * formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; diff --git a/SecurityCompliance/src/V1/CloudControlCategory.php b/SecurityCompliance/src/V1/CloudControlCategory.php index 006bac0f34f8..407f7d622f04 100644 --- a/SecurityCompliance/src/V1/CloudControlCategory.php +++ b/SecurityCompliance/src/V1/CloudControlCategory.php @@ -109,6 +109,30 @@ class CloudControlCategory * Generated from protobuf enum CC_CATEGORY_BCDR = 15; */ const CC_CATEGORY_BCDR = 15; + /** + * The admin access category. + * + * Generated from protobuf enum CC_CATEGORY_ADMIN_ACCESS = 16; + */ + const CC_CATEGORY_ADMIN_ACCESS = 16; + /** + * DRZ (Data Residency). + * + * Generated from protobuf enum CC_CATEGORY_DATA_RESIDENCY = 17; + */ + const CC_CATEGORY_DATA_RESIDENCY = 17; + /** + * RUR (Resource Usage Restriction). + * + * Generated from protobuf enum CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + */ + const CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + /** + * SERVICE SPECIFIC + * + * Generated from protobuf enum CC_CATEGORY_SERVICE_SPECIFIC = 19; + */ + const CC_CATEGORY_SERVICE_SPECIFIC = 19; private static $valueToName = [ self::CLOUD_CONTROL_CATEGORY_UNSPECIFIED => 'CLOUD_CONTROL_CATEGORY_UNSPECIFIED', @@ -127,6 +151,10 @@ class CloudControlCategory self::CC_CATEGORY_VULNERABILITY_MANAGEMENT => 'CC_CATEGORY_VULNERABILITY_MANAGEMENT', self::CC_CATEGORY_PRIVACY => 'CC_CATEGORY_PRIVACY', self::CC_CATEGORY_BCDR => 'CC_CATEGORY_BCDR', + self::CC_CATEGORY_ADMIN_ACCESS => 'CC_CATEGORY_ADMIN_ACCESS', + self::CC_CATEGORY_DATA_RESIDENCY => 'CC_CATEGORY_DATA_RESIDENCY', + self::CC_CATEGORY_RESOURCE_USAGE_RESTRICTION => 'CC_CATEGORY_RESOURCE_USAGE_RESTRICTION', + self::CC_CATEGORY_SERVICE_SPECIFIC => 'CC_CATEGORY_SERVICE_SPECIFIC', ]; public static function name($value) diff --git a/SecurityCompliance/src/V1/CloudControlDeployment.php b/SecurityCompliance/src/V1/CloudControlDeployment.php index fec0d3ea1fb0..e8b5721a137b 100644 --- a/SecurityCompliance/src/V1/CloudControlDeployment.php +++ b/SecurityCompliance/src/V1/CloudControlDeployment.php @@ -20,7 +20,9 @@ class CloudControlDeployment extends \Google\Protobuf\Internal\Message { /** * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -112,7 +114,9 @@ class CloudControlDeployment extends \Google\Protobuf\Internal\Message * * @type string $name * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config * Required. The details of the target resource that the cloud control is @@ -156,7 +160,9 @@ public function __construct($data = NULL) { /** * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -169,7 +175,9 @@ public function getName() /** * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/SecurityCompliance/src/V1/CloudControlDeploymentReference.php b/SecurityCompliance/src/V1/CloudControlDeploymentReference.php index 8641b53bc4d0..3a86d1785e58 100644 --- a/SecurityCompliance/src/V1/CloudControlDeploymentReference.php +++ b/SecurityCompliance/src/V1/CloudControlDeploymentReference.php @@ -17,7 +17,9 @@ class CloudControlDeploymentReference extends \Google\Protobuf\Internal\Message { /** * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { @@ -32,7 +34,9 @@ class CloudControlDeploymentReference extends \Google\Protobuf\Internal\Message * * @type string $cloud_control_deployment * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * } */ @@ -43,7 +47,9 @@ public function __construct($data = NULL) { /** * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { @@ -56,7 +62,9 @@ public function getCloudControlDeployment() /** * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/CloudControlDetails.php b/SecurityCompliance/src/V1/CloudControlDetails.php index a30572b4ce54..280eb25d3ae0 100644 --- a/SecurityCompliance/src/V1/CloudControlDetails.php +++ b/SecurityCompliance/src/V1/CloudControlDetails.php @@ -16,8 +16,10 @@ class CloudControlDetails extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -46,8 +48,10 @@ class CloudControlDetails extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * @type int|string $major_revision_id * Required. The major version of the cloud control. @@ -64,8 +68,10 @@ public function __construct($data = NULL) { } /** - * Required. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -77,8 +83,10 @@ public function getName() } /** - * Required. The name of the cloud control, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + * Required. The name of the cloud control, in one of the following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php b/SecurityCompliance/src/V1/Control.php similarity index 100% rename from owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control.php rename to SecurityCompliance/src/V1/Control.php diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php b/SecurityCompliance/src/V1/Control/Family.php similarity index 100% rename from owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Control/Family.php rename to SecurityCompliance/src/V1/Control/Family.php diff --git a/SecurityCompliance/src/V1/CreateCloudControlRequest.php b/SecurityCompliance/src/V1/CreateCloudControlRequest.php index 2fe1e8f695dd..cdd431a88d09 100644 --- a/SecurityCompliance/src/V1/CreateCloudControlRequest.php +++ b/SecurityCompliance/src/V1/CreateCloudControlRequest.php @@ -16,8 +16,9 @@ class CreateCloudControlRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -39,8 +40,10 @@ class CreateCloudControlRequest extends \Google\Protobuf\Internal\Message protected $cloud_control = null; /** - * @param string $parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl Required. The cloud control that's being created. @@ -67,8 +70,9 @@ public static function build(string $parent, \Google\Cloud\CloudSecurityComplian * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * @type string $cloud_control_id * Required. The identifier for the cloud control, which is the last segment @@ -84,8 +88,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -97,8 +102,9 @@ public function getParent() } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}`. + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/CreateFrameworkDeploymentRequest.php b/SecurityCompliance/src/V1/CreateFrameworkDeploymentRequest.php index cb4e61171d49..cbdf72cff0c6 100644 --- a/SecurityCompliance/src/V1/CreateFrameworkDeploymentRequest.php +++ b/SecurityCompliance/src/V1/CreateFrameworkDeploymentRequest.php @@ -17,7 +17,9 @@ class CreateFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message { /** * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -40,7 +42,9 @@ class CreateFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message /** * @param string $parent Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $frameworkDeployment Required. The framework deployment that you're creating. @@ -68,7 +72,9 @@ public static function build(string $parent, \Google\Cloud\CloudSecurityComplian * * @type string $parent * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. * @type string $framework_deployment_id * Optional. An identifier for the framework deployment that's unique in scope @@ -85,7 +91,9 @@ public function __construct($data = NULL) { /** * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -98,7 +106,9 @@ public function getParent() /** * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * Only the global location is supported. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/CreateFrameworkRequest.php b/SecurityCompliance/src/V1/CreateFrameworkRequest.php index 5d7fe0b2d8a7..9b46fc4e54f7 100644 --- a/SecurityCompliance/src/V1/CreateFrameworkRequest.php +++ b/SecurityCompliance/src/V1/CreateFrameworkRequest.php @@ -16,8 +16,9 @@ class CreateFrameworkRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -38,8 +39,10 @@ class CreateFrameworkRequest extends \Google\Protobuf\Internal\Message protected $framework = null; /** - * @param string $parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework Required. The resource being created. @@ -65,8 +68,9 @@ public static function build(string $parent, \Google\Cloud\CloudSecurityComplian * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * @type string $framework_id * Required. The identifier (ID) of the framework. The ID is not the full name @@ -81,8 +85,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -94,8 +99,9 @@ public function getParent() } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/DeleteCloudControlRequest.php b/SecurityCompliance/src/V1/DeleteCloudControlRequest.php index 8382c25c23de..d26d096a439a 100644 --- a/SecurityCompliance/src/V1/DeleteCloudControlRequest.php +++ b/SecurityCompliance/src/V1/DeleteCloudControlRequest.php @@ -16,8 +16,11 @@ class DeleteCloudControlRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -25,8 +28,12 @@ class DeleteCloudControlRequest extends \Google\Protobuf\Internal\Message protected $name = ''; /** - * @param string $name Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * @param string $name Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::cloudControlName()} for help formatting this field. * @@ -47,8 +54,11 @@ public static function build(string $name): self * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. * The only supported location is `global`. * } */ @@ -58,8 +68,11 @@ public function __construct($data = NULL) { } /** - * Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -71,8 +84,11 @@ public function getName() } /** - * Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * Required. The name of the cloud control to delete, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + * or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/DeleteFrameworkDeploymentRequest.php b/SecurityCompliance/src/V1/DeleteFrameworkDeploymentRequest.php index 69f1f5dfa3fa..67cdc6b24dff 100644 --- a/SecurityCompliance/src/V1/DeleteFrameworkDeploymentRequest.php +++ b/SecurityCompliance/src/V1/DeleteFrameworkDeploymentRequest.php @@ -18,7 +18,9 @@ class DeleteFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message /** * Required. The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -39,7 +41,9 @@ class DeleteFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message /** * @param string $name Required. The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. * @@ -62,7 +66,9 @@ public static function build(string $name): self * @type string $name * Required. The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @type string $etag * Optional. An opaque identifier for the current version of the resource. @@ -81,7 +87,9 @@ public function __construct($data = NULL) { /** * Required. The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -95,7 +103,9 @@ public function getName() /** * Required. The name of the framework deployment that you want to delete, * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/DeleteFrameworkRequest.php b/SecurityCompliance/src/V1/DeleteFrameworkRequest.php index bff1e74f7601..f580d88cfd09 100644 --- a/SecurityCompliance/src/V1/DeleteFrameworkRequest.php +++ b/SecurityCompliance/src/V1/DeleteFrameworkRequest.php @@ -16,8 +16,10 @@ class DeleteFrameworkRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -25,8 +27,11 @@ class DeleteFrameworkRequest extends \Google\Protobuf\Internal\Message protected $name = ''; /** - * @param string $name Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * @param string $name Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::frameworkName()} for help formatting this field. * @@ -47,8 +52,10 @@ public static function build(string $name): self * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * } */ @@ -58,8 +65,10 @@ public function __construct($data = NULL) { } /** - * Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -71,8 +80,10 @@ public function getName() } /** - * Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/DeploymentState.php b/SecurityCompliance/src/V1/DeploymentState.php index ab687692373c..96373523ec86 100644 --- a/SecurityCompliance/src/V1/DeploymentState.php +++ b/SecurityCompliance/src/V1/DeploymentState.php @@ -37,6 +37,12 @@ class DeploymentState * Generated from protobuf enum DEPLOYMENT_STATE_DELETING = 3; */ const DEPLOYMENT_STATE_DELETING = 3; + /** + * Deployment is being updated. + * + * Generated from protobuf enum DEPLOYMENT_STATE_UPDATING = 8; + */ + const DEPLOYMENT_STATE_UPDATING = 8; /** * Deployment has failed. All the changes made by the deployment were * successfully rolled back. You can retry or delete a deployment that's @@ -73,6 +79,7 @@ class DeploymentState self::DEPLOYMENT_STATE_VALIDATING => 'DEPLOYMENT_STATE_VALIDATING', self::DEPLOYMENT_STATE_CREATING => 'DEPLOYMENT_STATE_CREATING', self::DEPLOYMENT_STATE_DELETING => 'DEPLOYMENT_STATE_DELETING', + self::DEPLOYMENT_STATE_UPDATING => 'DEPLOYMENT_STATE_UPDATING', self::DEPLOYMENT_STATE_FAILED => 'DEPLOYMENT_STATE_FAILED', self::DEPLOYMENT_STATE_READY => 'DEPLOYMENT_STATE_READY', self::DEPLOYMENT_STATE_PARTIALLY_DEPLOYED => 'DEPLOYMENT_STATE_PARTIALLY_DEPLOYED', diff --git a/SecurityCompliance/src/V1/FetchFrameworkComplianceReportRequest.php b/SecurityCompliance/src/V1/FetchFrameworkComplianceReportRequest.php index ca5dea94ace6..5ff3fe5f3de3 100644 --- a/SecurityCompliance/src/V1/FetchFrameworkComplianceReportRequest.php +++ b/SecurityCompliance/src/V1/FetchFrameworkComplianceReportRequest.php @@ -27,6 +27,12 @@ class FetchFrameworkComplianceReportRequest extends \Google\Protobuf\Internal\Me * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ protected $end_time = null; + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; /** * @param string $name Required. The name of the framework compliance report to retrieve. Please see @@ -52,6 +58,8 @@ public static function build(string $name): self * Required. The name of the framework compliance report to retrieve. * @type \Google\Protobuf\Timestamp $end_time * Optional. The end time of the report. + * @type string $filter + * Optional. The filtering results. * } */ public function __construct($data = NULL) { @@ -121,5 +129,31 @@ public function setEndTime($var) return $this; } + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filtering results. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + } diff --git a/SecurityCompliance/src/V1/Framework.php b/SecurityCompliance/src/V1/Framework.php index 3200862bc98f..cc2ddf5541a7 100644 --- a/SecurityCompliance/src/V1/Framework.php +++ b/SecurityCompliance/src/V1/Framework.php @@ -18,8 +18,11 @@ class Framework extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; @@ -91,8 +94,11 @@ class Framework extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * @type int|string $major_revision_id * Output only. The major version of the framework, which is incremented in @@ -124,8 +130,11 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; @@ -137,8 +146,11 @@ public function getName() } /** - * Required. Identifier. The name of the framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + * Required. Identifier. The name of the framework, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; diff --git a/SecurityCompliance/src/V1/FrameworkComplianceSummary.php b/SecurityCompliance/src/V1/FrameworkComplianceSummary.php index dc09e8103099..da5b4ac51a34 100644 --- a/SecurityCompliance/src/V1/FrameworkComplianceSummary.php +++ b/SecurityCompliance/src/V1/FrameworkComplianceSummary.php @@ -75,6 +75,18 @@ class FrameworkComplianceSummary extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; */ private $target_resource_details; + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $finding_count = 0; + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $controls_passing_trend = null; /** * Constructor. @@ -102,6 +114,10 @@ class FrameworkComplianceSummary extends \Google\Protobuf\Internal\Message * The minor revision ID of the framework. * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $target_resource_details * The target resource details for the framework. + * @type int|string $finding_count + * Output only. The count of the findings generated against the framework. + * @type \Google\Cloud\CloudSecurityCompliance\V1\Trend $controls_passing_trend + * Output only. The trend of controls that are passing for the given duration. * } */ public function __construct($data = NULL) { @@ -379,5 +395,67 @@ public function setTargetResourceDetails($var) return $this; } + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getFindingCount() + { + return $this->finding_count; + } + + /** + * Output only. The count of the findings generated against the framework. + * + * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setFindingCount($var) + { + GPBUtil::checkInt64($var); + $this->finding_count = $var; + + return $this; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\CloudSecurityCompliance\V1\Trend|null + */ + public function getControlsPassingTrend() + { + return $this->controls_passing_trend; + } + + public function hasControlsPassingTrend() + { + return isset($this->controls_passing_trend); + } + + public function clearControlsPassingTrend() + { + unset($this->controls_passing_trend); + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\CloudSecurityCompliance\V1\Trend $var + * @return $this + */ + public function setControlsPassingTrend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Trend::class); + $this->controls_passing_trend = $var; + + return $this; + } + } diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php b/SecurityCompliance/src/V1/FrameworkComplianceSummaryView.php similarity index 100% rename from owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummaryView.php rename to SecurityCompliance/src/V1/FrameworkComplianceSummaryView.php diff --git a/SecurityCompliance/src/V1/FrameworkDeployment.php b/SecurityCompliance/src/V1/FrameworkDeployment.php index 1c733f2b95c3..8adaa72b847b 100644 --- a/SecurityCompliance/src/V1/FrameworkDeployment.php +++ b/SecurityCompliance/src/V1/FrameworkDeployment.php @@ -19,7 +19,9 @@ class FrameworkDeployment extends \Google\Protobuf\Internal\Message { /** * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -126,7 +128,9 @@ class FrameworkDeployment extends \Google\Protobuf\Internal\Message * * @type string $name * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config * Required. The details of the target resource that you want to deploy the @@ -185,7 +189,9 @@ public function __construct($data = NULL) { /** * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -198,7 +204,9 @@ public function getName() /** * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/SecurityCompliance/src/V1/FrameworkDeploymentReference.php b/SecurityCompliance/src/V1/FrameworkDeploymentReference.php index e6bf0a16a06a..a4454a56ccdd 100644 --- a/SecurityCompliance/src/V1/FrameworkDeploymentReference.php +++ b/SecurityCompliance/src/V1/FrameworkDeploymentReference.php @@ -17,7 +17,9 @@ class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message { /** * Output only. The name of the framework deployment, in the format - * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { @@ -29,7 +31,7 @@ class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -54,7 +56,9 @@ class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message * * @type string $framework_deployment * Output only. The name of the framework deployment, in the format - * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $framework_reference * Optional. The reference to the framework that this deployment is for. @@ -62,7 +66,7 @@ class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -79,7 +83,9 @@ public function __construct($data = NULL) { /** * Output only. The name of the framework deployment, in the format - * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { @@ -92,7 +98,9 @@ public function getFrameworkDeployment() /** * Output only. The name of the framework deployment, in the format - * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { @@ -113,7 +121,7 @@ public function setFrameworkDeployment($var) * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -143,7 +151,7 @@ public function clearFrameworkReference() * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` diff --git a/SecurityCompliance/src/V1/FrameworkReference.php b/SecurityCompliance/src/V1/FrameworkReference.php index 93776d015113..8d9972d3e917 100644 --- a/SecurityCompliance/src/V1/FrameworkReference.php +++ b/SecurityCompliance/src/V1/FrameworkReference.php @@ -9,8 +9,9 @@ use Google\Protobuf\RepeatedField; /** - * The reference of a framework, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * The reference of a framework, in one of the following formats: + * - `organizations/{organization}/locations/{location}/frameworks/{framework}` + * - `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf message google.cloud.cloudsecuritycompliance.v1.FrameworkReference @@ -21,7 +22,7 @@ class FrameworkReference extends \Google\Protobuf\Internal\Message * Required. The major version of the framework. If not specified, the version * corresponds to the latest version of the framework. * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ protected $framework = ''; /** @@ -55,7 +56,7 @@ public function __construct($data = NULL) { * Required. The major version of the framework. If not specified, the version * corresponds to the latest version of the framework. * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getFramework() @@ -67,7 +68,7 @@ public function getFramework() * Required. The major version of the framework. If not specified, the version * corresponds to the latest version of the framework. * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/SecurityCompliance/src/V1/GetCloudControlDeploymentRequest.php b/SecurityCompliance/src/V1/GetCloudControlDeploymentRequest.php index 8cb4434eab51..9951bc54e580 100644 --- a/SecurityCompliance/src/V1/GetCloudControlDeploymentRequest.php +++ b/SecurityCompliance/src/V1/GetCloudControlDeploymentRequest.php @@ -17,7 +17,9 @@ class GetCloudControlDeploymentRequest extends \Google\Protobuf\Internal\Message { /** * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -26,7 +28,9 @@ class GetCloudControlDeploymentRequest extends \Google\Protobuf\Internal\Message /** * @param string $name Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::cloudControlDeploymentName()} for help formatting this field. * @@ -48,7 +52,9 @@ public static function build(string $name): self * * @type string $name * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * } */ @@ -59,7 +65,9 @@ public function __construct($data = NULL) { /** * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -72,7 +80,9 @@ public function getName() /** * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/GetCloudControlRequest.php b/SecurityCompliance/src/V1/GetCloudControlRequest.php index 94d270905f56..ae33174e107a 100644 --- a/SecurityCompliance/src/V1/GetCloudControlRequest.php +++ b/SecurityCompliance/src/V1/GetCloudControlRequest.php @@ -16,8 +16,11 @@ class GetCloudControlRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -32,8 +35,12 @@ class GetCloudControlRequest extends \Google\Protobuf\Internal\Message protected $major_revision_id = 0; /** - * @param string $name Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * @param string $name Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::cloudControlName()} for help formatting this field. * @@ -54,8 +61,11 @@ public static function build(string $name): self * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * @type int|string $major_revision_id * Optional. The major version of the cloud control to retrieve. If not @@ -68,8 +78,11 @@ public function __construct($data = NULL) { } /** - * Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -81,8 +94,11 @@ public function getName() } /** - * Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + * Required. The name of the cloud control to retrieve, in one of the + * following formats: + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or + * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/GetFrameworkDeploymentRequest.php b/SecurityCompliance/src/V1/GetFrameworkDeploymentRequest.php index 6bb4fe827060..3c26eec56b32 100644 --- a/SecurityCompliance/src/V1/GetFrameworkDeploymentRequest.php +++ b/SecurityCompliance/src/V1/GetFrameworkDeploymentRequest.php @@ -17,7 +17,9 @@ class GetFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message { /** * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -26,7 +28,9 @@ class GetFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message /** * @param string $name Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. Please see * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. * @@ -48,7 +52,9 @@ public static function build(string $name): self * * @type string $name * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * } */ @@ -59,7 +65,9 @@ public function __construct($data = NULL) { /** * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -72,7 +80,9 @@ public function getName() /** * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or + * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/GetFrameworkRequest.php b/SecurityCompliance/src/V1/GetFrameworkRequest.php index 3b83a9cbc4f0..b337434ad948 100644 --- a/SecurityCompliance/src/V1/GetFrameworkRequest.php +++ b/SecurityCompliance/src/V1/GetFrameworkRequest.php @@ -16,8 +16,11 @@ class GetFrameworkRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -32,8 +35,12 @@ class GetFrameworkRequest extends \Google\Protobuf\Internal\Message protected $major_revision_id = 0; /** - * @param string $name Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * @param string $name Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::frameworkName()} for help formatting this field. * @@ -54,8 +61,11 @@ public static function build(string $name): self * Optional. Data for populating the Message object. * * @type string $name - * Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * @type int|string $major_revision_id * Optional. The framework major version to retrieve. If not specified, the @@ -68,8 +78,11 @@ public function __construct($data = NULL) { } /** - * Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -81,8 +94,11 @@ public function getName() } /** - * Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + * Required. The name of the framework to retrieve, in one of the following + * formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` + * or + * `projects/{project}/locations/{location}/frameworks/{framework}`. * The only supported location is `global`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/ListCloudControlDeploymentsRequest.php b/SecurityCompliance/src/V1/ListCloudControlDeploymentsRequest.php index 5be4cffd3b42..40a728f59419 100644 --- a/SecurityCompliance/src/V1/ListCloudControlDeploymentsRequest.php +++ b/SecurityCompliance/src/V1/ListCloudControlDeploymentsRequest.php @@ -17,8 +17,9 @@ class ListCloudControlDeploymentsRequest extends \Google\Protobuf\Internal\Messa { /** * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -58,8 +59,9 @@ class ListCloudControlDeploymentsRequest extends \Google\Protobuf\Internal\Messa /** * @param string $parent Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. Please see + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. * * @return \Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlDeploymentsRequest @@ -80,8 +82,9 @@ public static function build(string $parent): self * * @type string $parent * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. * @type int $page_size * Optional. The requested page size. The server might return fewer items than * you requested. @@ -107,8 +110,9 @@ public function __construct($data = NULL) { /** * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -120,8 +124,9 @@ public function getParent() /** * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}`. The only - * supported location is `global`. + * format `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. + * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/SecurityCompliance/src/V1/ListCloudControlsRequest.php b/SecurityCompliance/src/V1/ListCloudControlsRequest.php index ed7ffea184cd..056b198e1148 100644 --- a/SecurityCompliance/src/V1/ListCloudControlsRequest.php +++ b/SecurityCompliance/src/V1/ListCloudControlsRequest.php @@ -16,8 +16,9 @@ class ListCloudControlsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -45,8 +46,10 @@ class ListCloudControlsRequest extends \Google\Protobuf\Internal\Message protected $page_token = ''; /** - * @param string $parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @@ -67,8 +70,9 @@ public static function build(string $parent): self * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * @type int $page_size * Optional. The maximum number of cloud controls to return. The default value @@ -90,8 +94,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -103,8 +108,9 @@ public function getParent() } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/ListFrameworkComplianceSummariesRequest.php b/SecurityCompliance/src/V1/ListFrameworkComplianceSummariesRequest.php index d68f44323177..d6b902f7aad5 100644 --- a/SecurityCompliance/src/V1/ListFrameworkComplianceSummariesRequest.php +++ b/SecurityCompliance/src/V1/ListFrameworkComplianceSummariesRequest.php @@ -42,6 +42,12 @@ class ListFrameworkComplianceSummariesRequest extends \Google\Protobuf\Internal\ * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $filter = ''; + /** + * Optional. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; /** * @param string $parent Required. The parent scope for the framework compliance summary. Please see @@ -73,6 +79,8 @@ public static function build(string $parent): self * should return. * @type string $filter * Optional. The filtering results. + * @type int $view + * Optional. Specifies the level of detail to return in the response. * } */ public function __construct($data = NULL) { @@ -188,5 +196,31 @@ public function setFilter($var) return $this; } + /** + * Optional. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. Specifies the level of detail to return in the response. + * + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummaryView::class); + $this->view = $var; + + return $this; + } + } diff --git a/SecurityCompliance/src/V1/ListFrameworkDeploymentsRequest.php b/SecurityCompliance/src/V1/ListFrameworkDeploymentsRequest.php index 19bcd57635b9..107b26a5aed7 100644 --- a/SecurityCompliance/src/V1/ListFrameworkDeploymentsRequest.php +++ b/SecurityCompliance/src/V1/ListFrameworkDeploymentsRequest.php @@ -17,7 +17,9 @@ class ListFrameworkDeploymentsRequest extends \Google\Protobuf\Internal\Message { /** * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -58,7 +60,9 @@ class ListFrameworkDeploymentsRequest extends \Google\Protobuf\Internal\Message /** * @param string $parent Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. Please see * {@see DeploymentClient::organizationLocationName()} for help formatting this field. * @@ -80,7 +84,9 @@ public static function build(string $parent): self * * @type string $parent * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. * @type int $page_size * Optional. The requested page size. The server might return fewer items than @@ -107,7 +113,9 @@ public function __construct($data = NULL) { /** * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -120,7 +128,9 @@ public function getParent() /** * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}` + * or + * `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/ListFrameworksRequest.php b/SecurityCompliance/src/V1/ListFrameworksRequest.php index 8ce343d65a50..f34e76c42879 100644 --- a/SecurityCompliance/src/V1/ListFrameworksRequest.php +++ b/SecurityCompliance/src/V1/ListFrameworksRequest.php @@ -16,8 +16,9 @@ class ListFrameworksRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -41,8 +42,10 @@ class ListFrameworksRequest extends \Google\Protobuf\Internal\Message protected $page_token = ''; /** - * @param string $parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * @param string $parent Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. + * * The only supported location is `global`. Please see * {@see ConfigClient::organizationLocationName()} for help formatting this field. * @@ -63,8 +66,9 @@ public static function build(string $parent): self * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * @type int $page_size * Optional. The maximum number of frameworks to return. The default value is @@ -82,8 +86,9 @@ public function __construct($data = NULL) { } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -95,8 +100,9 @@ public function getParent() } /** - * Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * Required. The parent resource name, in one of the following formats: + * - `organizations/{organization}/locations/{location}` + * - `projects/{project}/locations/{location}`. * The only supported location is `global`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { diff --git a/SecurityCompliance/src/V1/ParamValue.php b/SecurityCompliance/src/V1/ParamValue.php index e3d1b584a8c7..8c6f49a8e501 100644 --- a/SecurityCompliance/src/V1/ParamValue.php +++ b/SecurityCompliance/src/V1/ParamValue.php @@ -24,15 +24,15 @@ class ParamValue extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $string_value - * A string value. + * Optional. A string value. * @type bool $bool_value - * A boolean value. + * Optional. A boolean value. * @type \Google\Cloud\CloudSecurityCompliance\V1\StringList $string_list_value - * A repeated string. + * Optional. A repeated string. * @type float $number_value - * A double value. + * Optional. A double value. * @type \Google\Cloud\CloudSecurityCompliance\V1\Parameter $oneof_value - * Sub-parameter values. + * Optional. Sub-parameter values. * } */ public function __construct($data = NULL) { @@ -41,9 +41,9 @@ public function __construct($data = NULL) { } /** - * A string value. + * Optional. A string value. * - * Generated from protobuf field string string_value = 3; + * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getStringValue() @@ -57,9 +57,9 @@ public function hasStringValue() } /** - * A string value. + * Optional. A string value. * - * Generated from protobuf field string string_value = 3; + * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -72,9 +72,9 @@ public function setStringValue($var) } /** - * A boolean value. + * Optional. A boolean value. * - * Generated from protobuf field bool bool_value = 4; + * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return bool */ public function getBoolValue() @@ -88,9 +88,9 @@ public function hasBoolValue() } /** - * A boolean value. + * Optional. A boolean value. * - * Generated from protobuf field bool bool_value = 4; + * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this */ @@ -103,9 +103,9 @@ public function setBoolValue($var) } /** - * A repeated string. + * Optional. A repeated string. * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\CloudSecurityCompliance\V1\StringList|null */ public function getStringListValue() @@ -119,9 +119,9 @@ public function hasStringListValue() } /** - * A repeated string. + * Optional. A repeated string. * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\CloudSecurityCompliance\V1\StringList $var * @return $this */ @@ -134,9 +134,9 @@ public function setStringListValue($var) } /** - * A double value. + * Optional. A double value. * - * Generated from protobuf field double number_value = 6; + * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return float */ public function getNumberValue() @@ -150,9 +150,9 @@ public function hasNumberValue() } /** - * A double value. + * Optional. A double value. * - * Generated from protobuf field double number_value = 6; + * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param float $var * @return $this */ @@ -165,9 +165,9 @@ public function setNumberValue($var) } /** - * Sub-parameter values. + * Optional. Sub-parameter values. * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\CloudSecurityCompliance\V1\Parameter|null */ public function getOneofValue() @@ -181,9 +181,9 @@ public function hasOneofValue() } /** - * Sub-parameter values. + * Optional. Sub-parameter values. * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\CloudSecurityCompliance\V1\Parameter $var * @return $this */ diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php b/SecurityCompliance/src/V1/Trend.php similarity index 100% rename from owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Trend.php rename to SecurityCompliance/src/V1/Trend.php diff --git a/SecurityCompliance/src/V1/resources/audit_rest_client_config.php b/SecurityCompliance/src/V1/resources/audit_rest_client_config.php index 43c39ca42111..d9c054be4f63 100644 --- a/SecurityCompliance/src/V1/resources/audit_rest_client_config.php +++ b/SecurityCompliance/src/V1/resources/audit_rest_client_config.php @@ -118,6 +118,12 @@ 'GetLocation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -129,6 +135,12 @@ 'ListLocations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -143,6 +155,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -154,6 +173,12 @@ 'DeleteOperation' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -165,6 +190,12 @@ 'GetOperation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -176,6 +207,12 @@ 'ListOperations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ diff --git a/SecurityCompliance/src/V1/resources/cm_enrollment_service_rest_client_config.php b/SecurityCompliance/src/V1/resources/cm_enrollment_service_rest_client_config.php index a0cb7a2848e3..fb57e26918fb 100644 --- a/SecurityCompliance/src/V1/resources/cm_enrollment_service_rest_client_config.php +++ b/SecurityCompliance/src/V1/resources/cm_enrollment_service_rest_client_config.php @@ -74,6 +74,12 @@ 'GetLocation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -85,6 +91,12 @@ 'ListLocations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -99,6 +111,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -110,6 +129,12 @@ 'DeleteOperation' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -121,6 +146,12 @@ 'GetOperation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -132,6 +163,12 @@ 'ListOperations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ diff --git a/SecurityCompliance/src/V1/resources/config_descriptor_config.php b/SecurityCompliance/src/V1/resources/config_descriptor_config.php index 1cf649f21595..eac24a3b09d7 100644 --- a/SecurityCompliance/src/V1/resources/config_descriptor_config.php +++ b/SecurityCompliance/src/V1/resources/config_descriptor_config.php @@ -198,7 +198,12 @@ 'templateMap' => [ 'cloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'location' => 'projects/{project}/locations/{location}', 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationCloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', + 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'projectLocationCloudControl' => 'projects/{project}/locations/{location}/cloudControls/{cloud_control}', + 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', ], ], ], diff --git a/SecurityCompliance/src/V1/resources/config_rest_client_config.php b/SecurityCompliance/src/V1/resources/config_rest_client_config.php index 5222f5c659cb..2e6e8d403aeb 100644 --- a/SecurityCompliance/src/V1/resources/config_rest_client_config.php +++ b/SecurityCompliance/src/V1/resources/config_rest_client_config.php @@ -27,6 +27,16 @@ 'method' => 'post', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', 'body' => 'cloud_control', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', + 'body' => 'cloud_control', + 'queryParams' => [ + 'cloud_control_id', + ], + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -42,6 +52,16 @@ 'method' => 'post', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', 'body' => 'framework', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', + 'body' => 'framework', + 'queryParams' => [ + 'framework_id', + ], + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -56,6 +76,12 @@ 'DeleteCloudControl' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -67,6 +93,12 @@ 'DeleteFramework' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -78,6 +110,12 @@ 'GetCloudControl' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -89,6 +127,12 @@ 'GetFramework' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -100,6 +144,12 @@ 'ListCloudControls' => [ 'method' => 'get', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -111,6 +161,12 @@ 'ListFrameworks' => [ 'method' => 'get', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -123,6 +179,13 @@ 'method' => 'patch', 'uriTemplate' => '/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}', 'body' => 'cloud_control', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}', + 'body' => 'cloud_control', + ], + ], 'placeholders' => [ 'cloud_control.name' => [ 'getters' => [ @@ -136,6 +199,13 @@ 'method' => 'patch', 'uriTemplate' => '/v1/{framework.name=organizations/*/locations/*/frameworks/*}', 'body' => 'framework', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{framework.name=projects/*/locations/*/frameworks/*}', + 'body' => 'framework', + ], + ], 'placeholders' => [ 'framework.name' => [ 'getters' => [ @@ -150,6 +220,12 @@ 'GetLocation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -161,6 +237,12 @@ 'ListLocations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -175,6 +257,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -186,6 +275,12 @@ 'DeleteOperation' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -197,6 +292,12 @@ 'GetOperation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -208,6 +309,12 @@ 'ListOperations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ diff --git a/SecurityCompliance/src/V1/resources/deployment_descriptor_config.php b/SecurityCompliance/src/V1/resources/deployment_descriptor_config.php index 1817d179e05b..3155772d1c41 100644 --- a/SecurityCompliance/src/V1/resources/deployment_descriptor_config.php +++ b/SecurityCompliance/src/V1/resources/deployment_descriptor_config.php @@ -161,8 +161,16 @@ ], 'templateMap' => [ 'cloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', 'frameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', + 'location' => 'projects/{project}/locations/{location}', 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationCloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', + 'organizationLocationFrameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', + 'projectLocationCloudControlDeployment' => 'projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', + 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', + 'projectLocationFrameworkDeployment' => 'projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}', ], ], ], diff --git a/SecurityCompliance/src/V1/resources/deployment_rest_client_config.php b/SecurityCompliance/src/V1/resources/deployment_rest_client_config.php index 12b6d7ca65cd..15b1d8ff8d35 100644 --- a/SecurityCompliance/src/V1/resources/deployment_rest_client_config.php +++ b/SecurityCompliance/src/V1/resources/deployment_rest_client_config.php @@ -27,6 +27,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', 'body' => 'framework_deployment', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', + 'body' => 'framework_deployment', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -38,6 +45,12 @@ 'DeleteFrameworkDeployment' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -49,6 +62,12 @@ 'GetCloudControlDeployment' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControlDeployments/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -60,6 +79,12 @@ 'GetFrameworkDeployment' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -71,6 +96,12 @@ 'ListCloudControlDeployments' => [ 'method' => 'get', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControlDeployments', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControlDeployments', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -82,6 +113,12 @@ 'ListFrameworkDeployments' => [ 'method' => 'get', 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -95,6 +132,12 @@ 'GetLocation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -106,6 +149,12 @@ 'ListLocations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -120,6 +169,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -131,6 +187,12 @@ 'DeleteOperation' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -142,6 +204,12 @@ 'GetOperation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -153,6 +221,12 @@ 'ListOperations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ diff --git a/SecurityCompliance/src/V1/resources/monitoring_rest_client_config.php b/SecurityCompliance/src/V1/resources/monitoring_rest_client_config.php index 55979a28c808..37a010326569 100644 --- a/SecurityCompliance/src/V1/resources/monitoring_rest_client_config.php +++ b/SecurityCompliance/src/V1/resources/monitoring_rest_client_config.php @@ -133,6 +133,12 @@ 'GetLocation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -144,6 +150,12 @@ 'ListLocations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*}/locations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -158,6 +170,13 @@ 'method' => 'post', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -169,6 +188,12 @@ 'DeleteOperation' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -180,6 +205,12 @@ 'GetOperation' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -191,6 +222,12 @@ 'ListOperations' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ diff --git a/SecurityCompliance/tests/Unit/V1/Client/DeploymentClientTest.php b/SecurityCompliance/tests/Unit/V1/Client/DeploymentClientTest.php index e7681d9ffd1e..de15766f9672 100644 --- a/SecurityCompliance/tests/Unit/V1/Client/DeploymentClientTest.php +++ b/SecurityCompliance/tests/Unit/V1/Client/DeploymentClientTest.php @@ -126,7 +126,7 @@ public function createFrameworkDeploymentTest() $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = 'frameworkFramework1248820640'; + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); $frameworkDeploymentFramework->setFramework($frameworkFramework); $frameworkDeployment->setFramework($frameworkDeploymentFramework); $frameworkDeploymentCloudControlMetadata = []; @@ -210,7 +210,7 @@ public function createFrameworkDeploymentExceptionTest() $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = 'frameworkFramework1248820640'; + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); $frameworkDeploymentFramework->setFramework($frameworkFramework); $frameworkDeployment->setFramework($frameworkDeploymentFramework); $frameworkDeploymentCloudControlMetadata = []; @@ -862,7 +862,7 @@ public function createFrameworkDeploymentAsyncTest() $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = 'frameworkFramework1248820640'; + $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); $frameworkDeploymentFramework->setFramework($frameworkFramework); $frameworkDeployment->setFramework($frameworkDeploymentFramework); $frameworkDeploymentCloudControlMetadata = []; diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php deleted file mode 100644 index 83587ef36fed..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Audit.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCA9\x0A3google/cloud/cloudsecuritycompliance/v1/audit.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x82\x02\x0A(GenerateFrameworkAuditScopeReportRequest\x12\x12\x0A\x05scope\x18\x01 \x01(\x09B\x03\xE0A\x02\x12t\x0A\x0Dreport_format\x18\x02 \x01(\x0E2X.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.FormatB\x03\xE0A\x02\x12!\x0A\x14compliance_framework\x18\x03 \x01(\x09B\x03\xE0A\x02\")\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ODF\x10\x01\"\xA6\x04\x0A)GenerateFrameworkAuditScopeReportResponse\x12\x1F\x0A\x15scope_report_contents\x18\x03 \x01(\x0CH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12!\x0A\x14compliance_framework\x18\x02 \x01(\x09B\x03\xE0A\x02:\x91\x03\xEAA\x8D\x03\x0APcloudsecuritycompliance.googleapis.com/GenerateFrameworkAuditScopeReportResponse\x12sprojects/{project}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}\x12}organizations/{organization}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}*\x1AframeworkAuditScopeReports2)generateFrameworkAuditScopeReportResponseB\x0E\x0A\x0Caudit_report\"\xA8\x01\x0A\x0DReportSummary\x12\x18\x0A\x0Btotal_count\x18\x01 \x01(\x05B\x03\xE0A\x03\x12\x1C\x0A\x0Fcompliant_count\x18\x02 \x01(\x05B\x03\xE0A\x03\x12\x1C\x0A\x0Fviolation_count\x18\x03 \x01(\x05B\x03\xE0A\x03\x12'\x0A\x1Amanual_review_needed_count\x18\x04 \x01(\x05B\x03\xE0A\x03\x12\x18\x0A\x0Berror_count\x18\x05 \x01(\x05B\x03\xE0A\x03\"\xE4\x01\x0A\x1BCreateFrameworkAuditRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12\x1F\x0A\x12framework_audit_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12U\x0A\x0Fframework_audit\x18\x03 \x01(\x0B27.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditB\x03\xE0A\x02\"}\x0A\x19FrameworkAuditDestination\x12L\x0A\x06bucket\x18\x01 \x01(\x0B2:.google.cloud.cloudsecuritycompliance.v1.BucketDestinationH\x00B\x12\x0A\x10destination_type\"\xBF\x01\x0A\x11BucketDestination\x12\x17\x0A\x0Abucket_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12f\x0A\x16framework_audit_format\x18\x03 \x01(\x0E2A.google.cloud.cloudsecuritycompliance.v1.BucketDestination.FormatB\x03\xE0A\x01\")\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ODF\x10\x01\"\xBD\x09\x0A\x0EFrameworkAudit\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x08\xE0A\x03\x12\x1F\x0A\x12framework_audit_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14compliance_framework\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05scope\x18\x04 \x01(\x09B\x03\xE0A\x03\x12l\x0A\x1Bframework_audit_destination\x18\x05 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bfinish_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x08 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x09 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\x12v\x0A!cloud_control_group_audit_details\x18\x0A \x03(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsB\x03\xE0A\x01\x12k\x0A\x1Bcloud_control_audit_details\x18\x0B \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsB\x03\xE0A\x01\x12\x19\x0A\x0Coperation_id\x18\x0C \x01(\x09B\x03\xE0A\x03\x12Q\x0A\x05state\x18\x0D \x01(\x0E2=.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.StateB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SCHEDULED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09UPLOADING\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05:\xFC\x01\xEAA\xF8\x01\x0A5cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12Iprojects/{project}/locations/{location}/frameworkAudits/{framework_audit}\x12Sorganizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}*\x0FframeworkAudits2\x0EframeworkAudit\"\xB1\x01\x0A\x1AListFrameworkAuditsRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FrameworkAudit\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x89\x01\x0A\x1BListFrameworkAuditsResponse\x12Q\x0A\x10framework_audits\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"g\x0A\x18GetFrameworkAuditRequest\x12K\x0A\x04name\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x0A5cloudsecuritycompliance.googleapis.com/FrameworkAudit\"\xE8\x05\x0A\x1DCloudControlGroupAuditDetails\x12#\x0A\x16cloud_control_group_id\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13responsibility_type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12.\x0A!google_responsibility_description\x18\x05 \x01(\x09B\x03\xE0A\x03\x121\x0A\$google_responsibility_implementation\x18\x06 \x01(\x09B\x03\xE0A\x03\x120\x0A#customer_responsibility_description\x18\x07 \x01(\x09B\x03\xE0A\x03\x123\x0A&customer_responsibility_implementation\x18\x08 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x09 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12\x17\x0A\x0Acontrol_id\x18\x0A \x01(\x09B\x03\xE0A\x03\x12S\x0A\x0Econtrol_family\x18\x0B \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xE0A\x03\x12e\x0A\x15cloud_control_details\x18\x0C \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x0D \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\"\xA4\x02\x0A\x0EFindingDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12U\x0A\x0Bobservation\x18\x03 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsB\x03\xE0A\x03\x12O\x0A\x08evidence\x18\x04 \x01(\x0B28.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsB\x03\xE0A\x03\"d\x0A\x12ObservationDetails\x12\x1A\x0A\x0Dcurrent_value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Eexpected_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08guidance\x18\x03 \x01(\x09B\x03\xE0A\x03\"Z\x0A\x0FEvidenceDetails\x12\x15\x0A\x08resource\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07service\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Devidence_path\x18\x03 \x01(\x09B\x03\xE0A\x03\"\xFB\x02\x0A\x18CloudControlAuditDetails\x12\x1A\x0A\x0Dcloud_control\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19cloud_control_description\x18\x03 \x01(\x09B\x03\xE0A\x03\x12W\x0A\x10compliance_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\x03\xE0A\x03\x12S\x0A\x0Ereport_summary\x18\x05 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\x03\xE0A\x03\x12N\x0A\x08findings\x18\x06 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingDetailsB\x03\xE0A\x03*\x8F\x01\x0A\x0FComplianceState\x12 \x0A\x1CCOMPLIANCE_STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09COMPLIANT\x10\x01\x12\x0D\x0A\x09VIOLATION\x10\x02\x12\x18\x0A\x14MANUAL_REVIEW_NEEDED\x10\x03\x12\x09\x0A\x05ERROR\x10\x04\x12\x17\x0A\x13AUDIT_NOT_SUPPORTED\x10\x052\x9C\x0E\x0A\x05Audit\x12\xB3\x04\x0A!GenerateFrameworkAuditScopeReport\x12Q.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest\x1AR.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse\"\xE6\x02\xDAA(scope,report_format,compliance_framework\x82\xD3\xE4\x93\x02\xB4\x02\"^/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*Zd\"_/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*Zi\"d/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:\x01*\x12\xD9\x03\x0A\x14CreateFrameworkAudit\x12D.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest\x1A\x1D.google.longrunning.Operation\"\xDB\x02\xCAAK\x0A\x0EFrameworkAudit\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA)parent,framework_audit,framework_audit_id\x82\xD3\xE4\x93\x02\xDA\x01\"8/v1/{parent=organizations/*/locations/*}/frameworkAudits:\x0Fframework_auditZE\"2/v1/{parent=folders/*/locations/*}/frameworkAudits:\x0Fframework_auditZF\"3/v1/{parent=projects/*/locations/*}/frameworkAudits:\x0Fframework_audit\x12\xDA\x02\x0A\x13ListFrameworkAudits\x12C.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest\x1AD.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse\"\xB7\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xA7\x01\x128/v1/{parent=organizations/*/locations/*}/frameworkAuditsZ4\x122/v1/{parent=folders/*/locations/*}/frameworkAuditsZ5\x123/v1/{parent=projects/*/locations/*}/frameworkAudits\x12\xC7\x02\x0A\x11GetFrameworkAudit\x12A.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest\x1A7.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit\"\xB5\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xA7\x01\x128/v1/{name=organizations/*/locations/*/frameworkAudits/*}Z4\x122/v1/{name=folders/*/locations/*/frameworkAudits/*}Z5\x123/v1/{name=projects/*/locations/*/frameworkAudits/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA3\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0AAuditProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php deleted file mode 100644 index da2787e8b5fd..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/CmEnrollmentService.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF7\x12\x0ACgoogle/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"\xA4\x01\x0A\x19UpdateCmEnrollmentRequest\x12Q\x0A\x0Dcm_enrollment\x18\x01 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A%CalculateEffectiveCmEnrollmentRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CmEnrollment\"\xD8\x02\x0A\x0CCmEnrollment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x15\x0A\x08enrolled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12O\x0A\x0Caudit_config\x18\x03 \x01(\x0B24.google.cloud.cloudsecuritycompliance.v1.AuditConfigB\x03\xE0A\x01:\xCC\x01\xEAA\xC8\x01\x0A3cloudsecuritycompliance.googleapis.com/CmEnrollment\x12>organizations/{organization}/locations/{location}/cmEnrollment\x124projects/{project}/locations/{location}/cmEnrollment*\x0DcmEnrollments2\x0CcmEnrollment\"v\x0A&CalculateEffectiveCmEnrollmentResponse\x12L\x0A\x0Dcm_enrollment\x18\x01 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CmEnrollment\"\xBF\x01\x0A\x0BAuditConfig\x12e\x0A\x0Cdestinations\x18\x01 \x03(\x0B2J.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationB\x03\xE0A\x02\x1AI\x0A\x15CmEligibleDestination\x12\x14\x0A\x0Agcs_bucket\x18\x01 \x01(\x09H\x00B\x1A\x0A\x18cm_eligible_destinations2\xA3\x07\x0A\x13CmEnrollmentService\x12\xA4\x03\x0A\x12UpdateCmEnrollment\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CmEnrollment\"\x92\x02\xDAA\x19cm_enrollment,update_mask\x82\xD3\xE4\x93\x02\xEF\x012A/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}:\x0Dcm_enrollmentZL2;/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}:\x0Dcm_enrollmentZM2internalAddGeneratedFile( - "\x0A\xC0A\x0A4google/cloud/cloudsecuritycompliance/v1/common.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD4\x07\x0A\x09Framework\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12S\x0A\x04type\x18\x06 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xE0A\x03\x12`\x0A\x15cloud_control_details\x18\x08 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x01\x12Q\x0A\x08category\x18\x09 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0A \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x0B \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x03\x12b\x0A\x1Bsupported_enforcement_modes\x18\x0D \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\"I\x0A\x0DFrameworkType\x12\x1E\x0A\x1AFRAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08BUILT_IN\x10\x01\x12\x0A\x0A\x06CUSTOM\x10\x02:\xD7\x01\xEAA\xD3\x01\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}\x12>projects/{project}/locations/{location}/frameworks/{framework}*\x0Aframeworks2\x09framework\"\x95\x01\x0A\x13CloudControlDetails\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x02\x12K\x0A\x0Aparameters\x18\x04 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01\"\x9C\x01\x0A\x12FrameworkReference\x12K\x0A\x09framework\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12#\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01B\x14\x0A\x12_major_revision_id\"q\x0A\x09Parameter\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Fparameter_value\x18\x02 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"\xA1\x09\x0A\x0CCloudControl\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x1Bsupported_enforcement_modes\x18\x07 \x03(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x03\x12S\x0A\x0Eparameter_spec\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12A\x0A\x05rules\x18\x09 \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xE0A\x01\x12H\x0A\x08severity\x18\x0B \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xE0A\x01\x12\x1D\x0A\x10finding_category\x18\x0C \x01(\x09B\x03\xE0A\x01\x12^\x0A\x19supported_cloud_providers\x18\x0D \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xE0A\x01\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\x12\x1E\x0A\x11remediation_steps\x18\x0F \x01(\x09B\x03\xE0A\x01\x12V\x0A\x0Acategories\x18\x10 \x03(\x0E2=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x11 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12i\x0A\x1Fsupported_target_resource_types\x18\x12 \x03(\x0E2;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xE0A\x01\"6\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CUSTOM\x10\x01\x12\x0C\x0A\x08BUILT_IN\x10\x02:\xEE\x01\xEAA\xEA\x01\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}\x12Eprojects/{project}/locations/{location}/cloudControls/{cloud_control}*\x0DcloudControls2\x0CcloudControl\"\x8E\x05\x0A\x0DParameterSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bis_required\x18\x04 \x01(\x08B\x03\xE0A\x02\x12Y\x0A\x0Avalue_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xE0A\x02\x12O\x0A\x0Ddefault_value\x18\x06 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x01\x12c\x0A\x12substitution_rules\x18\x07 \x03(\x0B2B.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xE0A\x01\x12S\x0A\x0Esub_parameters\x18\x08 \x03(\x0B26.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xE0A\x01\x12L\x0A\x0Avalidation\x18\x09 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xE0A\x01\"g\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRING\x10\x03\x12\x0B\x0A\x07BOOLEAN\x10\x04\x12\x0E\x0A\x0ASTRINGLIST\x10\x05\x12\x0A\x0A\x06NUMBER\x10\x06\x12\x09\x0A\x05ONEOF\x10\x07\"\x86\x02\x0A\x0AValidation\x12P\x0A\x0Eallowed_values\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12F\x0A\x09int_range\x18\x02 \x01(\x0B21.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\x0A\x0Eregexp_pattern\x18\x03 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00B\x0C\x0A\x0Aconstraint\"Y\x0A\x0DAllowedValues\x12H\x0A\x06values\x18\x01 \x03(\x0B23.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xE0A\x02\"%\x0A\x0DRegexpPattern\x12\x14\x0A\x07pattern\x18\x01 \x01(\x09B\x03\xE0A\x02\".\x0A\x08IntRange\x12\x10\x0A\x03min\x18\x01 \x01(\x03B\x03\xE0A\x02\x12\x10\x0A\x03max\x18\x02 \x01(\x03B\x03\xE0A\x02\"!\x0A\x0AStringList\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x02\"\x90\x02\x0A\x0AParamValue\x12\x1B\x0A\x0Cstring_value\x18\x03 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x04 \x01(\x08B\x03\xE0A\x01H\x00\x12U\x0A\x11string_list_value\x18\x05 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x06 \x01(\x01B\x03\xE0A\x01H\x00\x12N\x0A\x0Boneof_value\x18\x07 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xE0A\x01H\x00B\x06\x0A\x04kind\"\x8A\x02\x0A\x19ParameterSubstitutionRule\x12m\x0A\x1Dplaceholder_substitution_rule\x18\x01 \x01(\x0B2D.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\x0A\x1Battribute_substitution_rule\x18\x02 \x01(\x0B2B.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00B\x13\x0A\x11substitution_type\".\x0A\x19AttributeSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"0\x0A\x1BPlaceholderSubstitutionRule\x12\x11\x0A\x09attribute\x18\x01 \x01(\x09\"\xDD\x01\x0A\x04Rule\x12P\x0A\x0Ecel_expression\x18\x01 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\x0A\x0Bdescription\x18\x0A \x01(\x09B\x03\xE0A\x01\x12W\x0A\x11rule_action_types\x18\x10 \x03(\x0E27.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xE0A\x02B\x10\x0A\x0Eimplementation\"\x8A\x01\x0A\x0DCELExpression\x12T\x0A\x15resource_types_values\x18\x03 \x01(\x0B23.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\x0A\x0Aexpression\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0A\x0A\x08criteria\"\x80\x02\x0A\x11OperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04verb\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1B\x0A\x0Estatus_message\x18\x05 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x06 \x01(\x08B\x03\xE0A\x03\x12\x18\x0A\x0Bapi_version\x18\x07 \x01(\x09B\x03\xE0A\x03\"\xA3\x08\x0A\x07Control\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06family\x18\x05 \x01(\x0E27.google.cloud.cloudsecuritycompliance.v1.Control.FamilyB\x03\xE0A\x03\x12S\x0A\x0Econtrol_family\x18\x06 \x01(\x0B26.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xE0A\x03\x12n\x0A\x13responsibility_type\x18\x07 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityTypeB\x03\xE0A\x03\x12.\x0A!google_responsibility_description\x18\x08 \x01(\x09B\x03\xE0A\x03\x121\x0A\$google_responsibility_implementation\x18\x09 \x01(\x09B\x03\xE0A\x03\x120\x0A#customer_responsibility_description\x18\x0A \x01(\x09B\x03\xE0A\x03\x123\x0A&customer_responsibility_implementation\x18\x0B \x01(\x09B\x03\xE0A\x03\x12.\x0A!shared_responsibility_description\x18\x0C \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16additional_content_uri\x18\x0D \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x0E \x03(\x09B\x03\xE0A\x03\"\xB0\x01\x0A\x06Family\x12\x16\x0A\x12FAMILY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AC\x10\x01\x12\x06\x0A\x02AT\x10\x02\x12\x06\x0A\x02AU\x10\x03\x12\x06\x0A\x02CA\x10\x04\x12\x06\x0A\x02CM\x10\x05\x12\x06\x0A\x02CP\x10\x06\x12\x06\x0A\x02IA\x10\x07\x12\x06\x0A\x02IR\x10\x08\x12\x06\x0A\x02MA\x10\x09\x12\x06\x0A\x02MP\x10\x0A\x12\x06\x0A\x02PE\x10\x0B\x12\x06\x0A\x02PL\x10\x0C\x12\x06\x0A\x02PS\x10\x0D\x12\x06\x0A\x02RA\x10\x0E\x12\x06\x0A\x02SA\x10\x0F\x12\x06\x0A\x02SC\x10\x10\x12\x06\x0A\x02SI\x10\x11\x12\x06\x0A\x02SR\x10\x12:\xC9\x01\xEAA\xC5\x01\x0A.cloudsecuritycompliance.googleapis.com/Control\x12Dorganizations/{organization}/locations/{location}/controls/{control}\x12:projects/{project}/locations/{location}/controls/{control}*\x08controls2\x07control\"8\x0A\x0DControlFamily\x12\x11\x0A\x09family_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09*\x83\x01\x0A#RegulatoryControlResponsibilityType\x126\x0A2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GOOGLE\x10\x01\x12\x0C\x0A\x08CUSTOMER\x10\x02\x12\x0A\x0A\x06SHARED\x10\x03*]\x0A\x0FEnforcementMode\x12 \x0A\x1CENFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APREVENTIVE\x10\x01\x12\x0D\x0A\x09DETECTIVE\x10\x02\x12\x09\x0A\x05AUDIT\x10\x03*\xB1\x01\x0A\x11FrameworkCategory\x12\"\x0A\x1EFRAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\x0A\x11ASSURED_WORKLOADS\x10\x02\x12\x11\x0A\x0DDATA_SECURITY\x10\x03\x12\x19\x0A\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\x0A\x10CUSTOM_FRAMEWORK\x10\x05*\xFE\x05\x0A\x14CloudControlCategory\x12&\x0A\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ACC_CATEGORY_INFRASTRUCTURE\x10\x01\x12'\x0A#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\x0A\x1DCC_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1D\x0A\x19CC_CATEGORY_DATA_SECURITY\x10\x04\x12 \x0A\x1CCC_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\x0A\x1FCC_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\x0A*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1A\x0A\x16CC_CATEGORY_ENCRYPTION\x10\x08\x122\x0A.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\x09\x12&\x0A\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\x0A\x128\x0A4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0B\x12%\x0A!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0C\x12(\x0A\$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\x0D\x12\x17\x0A\x13CC_CATEGORY_PRIVACY\x10\x0E\x12\x14\x0A\x10CC_CATEGORY_BCDR\x10\x0F\x12\x1C\x0A\x18CC_CATEGORY_ADMIN_ACCESS\x10\x10\x12\x1E\x0A\x1ACC_CATEGORY_DATA_RESIDENCY\x10\x11\x12*\x0A&CC_CATEGORY_RESOURCE_USAGE_RESTRICTION\x10\x12\x12 \x0A\x1CCC_CATEGORY_SERVICE_SPECIFIC\x10\x13*L\x0A\x0DCloudProvider\x12\x1E\x0A\x1ACLOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AWS\x10\x01\x12\x09\x0A\x05AZURE\x10\x02\x12\x07\x0A\x03GCP\x10\x03*Q\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CRITICAL\x10\x01\x12\x08\x0A\x04HIGH\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x07\x0A\x03LOW\x10\x04*\x8F\x01\x0A\x0ERuleActionType\x12 \x0A\x1CRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1E\x0A\x1ARULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1A\x0A\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xCD\x01\x0A\x12TargetResourceType\x12\$\x0A TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \x0A\x1CTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\x0A\x1FTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12\$\x0A TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12\$\x0A TARGET_RESOURCE_TYPE_APPLICATION\x10\x04B\x97\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BCommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAAp\x0A;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php deleted file mode 100644 index 579217125655..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Config.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDF)\x0A4google/cloud/cloudsecuritycompliance/v1/config.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\x92\x01\x0A\x15ListFrameworksRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"y\x0A\x16ListFrameworksResponse\x12F\x0A\x0Aframeworks\x18\x01 \x03(\x0B22.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"}\x0A\x13GetFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xC9\x01\x0A\x16CreateFrameworkRequest\x12H\x0A\x06parent\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x120cloudsecuritycompliance.googleapis.com/Framework\x12\x19\x0A\x0Cframework_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x09framework\x18\x03 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\"\xBA\x01\x0A\x16UpdateFrameworkRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12J\x0A\x09framework\x18\x02 \x01(\x0B22.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xE0A\x02\x12\x1E\x0A\x11major_revision_id\x18\x03 \x01(\x03B\x03\xE0A\x01\"`\x0A\x16DeleteFrameworkRequest\x12F\x0A\x04name\x18\x01 \x01(\x09B8\xE0A\x02\xFAA2\x0A0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\x0A\x18ListCloudControlsRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x19ListCloudControlsResponse\x12M\x0A\x0Ecloud_controls\x18\x01 \x03(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x16GetCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1E\x0A\x11major_revision_id\x18\x02 \x01(\x03B\x03\xE0A\x01\"\xDA\x01\x0A\x19CreateCloudControlRequest\x12K\x0A\x06parent\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x123cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1D\x0A\x10cloud_control_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Dcloud_control\x18\x03 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"\xA4\x01\x0A\x19UpdateCloudControlRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12Q\x0A\x0Dcloud_control\x18\x02 \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x02\"f\x0A\x19DeleteCloudControlRequest\x12I\x0A\x04name\x18\x01 \x01(\x09B;\xE0A\x02\xFAA5\x0A3cloudsecuritycompliance.googleapis.com/CloudControl2\xF7\x16\x0A\x06Config\x12\x89\x02\x0A\x0EListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"v\xDAA\x06parent\x82\xD3\xE4\x93\x02g\x123/v1/{parent=organizations/*/locations/*}/frameworksZ0\x12./v1/{parent=projects/*/locations/*}/frameworks\x12\xF6\x01\x0A\x0CGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g\x123/v1/{name=organizations/*/locations/*/frameworks/*}Z0\x12./v1/{name=projects/*/locations/*/frameworks/*}\x12\xAC\x02\x0A\x0FCreateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xA3\x01\xDAA\x1Dparent,framework,framework_id\x82\xD3\xE4\x93\x02}\"3/v1/{parent=organizations/*/locations/*}/frameworks:\x09frameworkZ;\"./v1/{parent=projects/*/locations/*}/frameworks:\x09framework\x12\xB9\x02\x0A\x0FUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1A2.google.cloud.cloudsecuritycompliance.v1.Framework\"\xB0\x01\xDAA\x15framework,update_mask\x82\xD3\xE4\x93\x02\x91\x012=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\x09frameworkZE28/v1/{framework.name=projects/*/locations/*/frameworks/*}:\x09framework\x12\xE0\x01\x0A\x0FDeleteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1A\x16.google.protobuf.Empty\"t\xDAA\x04name\x82\xD3\xE4\x93\x02g*3/v1/{name=organizations/*/locations/*/frameworks/*}Z0*./v1/{name=projects/*/locations/*/frameworks/*}\x12\x98\x02\x0A\x11ListCloudControls\x12A.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"|\xDAA\x06parent\x82\xD3\xE4\x93\x02m\x126/v1/{parent=organizations/*/locations/*}/cloudControlsZ3\x121/v1/{parent=projects/*/locations/*}/cloudControls\x12\x85\x02\x0A\x0FGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m\x126/v1/{name=organizations/*/locations/*/cloudControls/*}Z3\x121/v1/{name=projects/*/locations/*/cloudControls/*}\x12\xCC\x02\x0A\x12CreateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xBA\x01\xDAA%parent,cloud_control,cloud_control_id\x82\xD3\xE4\x93\x02\x8B\x01\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\x0Dcloud_controlZB\"1/v1/{parent=projects/*/locations/*}/cloudControls:\x0Dcloud_control\x12\xDC\x02\x0A\x12UpdateCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1A5.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xCA\x01\xDAA\x19cloud_control,update_mask\x82\xD3\xE4\x93\x02\xA7\x012D/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\x0Dcloud_controlZP2?/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}:\x0Dcloud_control\x12\xEC\x01\x0A\x12DeleteCloudControl\x12B.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1A\x16.google.protobuf.Empty\"z\xDAA\x04name\x82\xD3\xE4\x93\x02m*6/v1/{name=organizations/*/locations/*/cloudControls/*}Z3*1/v1/{name=projects/*/locations/*/cloudControls/*}\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA4\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0BConfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php deleted file mode 100644 index 13a333cadbf1..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Deployment.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5>\x0A8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA7\x08\x0A\x13FrameworkDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12%\x0A\x18computed_target_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12S\x0A\x09framework\x18\x04 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12b\x0A\x16cloud_control_metadata\x18\x06 \x03(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12W\x0A\x10deployment_state\x18\x07 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0B \x01(\x09B\x03\xE0A\x01\x12)\x0A\x1Ctarget_resource_display_name\x18\x0D \x01(\x09B\x03\xE0A\x03\x12z\x0A#cloud_control_deployment_references\x18\x0E \x03(\x0B2H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xE0A\x03:\x9F\x02\xEAA\x9B\x02\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}\x12Sprojects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14frameworkDeployments2\x13frameworkDeployment\"\xC5\x08\x0A\x16CloudControlDeployment\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12b\x0A\x16target_resource_config\x18\x02 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xE0A\x02\x12\x1C\x0A\x0Ftarget_resource\x18\x03 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x16cloud_control_metadata\x18\x04 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12W\x0A\x10deployment_state\x18\x06 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x09 \x01(\x09B\x03\xE0A\x01\x12g\x0A#parameter_substituted_cloud_control\x18\x0A \x01(\x0B25.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xE0A\x03\x12s\x0A\x1Fframework_deployment_references\x18\x0B \x03(\x0B2E.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xE0A\x03\x12)\x0A\x1Ctarget_resource_display_name\x18\x0C \x01(\x09B\x03\xE0A\x03:\xB6\x02\xEAA\xB2\x02\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12dorganizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}\x12Zprojects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17cloudControlDeployments2\x16cloudControlDeployment\"\xC9\x01\x0A\x14TargetResourceConfig\x12'\x0A\x18existing_target_resource\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12u\x0A\x1Ftarget_resource_creation_config\x18\x02 \x01(\x0B2E.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xE0A\x01H\x00B\x11\x0A\x0Fresource_config\"\x88\x02\x0A\x1CTargetResourceCreationConfig\x12d\x0A\x16folder_creation_config\x18\x01 \x01(\x0B2=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xE0A\x01H\x00\x12f\x0A\x17project_creation_config\x18\x02 \x01(\x0B2>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xE0A\x01H\x00B\x1A\x0A\x18resource_creation_config\"M\x0A\x14FolderCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12 \x0A\x13folder_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"p\x0A\x15ProjectCreationConfig\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12!\x0A\x14project_display_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x12billing_account_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xD1\x01\x0A\x14CloudControlMetadata\x12`\x0A\x15cloud_control_details\x18\x01 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xE0A\x02\x12W\x0A\x10enforcement_mode\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xE0A\x02\"\xFD\x01\x0A CreateFrameworkDeploymentRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\$\x0A\x17framework_deployment_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x14framework_deployment\x18\x03 \x01(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xE0A\x02\"\x87\x01\x0A DeleteFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"q\x0A\x1DGetFrameworkDeploymentRequest\x12P\x0A\x04name\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xD2\x01\x0A\x1FListFrameworkDeploymentsRequest\x12R\x0A\x06parent\x18\x01 \x01(\x09BB\xE0A\x02\xFAA<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A ListFrameworkDeploymentsResponse\x12[\x0A\x15framework_deployments\x18\x01 \x03(\x0B2<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"w\x0A GetCloudControlDeploymentRequest\x12S\x0A\x04name\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xD8\x01\x0A\"ListCloudControlDeploymentsRequest\x12U\x0A\x06parent\x18\x01 \x01(\x09BE\xE0A\x02\xFAA?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA2\x01\x0A#ListCloudControlDeploymentsResponse\x12b\x0A\x19cloud_control_deployments\x18\x01 \x03(\x0B2?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1FCloudControlDeploymentReference\x12g\x0A\x18cloud_control_deployment\x18\x01 \x01(\x09BE\xE0A\x03\xFAA?\x0A=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\x0A\x1CFrameworkDeploymentReference\x12`\x0A\x14framework_deployment\x18\x01 \x01(\x09BB\xE0A\x03\xFAA<\x0A:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\x0A\x13framework_reference\x18\x02 \x01(\x0B2;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xE0A\x01\x12#\x0A\x16framework_display_name\x18\x03 \x01(\x09B\x03\xE0A\x01*\xBB\x02\x0A\x0FDeploymentState\x12 \x0A\x1CDEPLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1F\x0A\x1BDEPLOYMENT_STATE_VALIDATING\x10\x01\x12\x1D\x0A\x19DEPLOYMENT_STATE_CREATING\x10\x02\x12\x1D\x0A\x19DEPLOYMENT_STATE_DELETING\x10\x03\x12\x1D\x0A\x19DEPLOYMENT_STATE_UPDATING\x10\x08\x12\x1B\x0A\x17DEPLOYMENT_STATE_FAILED\x10\x04\x12\x1A\x0A\x16DEPLOYMENT_STATE_READY\x10\x05\x12'\x0A#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\x0A\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x072\x88\x11\x0A\x0ADeployment\x12\xBF\x03\x0A\x19CreateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xB7\x02\xCAAP\x0A\x13FrameworkDeployment\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA3parent,framework_deployment,framework_deployment_id\x82\xD3\xE4\x93\x02\xA7\x01\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14framework_deploymentZP\"8/v1/{parent=projects/*/locations/*}/frameworkDeployments:\x14framework_deployment\x12\xE5\x02\x0A\x19DeleteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1A\x1D.google.longrunning.Operation\"\xDD\x01\xCAAR\x0A\x15google.protobuf.Empty\x129google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02{*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:*8/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xA9\x02\x0A\x16GetFrameworkDeployment\x12F.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1A<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"\x88\x01\xDAA\x04name\x82\xD3\xE4\x93\x02{\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:\x128/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xBC\x02\x0A\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1AI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"\x8A\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02{\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeploymentsZ:\x128/v1/{parent=projects/*/locations/*}/frameworkDeployments\x12\xB9\x02\x0A\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1A?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"\x8F\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}Z=\x12;/v1/{name=projects/*/locations/*/cloudControlDeployments/*}\x12\xCC\x02\x0A\x1BListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1AL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"\x91\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x81\x01\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeploymentsZ=\x12;/v1/{parent=projects/*/locations/*}/cloudControlDeployments\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xA8\x02\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FDeploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php deleted file mode 100644 index 33f790055159..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/GPBMetadata/Google/Cloud/Cloudsecuritycompliance/V1/Monitoring.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBAY\x0A8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12'google.cloud.cloudsecuritycompliance.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A4google/cloud/cloudsecuritycompliance/v1/common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Agoogle/type/interval.proto\"\xA6\x02\x0A'ListFrameworkComplianceSummariesRequest\x12Y\x0A\x06parent\x18\x01 \x01(\x09BI\xE0A\x02\xFAAC\x12Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x04view\x18\x05 \x01(\x0E2G.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryViewB\x03\xE0A\x01\"\xB5\x01\x0A(ListFrameworkComplianceSummariesResponse\x12k\x0A\x1Eframework_compliance_summaries\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xF6\x08\x0A\x19FrameworkComplianceReport\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x1D\x0A\x15framework_description\x18\x02 \x01(\x09\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12e\x0A\x1Acontrol_assessment_details\x18\x04 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x05 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x06 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x07 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x09 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x0A \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x0B \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0C \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xAB\x03\xEAA\xA7\x03\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1AframeworkComplianceReports2\x19frameworkComplianceReport\"\xC7\x01\x0A%FetchFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE7\x01\x0A\x1BListFindingSummariesRequest\x12M\x0A\x06parent\x18\x01 \x01(\x09B=\xE0A\x02\xFAA7\x125cloudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x123\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\"\x90\x01\x0A\x1CListFindingSummariesResponse\x12R\x0A\x11finding_summaries\x18\x01 \x03(\x0B27.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xFB\x01\x0A%ListControlComplianceSummariesRequest\x12W\x0A\x06parent\x18\x01 \x01(\x09BG\xE0A\x02\xFAAA\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x123\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x05\x18\x01\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A&ListControlComplianceSummariesResponse\x12g\x0A\x1Ccontrol_compliance_summaries\x18\x01 \x03(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x03\"\xC6\x01\x0A)AggregateFrameworkComplianceReportRequest\x12V\x0A\x04name\x18\x01 \x01(\x09BH\xE0A\x02\xFAAB\x0A@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\x0A\x08interval\x18\x02 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A*AggregateFrameworkComplianceReportResponse\x12j\x0A\x1Daggregated_compliance_reports\x18\x01 \x03(\x0B2C.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\x0A\x18ControlAssessmentDetails\x12\x18\x0A\x10passing_controls\x18\x01 \x01(\x05\x12\x18\x0A\x10failing_controls\x18\x02 \x01(\x05\x12!\x0A\x19assessed_passing_controls\x18\x03 \x01(\x05\x12\x1D\x0A\x15not_assessed_controls\x18\x04 \x01(\x05\"\xA0\x09\x0A\x1AFrameworkComplianceSummary\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12e\x0A\x1Acontrol_assessment_details\x18\x02 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\x0A\x0Eframework_type\x18\x03 \x01(\x0E2@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\x0A\x19supported_cloud_providers\x18\x04 \x03(\x0E26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\x0A\x14framework_categories\x18\x05 \x03(\x0E2:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\x0A\x16framework_display_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x09 \x01(\x03\x12_\x0A\x17target_resource_details\x18\x0A \x03(\x0B2>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails\x12\x1A\x0A\x0Dfinding_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12S\x0A\x16controls_passing_trend\x18\x0C \x01(\x0B2..google.cloud.cloudsecuritycompliance.v1.TrendB\x03\xE0A\x03:\xB8\x03\xEAA\xB4\x03\x0AAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12cprojects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1CframeworkComplianceSummaries2\x1AframeworkComplianceSummary\"\x8A\x05\x0A\x0EFindingSummary\x12\x18\x0A\x10finding_category\x18\x01 \x01(\x09\x12L\x0A\x0Dfinding_class\x18\x02 \x01(\x0E25.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12C\x0A\x08severity\x18\x03 \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\x0A\x0Dfinding_count\x18\x04 \x01(\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x12related_frameworks\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x07 \x01(\x09B\x03\xE0A\x08:\xC9\x02\xEAA\xC5\x02\x0A5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10findingSummaries2\x0EfindingSummary\"\x9A\x09\x0A\x18ControlComplianceSummary\x12\x0F\x0A\x07control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12_\x0A\x18overall_evaluation_state\x18\x04 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\x12\x1C\x0A\x14total_findings_count\x18\x05 \x01(\x05\x12\x1D\x0A\x15compliance_frameworks\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x07 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\x0A\x15cloud_control_reports\x18\x08 \x03(\x0B2;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\x0A\x1Bcontrol_responsibility_type\x18\x09 \x01(\x0E2L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\x0A\x0Fis_fake_control\x18\x0A \x01(\x08\x12\x11\x0A\x04name\x18\x0B \x01(\x09B\x03\xE0A\x08:\xD4\x04\xEAA\xD0\x04\x0A?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xA2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1AcontrolComplianceSummaries2\x18controlComplianceSummary\"\x98\x07\x0A\x12CloudControlReport\x12\x7F\x0A'manual_cloud_control_assessment_details\x18\x0D \x01(\x0B2L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\x0A cloud_control_assessment_details\x18\x0E \x01(\x0B2F.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\x0A\x0Dcloud_control\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x12\x0A\x0Acategories\x18\x06 \x03(\x09\x12R\x0A\x10similar_controls\x18\x09 \x03(\x0B28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\x0A\x12cloud_control_type\x18\x0A \x01(\x0E2:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\x0A\x10finding_category\x18\x0B \x01(\x09\x12<\x0A\x05rules\x18\x0C \x03(\x0B2-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\x0A\x10finding_severity\x18\x0F \x01(\x0E21.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\x0A\x10enforcement_mode\x18\x10 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \x0A\x18cloud_control_deployment\x18\x11 \x01(\x09\x12\x19\x0A\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x13 \x01(\x03\x12\$\x0A\x1Cframework_major_revision_ids\x18\x14 \x03(\x03B\x14\x0A\x12assessment_details\"I\x0A#ManualCloudControlAssessmentDetails\x12\"\x0A\x1Amanual_cloud_control_guide\x18\x01 \x03(\x09\"\x90\x01\x0A\x1DCloudControlAssessmentDetails\x12\x16\x0A\x0Efindings_count\x18\x01 \x01(\x05\x12W\x0A\x10evaluation_state\x18\x02 \x01(\x0E28.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xE0A\x03\"8\x0A\x0FSimilarControls\x12\x11\x0A\x09framework\x18\x01 \x01(\x09\x12\x12\x0A\x0Acontrol_id\x18\x02 \x01(\x09\"\xB4\x01\x0A\x1AAggregatedComplianceReport\x12e\x0A\x1Acontrol_assessment_details\x18\x01 \x01(\x0B2A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\x0A\x0Breport_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x8C\x02\x0A\x15TargetResourceDetails\x12\x1C\x0A\x14framework_deployment\x18\x01 \x01(\x09\x12\$\x0A\x1Ctarget_resource_display_name\x18\x02 \x01(\x09\x12\x17\x0A\x0Ftarget_resource\x18\x03 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\x0A\x11minor_revision_id\x18\x07 \x01(\x03\"U\x0A\x05Trend\x120\x0A\x08duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x03\x12\x1A\x0A\x0Dvalue_percent\x18\x02 \x01(\x01B\x03\xE0A\x03*\x90\x01\x0A\x0FEvaluationState\x12 \x0A\x1CEVALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17EVALUATION_STATE_PASSED\x10\x01\x12\x1B\x0A\x17EVALUATION_STATE_FAILED\x10\x02\x12!\x0A\x1DEVALUATION_STATE_NOT_ASSESSED\x10\x03*\xD9\x01\x0A\x0CFindingClass\x12\x1D\x0A\x19FINDING_CLASS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06THREAT\x10\x01\x12\x11\x0A\x0DVULNERABILITY\x10\x02\x12\x14\x0A\x10MISCONFIGURATION\x10\x03\x12\x0F\x0A\x0BOBSERVATION\x10\x04\x12\x0D\x0A\x09SCC_ERROR\x10\x05\x12\x15\x0A\x11POSTURE_VIOLATION\x10\x06\x12\x15\x0A\x11TOXIC_COMBINATION\x10\x07\x12\x17\x0A\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0E\x0A\x0ACHOKEPOINT\x10\x09*\xAC\x01\x0A\x1EFrameworkComplianceSummaryView\x121\x0A-FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED\x10\x00\x12+\x0A'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC\x10\x01\x12*\x0A&FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL\x10\x022\xD5\x11\x0A\x0AMonitoring\x12\xA8\x03\x0A ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1AQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xDE\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCE\x01\x12E/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xE0\x02\x0A\x14ListFindingSummaries\x12D.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1AE.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xBA\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xAA\x01\x129/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x123/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x124/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9F\x03\x0A\x1EFetchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1AB.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xE8\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xDA\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12C/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12D/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xF3\x03\x0A\x1EListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1AO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xAF\x02\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9F\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xC4\x03\x0A\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1AS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xF4\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xE6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1AZ\xCAA&cloudsecuritycompliance.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\x89\x03\x0A+com.google.cloud.cloudsecuritycompliance.v1B\x0FMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xAA\x02'Google.Cloud.CloudSecurityCompliance.V1\xCA\x02'Google\\Cloud\\CloudSecurityCompliance\\V1\xEA\x02*Google::Cloud::CloudSecurityCompliance::V1\xEAA^\x0A5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php deleted file mode 100644 index ea8e22537663..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest - */ -class AggregateFrameworkComplianceReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the aggregated compliance report over time to - * retrieve. - * The supported format is: - * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The start and end time range for the aggregated compliance - * report. - * - * Generated from protobuf field .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $interval = null; - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $name Required. The name of the aggregated compliance report over time to - * retrieve. - * - * The supported format is: - * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` - * Please see {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\AggregateFrameworkComplianceReportRequest - * - * @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. The name of the aggregated compliance report over time to - * retrieve. - * The supported format is: - * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` - * @type \Google\Type\Interval $interval - * Optional. The start and end time range for the aggregated compliance - * report. - * @type string $filter - * Optional. The filtering results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the aggregated compliance report over time to - * retrieve. - * The supported format is: - * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` - * - * 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. The name of the aggregated compliance report over time to - * retrieve. - * The supported format is: - * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` - * - * 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; - } - - /** - * Optional. The start and end time range for the aggregated compliance - * report. - * - * Generated from protobuf field .google.type.Interval interval = 2 [(.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. The start and end time range for the aggregated compliance - * report. - * - * Generated from protobuf field .google.type.Interval interval = 2 [(.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; - } - - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php deleted file mode 100644 index 58df58e36367..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregateFrameworkComplianceReportResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse - */ -class AggregateFrameworkComplianceReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of aggregated compliance reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; - */ - private $aggregated_compliance_reports; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport[] $aggregated_compliance_reports - * The list of aggregated compliance reports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The list of aggregated compliance reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport> - */ - public function getAggregatedComplianceReports() - { - return $this->aggregated_compliance_reports; - } - - /** - * The list of aggregated compliance reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport[] $var - * @return $this - */ - public function setAggregatedComplianceReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\AggregatedComplianceReport::class); - $this->aggregated_compliance_reports = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php deleted file mode 100644 index 8eb366263a74..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AggregatedComplianceReport.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport - */ -class AggregatedComplianceReport extends \Google\Protobuf\Internal\Message -{ - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; - */ - protected $control_assessment_details = null; - /** - * The report time of the aggregated compliance report. - * - * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; - */ - protected $report_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details - * The control assessment details of the framework. - * @type \Google\Protobuf\Timestamp $report_time - * The report time of the aggregated compliance report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null - */ - public function getControlAssessmentDetails() - { - return $this->control_assessment_details; - } - - public function hasControlAssessmentDetails() - { - return isset($this->control_assessment_details); - } - - public function clearControlAssessmentDetails() - { - unset($this->control_assessment_details); - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var - * @return $this - */ - public function setControlAssessmentDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); - $this->control_assessment_details = $var; - - return $this; - } - - /** - * The report time of the aggregated compliance report. - * - * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReportTime() - { - return $this->report_time; - } - - public function hasReportTime() - { - return isset($this->report_time); - } - - public function clearReportTime() - { - unset($this->report_time); - } - - /** - * The report time of the aggregated compliance report. - * - * Generated from protobuf field .google.protobuf.Timestamp report_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReportTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->report_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php deleted file mode 100644 index 5f570fa9ee08..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AllowedValues.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AllowedValues - */ -class AllowedValues extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of allowed values for the parameter. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue[] $values - * Required. The list of allowed values for the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of allowed values for the parameter. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParamValue> - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of allowed values for the parameter. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php deleted file mode 100644 index 7132302b8471..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AttributeSubstitutionRule.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule - */ -class AttributeSubstitutionRule extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified proto attribute path, in dot notation. - * For example: `rules[0].cel_expression.resource_types_values` - * - * Generated from protobuf field string attribute = 1; - */ - protected $attribute = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attribute - * The fully qualified proto attribute path, in dot notation. - * For example: `rules[0].cel_expression.resource_types_values` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified proto attribute path, in dot notation. - * For example: `rules[0].cel_expression.resource_types_values` - * - * Generated from protobuf field string attribute = 1; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * The fully qualified proto attribute path, in dot notation. - * For example: `rules[0].cel_expression.resource_types_values` - * - * Generated from protobuf field string attribute = 1; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php deleted file mode 100644 index 94aa234b686c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AuditConfig - */ -class AuditConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of destinations that can be selected for uploading audit - * reports to. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination[] $destinations - * Required. The list of destinations that can be selected for uploading audit - * reports to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of destinations that can be selected for uploading audit - * reports to. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination> - */ - public function getDestinations() - { - return $this->destinations; - } - - /** - * Required. The list of destinations that can be selected for uploading audit - * reports to. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination[] $var - * @return $this - */ - public function setDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig\CmEligibleDestination::class); - $this->destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php deleted file mode 100644 index fd232fe5c77b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/AuditConfig/CmEligibleDestination.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination - */ -class CmEligibleDestination extends \Google\Protobuf\Internal\Message -{ - protected $cm_eligible_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_bucket - * The Cloud Storage bucket where audit reports and evidences can be - * uploaded. The format is `gs://{bucket_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage bucket where audit reports and evidences can be - * uploaded. The format is `gs://{bucket_name}`. - * - * Generated from protobuf field string gcs_bucket = 1; - * @return string - */ - public function getGcsBucket() - { - return $this->readOneof(1); - } - - public function hasGcsBucket() - { - return $this->hasOneof(1); - } - - /** - * The Cloud Storage bucket where audit reports and evidences can be - * uploaded. The format is `gs://{bucket_name}`. - * - * Generated from protobuf field string gcs_bucket = 1; - * @param string $var - * @return $this - */ - public function setGcsBucket($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getCmEligibleDestinations() - { - return $this->whichOneof("cm_eligible_destinations"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php deleted file mode 100644 index c3cb44cdf6fb..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.BucketDestination - */ -class BucketDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the Cloud Storage bucket. - * - * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_uri = ''; - /** - * Optional. The format of the framework audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_audit_format = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_uri - * Required. The URI of the Cloud Storage bucket. - * @type int $framework_audit_format - * Optional. The format of the framework audit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the Cloud Storage bucket. - * - * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketUri() - { - return $this->bucket_uri; - } - - /** - * Required. The URI of the Cloud Storage bucket. - * - * Generated from protobuf field string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketUri($var) - { - GPBUtil::checkString($var, True); - $this->bucket_uri = $var; - - return $this; - } - - /** - * Optional. The format of the framework audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getFrameworkAuditFormat() - { - return $this->framework_audit_format; - } - - /** - * Optional. The format of the framework audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setFrameworkAuditFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination\Format::class); - $this->framework_audit_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php deleted file mode 100644 index cbc54c979c67..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/BucketDestination/Format.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format - */ -class Format -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * The format for the framework audit report is Open Document. - * - * Generated from protobuf enum ODF = 1; - */ - const ODF = 1; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::ODF => 'ODF', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php deleted file mode 100644 index 26f6359d8294..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CELExpression.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CELExpression - */ -class CELExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The logical expression in CEL. The maximum length of the - * condition is 1000 characters. For more information, see [CEL - * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). - * - * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expression = ''; - protected $criteria; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\StringList $resource_types_values - * The resource instance types on which this expression is defined. - * The format is `/`. - * For example: `compute.googleapis.com/Instance` - * @type string $expression - * Required. The logical expression in CEL. The maximum length of the - * condition is 1000 characters. For more information, see [CEL - * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The resource instance types on which this expression is defined. - * The format is `/`. - * For example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; - * @return \Google\Cloud\CloudSecurityCompliance\V1\StringList|null - */ - public function getResourceTypesValues() - { - return $this->readOneof(3); - } - - public function hasResourceTypesValues() - { - return $this->hasOneof(3); - } - - /** - * The resource instance types on which this expression is defined. - * The format is `/`. - * For example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; - * @param \Google\Cloud\CloudSecurityCompliance\V1\StringList $var - * @return $this - */ - public function setResourceTypesValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\StringList::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The logical expression in CEL. The maximum length of the - * condition is 1000 characters. For more information, see [CEL - * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). - * - * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * Required. The logical expression in CEL. The maximum length of the - * condition is 1000 characters. For more information, see [CEL - * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). - * - * Generated from protobuf field string expression = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * @return string - */ - public function getCriteria() - { - return $this->whichOneof("criteria"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php deleted file mode 100644 index 74e369086c0f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest - */ -class CalculateEffectiveCmEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Compliance Manager enrollment to calculate. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Compliance Manager enrollment to calculate. - * - * Supported formats are the following: - * - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * Please see {@see CmEnrollmentServiceClient::cmEnrollmentName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\CalculateEffectiveCmEnrollmentRequest - * - * @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. The name of the Compliance Manager enrollment to calculate. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Compliance Manager enrollment to calculate. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * 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. The name of the Compliance Manager enrollment to calculate. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php deleted file mode 100644 index 3fefbb6d207e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CalculateEffectiveCmEnrollmentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse - */ -class CalculateEffectiveCmEnrollmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The effective Compliance Manager enrollment for the resource. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; - */ - protected $cm_enrollment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cm_enrollment - * The effective Compliance Manager enrollment for the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * The effective Compliance Manager enrollment for the resource. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment|null - */ - public function getCmEnrollment() - { - return $this->cm_enrollment; - } - - public function hasCmEnrollment() - { - return isset($this->cm_enrollment); - } - - public function clearCmEnrollment() - { - unset($this->cm_enrollment); - } - - /** - * The effective Compliance Manager enrollment for the resource. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $var - * @return $this - */ - public function setCmEnrollment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment::class); - $this->cm_enrollment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php deleted file mode 100644 index 118fbd7806ee..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl.php +++ /dev/null @@ -1,614 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControl - */ -class CloudControl extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifier. The name of the cloud control, in either of the - * formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The major version of the cloud control, which is incremented - * in ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $major_revision_id = 0; - /** - * Optional. A description of the cloud control. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The friendly name of the cloud control. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. The supported enforcement modes for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $supported_enforcement_modes; - /** - * Optional. The parameter specifications for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parameter_spec; - /** - * Optional. The rules that you can enforce to meet your security or - * compliance intent. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $rules; - /** - * Optional. The severity of the findings that are generated by the cloud - * control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $severity = 0; - /** - * Optional. The finding category for the cloud control findings. The maximum - * length is 255 characters. - * - * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $finding_category = ''; - /** - * Optional. The supported cloud providers. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $supported_cloud_providers; - /** - * Output only. The frameworks that include this cloud control. - * - * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $related_frameworks; - /** - * Optional. The remediation steps for the cloud control findings. The - * maximum length is 400 characters. - * - * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remediation_steps = ''; - /** - * Optional. The categories for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $categories; - /** - * Output only. The time that the cloud control was last updated. - * `create_time` is used because a new cloud control is created - * whenever an existing cloud control is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Optional. The target resource types that are supported by the cloud - * control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $supported_target_resource_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Identifier. The name of the cloud control, in either of the - * formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * @type int|string $major_revision_id - * Output only. The major version of the cloud control, which is incremented - * in ascending order. - * @type string $description - * Optional. A description of the cloud control. The maximum length is 2000 - * characters. - * @type string $display_name - * Optional. The friendly name of the cloud control. The maximum length is 200 - * characters. - * @type int[] $supported_enforcement_modes - * Output only. The supported enforcement modes for the cloud control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $parameter_spec - * Optional. The parameter specifications for the cloud control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $rules - * Optional. The rules that you can enforce to meet your security or - * compliance intent. - * @type int $severity - * Optional. The severity of the findings that are generated by the cloud - * control. - * @type string $finding_category - * Optional. The finding category for the cloud control findings. The maximum - * length is 255 characters. - * @type int[] $supported_cloud_providers - * Optional. The supported cloud providers. - * @type string[] $related_frameworks - * Output only. The frameworks that include this cloud control. - * @type string $remediation_steps - * Optional. The remediation steps for the cloud control findings. The - * maximum length is 400 characters. - * @type int[] $categories - * Optional. The categories for the cloud control. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time that the cloud control was last updated. - * `create_time` is used because a new cloud control is created - * whenever an existing cloud control is updated. - * @type int[] $supported_target_resource_types - * Optional. The target resource types that are supported by the cloud - * control. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifier. The name of the cloud control, in either of the - * formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Identifier. The name of the cloud control, in either of the - * formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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. The major version of the cloud control, which is incremented - * in ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Output only. The major version of the cloud control, which is incremented - * in ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * Optional. A description of the cloud control. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the cloud control. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The friendly name of the cloud control. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The friendly name of the cloud control. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The supported enforcement modes for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSupportedEnforcementModes() - { - return $this->supported_enforcement_modes; - } - - /** - * Output only. The supported enforcement modes for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setSupportedEnforcementModes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); - $this->supported_enforcement_modes = $arr; - - return $this; - } - - /** - * Optional. The parameter specifications for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec> - */ - public function getParameterSpec() - { - return $this->parameter_spec; - } - - /** - * Optional. The parameter specifications for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec parameter_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $var - * @return $this - */ - public function setParameterSpec($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec::class); - $this->parameter_spec = $arr; - - return $this; - } - - /** - * Optional. The rules that you can enforce to meet your security or - * compliance intent. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Optional. The rules that you can enforce to meet your security or - * compliance intent. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * Optional. The severity of the findings that are generated by the cloud - * control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Optional. The severity of the findings that are generated by the cloud - * control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Optional. The finding category for the cloud control findings. The maximum - * length is 255 characters. - * - * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFindingCategory() - { - return $this->finding_category; - } - - /** - * Optional. The finding category for the cloud control findings. The maximum - * length is 255 characters. - * - * Generated from protobuf field string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFindingCategory($var) - { - GPBUtil::checkString($var, True); - $this->finding_category = $var; - - return $this; - } - - /** - * Optional. The supported cloud providers. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSupportedCloudProviders() - { - return $this->supported_cloud_providers; - } - - /** - * Optional. The supported cloud providers. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setSupportedCloudProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); - $this->supported_cloud_providers = $arr; - - return $this; - } - - /** - * Output only. The frameworks that include this cloud control. - * - * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getRelatedFrameworks() - { - return $this->related_frameworks; - } - - /** - * Output only. The frameworks that include this cloud control. - * - * Generated from protobuf field repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setRelatedFrameworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_frameworks = $arr; - - return $this; - } - - /** - * Optional. The remediation steps for the cloud control findings. The - * maximum length is 400 characters. - * - * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemediationSteps() - { - return $this->remediation_steps; - } - - /** - * Optional. The remediation steps for the cloud control findings. The - * maximum length is 400 characters. - * - * Generated from protobuf field string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemediationSteps($var) - { - GPBUtil::checkString($var, True); - $this->remediation_steps = $var; - - return $this; - } - - /** - * Optional. The categories for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * Optional. The categories for the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlCategory categories = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlCategory::class); - $this->categories = $arr; - - return $this; - } - - /** - * Output only. The time that the cloud control was last updated. - * `create_time` is used because a new cloud control is created - * whenever an existing cloud control is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.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 that the cloud control was last updated. - * `create_time` is used because a new cloud control is created - * whenever an existing cloud control is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.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; - } - - /** - * Optional. The target resource types that are supported by the cloud - * control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getSupportedTargetResourceTypes() - { - return $this->supported_target_resource_types; - } - - /** - * Optional. The target resource types that are supported by the cloud - * control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setSupportedTargetResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceType::class); - $this->supported_target_resource_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php deleted file mode 100644 index 060810af9990..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControl/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControl.Type - */ -class Type -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * A cloud control that's created and managed by you. - * - * Generated from protobuf enum CUSTOM = 1; - */ - const CUSTOM = 1; - /** - * A cloud control that's provided and managed by Google. - * - * Generated from protobuf enum BUILT_IN = 2; - */ - const BUILT_IN = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::CUSTOM => 'CUSTOM', - self::BUILT_IN => 'BUILT_IN', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php deleted file mode 100644 index 3aef7a0830cd..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAssessmentDetails.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails - */ -class CloudControlAssessmentDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The number of findings for the cloud control. - * - * Generated from protobuf field int32 findings_count = 1; - */ - protected $findings_count = 0; - /** - * Output only. The evaluation status of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $evaluation_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $findings_count - * The number of findings for the cloud control. - * @type int $evaluation_state - * Output only. The evaluation status of the cloud control. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The number of findings for the cloud control. - * - * Generated from protobuf field int32 findings_count = 1; - * @return int - */ - public function getFindingsCount() - { - return $this->findings_count; - } - - /** - * The number of findings for the cloud control. - * - * Generated from protobuf field int32 findings_count = 1; - * @param int $var - * @return $this - */ - public function setFindingsCount($var) - { - GPBUtil::checkInt32($var); - $this->findings_count = $var; - - return $this; - } - - /** - * Output only. The evaluation status of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEvaluationState() - { - return $this->evaluation_state; - } - - /** - * Output only. The evaluation status of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEvaluationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EvaluationState::class); - $this->evaluation_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php deleted file mode 100644 index 65c6efb41891..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlAuditDetails.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails - */ -class CloudControlAuditDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_control = ''; - /** - * Output only. The ID of the cloud control. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_control_id = ''; - /** - * Output only. The description of the cloud control. - * - * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_control_description = ''; - /** - * Output only. The overall status of the findings for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliance_state = 0; - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_summary = null; - /** - * Output only. The findings for the control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $findings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_control - * Output only. The name of the cloud control. - * @type string $cloud_control_id - * Output only. The ID of the cloud control. - * @type string $cloud_control_description - * Output only. The description of the cloud control. - * @type int $compliance_state - * Output only. The overall status of the findings for the control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary - * Output only. The summary of the report. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails[] $findings - * Output only. The findings for the control. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCloudControl() - { - return $this->cloud_control; - } - - /** - * Output only. The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCloudControl($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control = $var; - - return $this; - } - - /** - * Output only. The ID of the cloud control. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCloudControlId() - { - return $this->cloud_control_id; - } - - /** - * Output only. The ID of the cloud control. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCloudControlId($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_id = $var; - - return $this; - } - - /** - * Output only. The description of the cloud control. - * - * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCloudControlDescription() - { - return $this->cloud_control_description; - } - - /** - * Output only. The description of the cloud control. - * - * Generated from protobuf field string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCloudControlDescription($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_description = $var; - - return $this; - } - - /** - * Output only. The overall status of the findings for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getComplianceState() - { - return $this->compliance_state; - } - - /** - * Output only. The overall status of the findings for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setComplianceState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); - $this->compliance_state = $var; - - return $this; - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null - */ - public function getReportSummary() - { - return $this->report_summary; - } - - public function hasReportSummary() - { - return isset($this->report_summary); - } - - public function clearReportSummary() - { - unset($this->report_summary); - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var - * @return $this - */ - public function setReportSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); - $this->report_summary = $var; - - return $this; - } - - /** - * Output only. The findings for the control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FindingDetails> - */ - public function getFindings() - { - return $this->findings; - } - - /** - * Output only. The findings for the control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails[] $var - * @return $this - */ - public function setFindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FindingDetails::class); - $this->findings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php deleted file mode 100644 index 407f7d622f04..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlCategory.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlCategory - */ -class CloudControlCategory -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum CLOUD_CONTROL_CATEGORY_UNSPECIFIED = 0; - */ - const CLOUD_CONTROL_CATEGORY_UNSPECIFIED = 0; - /** - * The infrastructure security category. - * - * Generated from protobuf enum CC_CATEGORY_INFRASTRUCTURE = 1; - */ - const CC_CATEGORY_INFRASTRUCTURE = 1; - /** - * The artificial intelligence category. - * - * Generated from protobuf enum CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; - */ - const CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; - /** - * The physical security category. - * - * Generated from protobuf enum CC_CATEGORY_PHYSICAL_SECURITY = 3; - */ - const CC_CATEGORY_PHYSICAL_SECURITY = 3; - /** - * The data security category. - * - * Generated from protobuf enum CC_CATEGORY_DATA_SECURITY = 4; - */ - const CC_CATEGORY_DATA_SECURITY = 4; - /** - * The network security category. - * - * Generated from protobuf enum CC_CATEGORY_NETWORK_SECURITY = 5; - */ - const CC_CATEGORY_NETWORK_SECURITY = 5; - /** - * The incident management category. - * - * Generated from protobuf enum CC_CATEGORY_INCIDENT_MANAGEMENT = 6; - */ - const CC_CATEGORY_INCIDENT_MANAGEMENT = 6; - /** - * The identity and access management category. - * - * Generated from protobuf enum CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; - */ - const CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; - /** - * The encryption category. - * - * Generated from protobuf enum CC_CATEGORY_ENCRYPTION = 8; - */ - const CC_CATEGORY_ENCRYPTION = 8; - /** - * The logs management and infrastructure category. - * - * Generated from protobuf enum CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; - */ - const CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; - /** - * The HR, admin, and processes category. - * - * Generated from protobuf enum CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; - */ - const CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; - /** - * The third-party and sub-processor management category. - * - * Generated from protobuf enum CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; - */ - const CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; - /** - * The legal and disclosures category. - * - * Generated from protobuf enum CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; - */ - const CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; - /** - * The vulnerability management category. - * - * Generated from protobuf enum CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; - */ - const CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; - /** - * The privacy category. - * - * Generated from protobuf enum CC_CATEGORY_PRIVACY = 14; - */ - const CC_CATEGORY_PRIVACY = 14; - /** - * The business continuity and disaster recovery (BCDR) category. - * - * Generated from protobuf enum CC_CATEGORY_BCDR = 15; - */ - const CC_CATEGORY_BCDR = 15; - /** - * The admin access category. - * - * Generated from protobuf enum CC_CATEGORY_ADMIN_ACCESS = 16; - */ - const CC_CATEGORY_ADMIN_ACCESS = 16; - /** - * DRZ (Data Residency). - * - * Generated from protobuf enum CC_CATEGORY_DATA_RESIDENCY = 17; - */ - const CC_CATEGORY_DATA_RESIDENCY = 17; - /** - * RUR (Resource Usage Restriction). - * - * Generated from protobuf enum CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; - */ - const CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; - /** - * SERVICE SPECIFIC - * - * Generated from protobuf enum CC_CATEGORY_SERVICE_SPECIFIC = 19; - */ - const CC_CATEGORY_SERVICE_SPECIFIC = 19; - - private static $valueToName = [ - self::CLOUD_CONTROL_CATEGORY_UNSPECIFIED => 'CLOUD_CONTROL_CATEGORY_UNSPECIFIED', - self::CC_CATEGORY_INFRASTRUCTURE => 'CC_CATEGORY_INFRASTRUCTURE', - self::CC_CATEGORY_ARTIFICIAL_INTELLIGENCE => 'CC_CATEGORY_ARTIFICIAL_INTELLIGENCE', - self::CC_CATEGORY_PHYSICAL_SECURITY => 'CC_CATEGORY_PHYSICAL_SECURITY', - self::CC_CATEGORY_DATA_SECURITY => 'CC_CATEGORY_DATA_SECURITY', - self::CC_CATEGORY_NETWORK_SECURITY => 'CC_CATEGORY_NETWORK_SECURITY', - self::CC_CATEGORY_INCIDENT_MANAGEMENT => 'CC_CATEGORY_INCIDENT_MANAGEMENT', - self::CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT => 'CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT', - self::CC_CATEGORY_ENCRYPTION => 'CC_CATEGORY_ENCRYPTION', - self::CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE => 'CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE', - self::CC_CATEGORY_HR_ADMIN_AND_PROCESSES => 'CC_CATEGORY_HR_ADMIN_AND_PROCESSES', - self::CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT => 'CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT', - self::CC_CATEGORY_LEGAL_AND_DISCLOSURES => 'CC_CATEGORY_LEGAL_AND_DISCLOSURES', - self::CC_CATEGORY_VULNERABILITY_MANAGEMENT => 'CC_CATEGORY_VULNERABILITY_MANAGEMENT', - self::CC_CATEGORY_PRIVACY => 'CC_CATEGORY_PRIVACY', - self::CC_CATEGORY_BCDR => 'CC_CATEGORY_BCDR', - self::CC_CATEGORY_ADMIN_ACCESS => 'CC_CATEGORY_ADMIN_ACCESS', - self::CC_CATEGORY_DATA_RESIDENCY => 'CC_CATEGORY_DATA_RESIDENCY', - self::CC_CATEGORY_RESOURCE_USAGE_RESTRICTION => 'CC_CATEGORY_RESOURCE_USAGE_RESTRICTION', - self::CC_CATEGORY_SERVICE_SPECIFIC => 'CC_CATEGORY_SERVICE_SPECIFIC', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php deleted file mode 100644 index e8b5721a137b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeployment.php +++ /dev/null @@ -1,554 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment - */ -class CloudControlDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The details of the target resource that the cloud control is - * deployed You can use an existing target resource or create a new target. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_resource_config = null; - /** - * Output only. The resource that the cloud control is deployed on, in one of - * the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource = ''; - /** - * Required. The deployment mode and parameters for the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cloud_control_metadata = null; - /** - * Optional. A friendly description for the cloud control deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The state of the cloud control deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deployment_state = 0; - /** - * Output only. The time when the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. To prevent concurrent updates from overwriting each other, - * provide the `etag` when you update a cloud control deployment. You can also - * provide the `etag` when you delete a cloud control deployment to help - * ensure that you're deleting the intended version of the - * deployment. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Output only. The cloud control after the given parameters are substituted. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $parameter_substituted_cloud_control = null; - /** - * Output only. The references to the framework deployments that this cloud - * control deployment is part of. A cloud control deployment can be part of - * multiple framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $framework_deployment_references; - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource_display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config - * Required. The details of the target resource that the cloud control is - * deployed You can use an existing target resource or create a new target. - * @type string $target_resource - * Output only. The resource that the cloud control is deployed on, in one of - * the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata $cloud_control_metadata - * Required. The deployment mode and parameters for the cloud control. - * @type string $description - * Optional. A friendly description for the cloud control deployment. - * @type int $deployment_state - * Output only. The state of the cloud control deployment. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the resource was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the resource was last updated. - * @type string $etag - * Optional. To prevent concurrent updates from overwriting each other, - * provide the `etag` when you update a cloud control deployment. You can also - * provide the `etag` when you delete a cloud control deployment to help - * ensure that you're deleting the intended version of the - * deployment. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $parameter_substituted_cloud_control - * Output only. The cloud control after the given parameters are substituted. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference[] $framework_deployment_references - * Output only. The references to the framework deployments that this cloud - * control deployment is part of. A cloud control deployment can be part of - * multiple framework deployments. - * @type string $target_resource_display_name - * Output only. The display name of the target resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * 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. The details of the target resource that the cloud control is - * deployed You can use an existing target resource or create a new target. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig|null - */ - public function getTargetResourceConfig() - { - return $this->target_resource_config; - } - - public function hasTargetResourceConfig() - { - return isset($this->target_resource_config); - } - - public function clearTargetResourceConfig() - { - unset($this->target_resource_config); - } - - /** - * Required. The details of the target resource that the cloud control is - * deployed You can use an existing target resource or create a new target. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $var - * @return $this - */ - public function setTargetResourceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig::class); - $this->target_resource_config = $var; - - return $this; - } - - /** - * Output only. The resource that the cloud control is deployed on, in one of - * the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Output only. The resource that the cloud control is deployed on, in one of - * the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - - /** - * Required. The deployment mode and parameters for the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata|null - */ - public function getCloudControlMetadata() - { - return $this->cloud_control_metadata; - } - - public function hasCloudControlMetadata() - { - return isset($this->cloud_control_metadata); - } - - public function clearCloudControlMetadata() - { - unset($this->cloud_control_metadata); - } - - /** - * Required. The deployment mode and parameters for the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata $var - * @return $this - */ - public function setCloudControlMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata::class); - $this->cloud_control_metadata = $var; - - return $this; - } - - /** - * Optional. A friendly description for the cloud control deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A friendly description for the cloud control deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The state of the cloud control deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - /** - * Output only. The state of the cloud control deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\DeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - - /** - * Output only. The time when the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.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 when the resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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 time when the resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.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; - } - - /** - * Optional. To prevent concurrent updates from overwriting each other, - * provide the `etag` when you update a cloud control deployment. You can also - * provide the `etag` when you delete a cloud control deployment to help - * ensure that you're deleting the intended version of the - * deployment. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. To prevent concurrent updates from overwriting each other, - * provide the `etag` when you update a cloud control deployment. You can also - * provide the `etag` when you delete a cloud control deployment to help - * ensure that you're deleting the intended version of the - * deployment. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The cloud control after the given parameters are substituted. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null - */ - public function getParameterSubstitutedCloudControl() - { - return $this->parameter_substituted_cloud_control; - } - - public function hasParameterSubstitutedCloudControl() - { - return isset($this->parameter_substituted_cloud_control); - } - - public function clearParameterSubstitutedCloudControl() - { - unset($this->parameter_substituted_cloud_control); - } - - /** - * Output only. The cloud control after the given parameters are substituted. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl parameter_substituted_cloud_control = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var - * @return $this - */ - public function setParameterSubstitutedCloudControl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); - $this->parameter_substituted_cloud_control = $var; - - return $this; - } - - /** - * Output only. The references to the framework deployments that this cloud - * control deployment is part of. A cloud control deployment can be part of - * multiple framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference> - */ - public function getFrameworkDeploymentReferences() - { - return $this->framework_deployment_references; - } - - /** - * Output only. The references to the framework deployments that this cloud - * control deployment is part of. A cloud control deployment can be part of - * multiple framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference framework_deployment_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference[] $var - * @return $this - */ - public function setFrameworkDeploymentReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeploymentReference::class); - $this->framework_deployment_references = $arr; - - return $this; - } - - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetResourceDisplayName() - { - return $this->target_resource_display_name; - } - - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetResourceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->target_resource_display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php deleted file mode 100644 index 3a86d1785e58..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDeploymentReference.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference - */ -class CloudControlDeploymentReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $cloud_control_deployment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_control_deployment - * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getCloudControlDeployment() - { - return $this->cloud_control_deployment; - } - - /** - * Output only. The name of the CloudControlDeployment. The format is - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string cloud_control_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCloudControlDeployment($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_deployment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php deleted file mode 100644 index 280eb25d3ae0..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlDetails.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlDetails - */ -class CloudControlDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the cloud control, in one of the following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The major version of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $major_revision_id = 0; - /** - * Optional. Parameters are key-value pairs that let you provide your custom - * location requirements, environment requirements, or other settings that are - * relevant to the cloud control. An example parameter is - * `{"name": "location","value": "us-west-1"}`. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the cloud control, in one of the following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * @type int|string $major_revision_id - * Required. The major version of the cloud control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Parameter[] $parameters - * Optional. Parameters are key-value pairs that let you provide your custom - * location requirements, environment requirements, or other settings that are - * relevant to the cloud control. An example parameter is - * `{"name": "location","value": "us-west-1"}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the cloud control, in one of the following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the cloud control, in one of the following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The major version of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Required. The major version of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * Optional. Parameters are key-value pairs that let you provide your custom - * location requirements, environment requirements, or other settings that are - * relevant to the cloud control. An example parameter is - * `{"name": "location","value": "us-west-1"}`. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Parameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Optional. Parameters are key-value pairs that let you provide your custom - * location requirements, environment requirements, or other settings that are - * relevant to the cloud control. An example parameter is - * `{"name": "location","value": "us-west-1"}`. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Parameter parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Parameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Parameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php deleted file mode 100644 index 843c4c4a362f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlGroupAuditDetails.php +++ /dev/null @@ -1,495 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails - */ -class CloudControlGroupAuditDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ID of the cloud control group. - * - * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_control_group_id = ''; - /** - * Output only. The display name of the cloud control group. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The description of the cloud control group. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. The responsibility type. - * - * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $responsibility_type = ''; - /** - * Output only. The description of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $google_responsibility_description = ''; - /** - * Output only. The implementation of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $google_responsibility_implementation = ''; - /** - * Output only. The description of your responsibility. - * - * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $customer_responsibility_description = ''; - /** - * Output only. The implementation of your responsibility. - * - * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $customer_responsibility_implementation = ''; - /** - * Output only. The compliance state of the control group. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliance_state = 0; - /** - * Output only. The ID of the regulatory control. - * - * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $control_id = ''; - /** - * Output only. The control family. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $control_family = null; - /** - * Output only. The details for the cloud controls within this group. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $cloud_control_details; - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_summary = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_control_group_id - * Output only. The ID of the cloud control group. - * @type string $display_name - * Output only. The display name of the cloud control group. - * @type string $description - * Output only. The description of the cloud control group. - * @type string $responsibility_type - * Output only. The responsibility type. - * @type string $google_responsibility_description - * Output only. The description of Google's responsibility. - * @type string $google_responsibility_implementation - * Output only. The implementation of Google's responsibility. - * @type string $customer_responsibility_description - * Output only. The description of your responsibility. - * @type string $customer_responsibility_implementation - * Output only. The implementation of your responsibility. - * @type int $compliance_state - * Output only. The compliance state of the control group. - * @type string $control_id - * Output only. The ID of the regulatory control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $control_family - * Output only. The control family. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $cloud_control_details - * Output only. The details for the cloud controls within this group. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary - * Output only. The summary of the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ID of the cloud control group. - * - * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCloudControlGroupId() - { - return $this->cloud_control_group_id; - } - - /** - * Output only. The ID of the cloud control group. - * - * Generated from protobuf field string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCloudControlGroupId($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_group_id = $var; - - return $this; - } - - /** - * Output only. The display name of the cloud control group. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the cloud control group. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The description of the cloud control group. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. The description of the cloud control group. - * - * Generated from protobuf field string description = 3 [(.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. The responsibility type. - * - * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResponsibilityType() - { - return $this->responsibility_type; - } - - /** - * Output only. The responsibility type. - * - * Generated from protobuf field string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResponsibilityType($var) - { - GPBUtil::checkString($var, True); - $this->responsibility_type = $var; - - return $this; - } - - /** - * Output only. The description of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGoogleResponsibilityDescription() - { - return $this->google_responsibility_description; - } - - /** - * Output only. The description of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGoogleResponsibilityDescription($var) - { - GPBUtil::checkString($var, True); - $this->google_responsibility_description = $var; - - return $this; - } - - /** - * Output only. The implementation of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGoogleResponsibilityImplementation() - { - return $this->google_responsibility_implementation; - } - - /** - * Output only. The implementation of Google's responsibility. - * - * Generated from protobuf field string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGoogleResponsibilityImplementation($var) - { - GPBUtil::checkString($var, True); - $this->google_responsibility_implementation = $var; - - return $this; - } - - /** - * Output only. The description of your responsibility. - * - * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCustomerResponsibilityDescription() - { - return $this->customer_responsibility_description; - } - - /** - * Output only. The description of your responsibility. - * - * Generated from protobuf field string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCustomerResponsibilityDescription($var) - { - GPBUtil::checkString($var, True); - $this->customer_responsibility_description = $var; - - return $this; - } - - /** - * Output only. The implementation of your responsibility. - * - * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCustomerResponsibilityImplementation() - { - return $this->customer_responsibility_implementation; - } - - /** - * Output only. The implementation of your responsibility. - * - * Generated from protobuf field string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCustomerResponsibilityImplementation($var) - { - GPBUtil::checkString($var, True); - $this->customer_responsibility_implementation = $var; - - return $this; - } - - /** - * Output only. The compliance state of the control group. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getComplianceState() - { - return $this->compliance_state; - } - - /** - * Output only. The compliance state of the control group. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setComplianceState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); - $this->compliance_state = $var; - - return $this; - } - - /** - * Output only. The ID of the regulatory control. - * - * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getControlId() - { - return $this->control_id; - } - - /** - * Output only. The ID of the regulatory control. - * - * Generated from protobuf field string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setControlId($var) - { - GPBUtil::checkString($var, True); - $this->control_id = $var; - - return $this; - } - - /** - * Output only. The control family. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily|null - */ - public function getControlFamily() - { - return $this->control_family; - } - - public function hasControlFamily() - { - return isset($this->control_family); - } - - public function clearControlFamily() - { - unset($this->control_family); - } - - /** - * Output only. The control family. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily $var - * @return $this - */ - public function setControlFamily($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlFamily::class); - $this->control_family = $var; - - return $this; - } - - /** - * Output only. The details for the cloud controls within this group. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails> - */ - public function getCloudControlDetails() - { - return $this->cloud_control_details; - } - - /** - * Output only. The details for the cloud controls within this group. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $var - * @return $this - */ - public function setCloudControlDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails::class); - $this->cloud_control_details = $arr; - - return $this; - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null - */ - public function getReportSummary() - { - return $this->report_summary; - } - - public function hasReportSummary() - { - return isset($this->report_summary); - } - - public function clearReportSummary() - { - unset($this->report_summary); - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var - * @return $this - */ - public function setReportSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); - $this->report_summary = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php deleted file mode 100644 index 15ee9e6f071a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlMetadata.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata - */ -class CloudControlMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The cloud control name and parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cloud_control_details = null; - /** - * Required. The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enforcement_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails $cloud_control_details - * Required. The cloud control name and parameters. - * @type int $enforcement_mode - * Required. The enforcement mode of the cloud control. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The cloud control name and parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails|null - */ - public function getCloudControlDetails() - { - return $this->cloud_control_details; - } - - public function hasCloudControlDetails() - { - return isset($this->cloud_control_details); - } - - public function clearCloudControlDetails() - { - unset($this->cloud_control_details); - } - - /** - * Required. The cloud control name and parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails $var - * @return $this - */ - public function setCloudControlDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails::class); - $this->cloud_control_details = $var; - - return $this; - } - - /** - * Required. The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEnforcementMode() - { - return $this->enforcement_mode; - } - - /** - * Required. The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEnforcementMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); - $this->enforcement_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php deleted file mode 100644 index fc76eb78793d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudControlReport.php +++ /dev/null @@ -1,584 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudControlReport - */ -class CloudControlReport extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1; - */ - protected $cloud_control = ''; - /** - * The display name of the cloud control. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The description of the cloud control. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The list of categories for the cloud control. - * - * Generated from protobuf field repeated string categories = 6; - */ - private $categories; - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; - */ - private $similar_controls; - /** - * The type of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; - */ - protected $cloud_control_type = 0; - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 11; - */ - protected $finding_category = ''; - /** - * The list of rules that correspond to the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; - */ - private $rules; - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; - */ - protected $finding_severity = 0; - /** - * The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; - */ - protected $enforcement_mode = 0; - /** - * The name of the cloud control deployment. - * - * Generated from protobuf field string cloud_control_deployment = 17; - */ - protected $cloud_control_deployment = ''; - /** - * The major revision ID of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 18; - */ - protected $major_revision_id = 0; - /** - * The minor revision ID of the cloud control. - * - * Generated from protobuf field int64 minor_revision_id = 19; - */ - protected $minor_revision_id = 0; - /** - * The major revision IDs of the frameworks that the cloud control belongs to. - * - * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; - */ - private $framework_major_revision_ids; - protected $assessment_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails $manual_cloud_control_assessment_details - * The details of a manual cloud control assessment. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails $cloud_control_assessment_details - * The details of a cloud control assessment. - * @type string $cloud_control - * The name of the cloud control. - * @type string $display_name - * The display name of the cloud control. - * @type string $description - * The description of the cloud control. - * @type string[] $categories - * The list of categories for the cloud control. - * @type \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $similar_controls - * The list of similar controls. - * @type int $cloud_control_type - * The type of the cloud control. - * @type string $finding_category - * The category of the finding. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $rules - * The list of rules that correspond to the cloud control. - * @type int $finding_severity - * The severity of the finding. - * @type int $enforcement_mode - * The enforcement mode of the cloud control. - * @type string $cloud_control_deployment - * The name of the cloud control deployment. - * @type int|string $major_revision_id - * The major revision ID of the cloud control. - * @type int|string $minor_revision_id - * The minor revision ID of the cloud control. - * @type int[]|string[] $framework_major_revision_ids - * The major revision IDs of the frameworks that the cloud control belongs to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The details of a manual cloud control assessment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails|null - */ - public function getManualCloudControlAssessmentDetails() - { - return $this->readOneof(13); - } - - public function hasManualCloudControlAssessmentDetails() - { - return $this->hasOneof(13); - } - - /** - * The details of a manual cloud control assessment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails $var - * @return $this - */ - public function setManualCloudControlAssessmentDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ManualCloudControlAssessmentDetails::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * The details of a cloud control assessment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails|null - */ - public function getCloudControlAssessmentDetails() - { - return $this->readOneof(14); - } - - public function hasCloudControlAssessmentDetails() - { - return $this->hasOneof(14); - } - - /** - * The details of a cloud control assessment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails $var - * @return $this - */ - public function setCloudControlAssessmentDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAssessmentDetails::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1; - * @return string - */ - public function getCloudControl() - { - return $this->cloud_control; - } - - /** - * The name of the cloud control. - * - * Generated from protobuf field string cloud_control = 1; - * @param string $var - * @return $this - */ - public function setCloudControl($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control = $var; - - return $this; - } - - /** - * The display name of the cloud control. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the cloud control. - * - * 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; - } - - /** - * The description of the cloud control. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the cloud control. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The list of categories for the cloud control. - * - * Generated from protobuf field repeated string categories = 6; - * @return RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * The list of categories for the cloud control. - * - * Generated from protobuf field repeated string categories = 6; - * @param string[] $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->categories = $arr; - - return $this; - } - - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\SimilarControls> - */ - public function getSimilarControls() - { - return $this->similar_controls; - } - - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; - * @param \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $var - * @return $this - */ - public function setSimilarControls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls::class); - $this->similar_controls = $arr; - - return $this; - } - - /** - * The type of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; - * @return int - */ - public function getCloudControlType() - { - return $this->cloud_control_type; - } - - /** - * The type of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; - * @param int $var - * @return $this - */ - public function setCloudControlType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl\Type::class); - $this->cloud_control_type = $var; - - return $this; - } - - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 11; - * @return string - */ - public function getFindingCategory() - { - return $this->finding_category; - } - - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 11; - * @param string $var - * @return $this - */ - public function setFindingCategory($var) - { - GPBUtil::checkString($var, True); - $this->finding_category = $var; - - return $this; - } - - /** - * The list of rules that correspond to the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Rule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * The list of rules that correspond to the cloud control. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Rule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; - * @return int - */ - public function getFindingSeverity() - { - return $this->finding_severity; - } - - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; - * @param int $var - * @return $this - */ - public function setFindingSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); - $this->finding_severity = $var; - - return $this; - } - - /** - * The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; - * @return int - */ - public function getEnforcementMode() - { - return $this->enforcement_mode; - } - - /** - * The enforcement mode of the cloud control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; - * @param int $var - * @return $this - */ - public function setEnforcementMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); - $this->enforcement_mode = $var; - - return $this; - } - - /** - * The name of the cloud control deployment. - * - * Generated from protobuf field string cloud_control_deployment = 17; - * @return string - */ - public function getCloudControlDeployment() - { - return $this->cloud_control_deployment; - } - - /** - * The name of the cloud control deployment. - * - * Generated from protobuf field string cloud_control_deployment = 17; - * @param string $var - * @return $this - */ - public function setCloudControlDeployment($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_deployment = $var; - - return $this; - } - - /** - * The major revision ID of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 18; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * The major revision ID of the cloud control. - * - * Generated from protobuf field int64 major_revision_id = 18; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * The minor revision ID of the cloud control. - * - * Generated from protobuf field int64 minor_revision_id = 19; - * @return int|string - */ - public function getMinorRevisionId() - { - return $this->minor_revision_id; - } - - /** - * The minor revision ID of the cloud control. - * - * Generated from protobuf field int64 minor_revision_id = 19; - * @param int|string $var - * @return $this - */ - public function setMinorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->minor_revision_id = $var; - - return $this; - } - - /** - * The major revision IDs of the frameworks that the cloud control belongs to. - * - * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; - * @return RepeatedField|RepeatedField - */ - public function getFrameworkMajorRevisionIds() - { - return $this->framework_major_revision_ids; - } - - /** - * The major revision IDs of the frameworks that the cloud control belongs to. - * - * Generated from protobuf field repeated int64 framework_major_revision_ids = 20; - * @param int[]|string[] $var - * @return $this - */ - public function setFrameworkMajorRevisionIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->framework_major_revision_ids = $arr; - - return $this; - } - - /** - * @return string - */ - public function getAssessmentDetails() - { - return $this->whichOneof("assessment_details"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php deleted file mode 100644 index 9047b9630529..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CloudProvider.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CloudProvider - */ -class CloudProvider -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum CLOUD_PROVIDER_UNSPECIFIED = 0; - */ - const CLOUD_PROVIDER_UNSPECIFIED = 0; - /** - * Amazon Web Services (AWS). - * - * Generated from protobuf enum AWS = 1; - */ - const AWS = 1; - /** - * Microsoft Azure. - * - * Generated from protobuf enum AZURE = 2; - */ - const AZURE = 2; - /** - * Google Cloud. - * - * Generated from protobuf enum GCP = 3; - */ - const GCP = 3; - - private static $valueToName = [ - self::CLOUD_PROVIDER_UNSPECIFIED => 'CLOUD_PROVIDER_UNSPECIFIED', - self::AWS => 'AWS', - self::AZURE => 'AZURE', - self::GCP => 'GCP', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php deleted file mode 100644 index 977c81207a4c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CmEnrollment.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CmEnrollment - */ -class CmEnrollment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the Compliance Manager enrollment. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Whether the resource is enrolled in Compliance Manager. - * This setting is inherited by all descendants. - * - * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enrolled = false; - /** - * Optional. The audit configuration for Compliance Manager. - * If set at a scope, this configuration overrides any inherited audit - * configuration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $audit_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the Compliance Manager enrollment. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * @type bool $enrolled - * Optional. Whether the resource is enrolled in Compliance Manager. - * This setting is inherited by all descendants. - * @type \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig $audit_config - * Optional. The audit configuration for Compliance Manager. - * If set at a scope, this configuration overrides any inherited audit - * configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the Compliance Manager enrollment. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the Compliance Manager enrollment. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/cmEnrollment` - * * `folders/{folder_id}/locations/{location}/cmEnrollment` - * * `projects/{project_id}/locations/{location}/cmEnrollment` - * - * 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; - } - - /** - * Optional. Whether the resource is enrolled in Compliance Manager. - * This setting is inherited by all descendants. - * - * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnrolled() - { - return $this->enrolled; - } - - /** - * Optional. Whether the resource is enrolled in Compliance Manager. - * This setting is inherited by all descendants. - * - * Generated from protobuf field bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnrolled($var) - { - GPBUtil::checkBool($var); - $this->enrolled = $var; - - return $this; - } - - /** - * Optional. The audit configuration for Compliance Manager. - * If set at a scope, this configuration overrides any inherited audit - * configuration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig|null - */ - public function getAuditConfig() - { - return $this->audit_config; - } - - public function hasAuditConfig() - { - return isset($this->audit_config); - } - - public function clearAuditConfig() - { - unset($this->audit_config); - } - - /** - * Optional. The audit configuration for Compliance Manager. - * If set at a scope, this configuration overrides any inherited audit - * configuration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig $var - * @return $this - */ - public function setAuditConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AuditConfig::class); - $this->audit_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php deleted file mode 100644 index 0cfaf6bebedf..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ComplianceState.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ComplianceState - */ -class ComplianceState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum COMPLIANCE_STATE_UNSPECIFIED = 0; - */ - const COMPLIANCE_STATE_UNSPECIFIED = 0; - /** - * The resource is compliant. - * - * Generated from protobuf enum COMPLIANT = 1; - */ - const COMPLIANT = 1; - /** - * The resource has a violation. - * - * Generated from protobuf enum VIOLATION = 2; - */ - const VIOLATION = 2; - /** - * The resource requires manual review from you. - * - * Generated from protobuf enum MANUAL_REVIEW_NEEDED = 3; - */ - const MANUAL_REVIEW_NEEDED = 3; - /** - * An error occurred while computing the resource status. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - /** - * The resource can't be audited. - * - * Generated from protobuf enum AUDIT_NOT_SUPPORTED = 5; - */ - const AUDIT_NOT_SUPPORTED = 5; - - private static $valueToName = [ - self::COMPLIANCE_STATE_UNSPECIFIED => 'COMPLIANCE_STATE_UNSPECIFIED', - self::COMPLIANT => 'COMPLIANT', - self::VIOLATION => 'VIOLATION', - self::MANUAL_REVIEW_NEEDED => 'MANUAL_REVIEW_NEEDED', - self::ERROR => 'ERROR', - self::AUDIT_NOT_SUPPORTED => 'AUDIT_NOT_SUPPORTED', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php deleted file mode 100644 index fc0cccad0f41..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlAssessmentDetails.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails - */ -class ControlAssessmentDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The number of controls that are passing or not assessed. - * - * Generated from protobuf field int32 passing_controls = 1; - */ - protected $passing_controls = 0; - /** - * The number of controls that are failing. - * - * Generated from protobuf field int32 failing_controls = 2; - */ - protected $failing_controls = 0; - /** - * The number of controls that were assessed and are passing. - * - * Generated from protobuf field int32 assessed_passing_controls = 3; - */ - protected $assessed_passing_controls = 0; - /** - * The number of controls that aren't assessed because they require manual - * review. - * - * Generated from protobuf field int32 not_assessed_controls = 4; - */ - protected $not_assessed_controls = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $passing_controls - * The number of controls that are passing or not assessed. - * @type int $failing_controls - * The number of controls that are failing. - * @type int $assessed_passing_controls - * The number of controls that were assessed and are passing. - * @type int $not_assessed_controls - * The number of controls that aren't assessed because they require manual - * review. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The number of controls that are passing or not assessed. - * - * Generated from protobuf field int32 passing_controls = 1; - * @return int - */ - public function getPassingControls() - { - return $this->passing_controls; - } - - /** - * The number of controls that are passing or not assessed. - * - * Generated from protobuf field int32 passing_controls = 1; - * @param int $var - * @return $this - */ - public function setPassingControls($var) - { - GPBUtil::checkInt32($var); - $this->passing_controls = $var; - - return $this; - } - - /** - * The number of controls that are failing. - * - * Generated from protobuf field int32 failing_controls = 2; - * @return int - */ - public function getFailingControls() - { - return $this->failing_controls; - } - - /** - * The number of controls that are failing. - * - * Generated from protobuf field int32 failing_controls = 2; - * @param int $var - * @return $this - */ - public function setFailingControls($var) - { - GPBUtil::checkInt32($var); - $this->failing_controls = $var; - - return $this; - } - - /** - * The number of controls that were assessed and are passing. - * - * Generated from protobuf field int32 assessed_passing_controls = 3; - * @return int - */ - public function getAssessedPassingControls() - { - return $this->assessed_passing_controls; - } - - /** - * The number of controls that were assessed and are passing. - * - * Generated from protobuf field int32 assessed_passing_controls = 3; - * @param int $var - * @return $this - */ - public function setAssessedPassingControls($var) - { - GPBUtil::checkInt32($var); - $this->assessed_passing_controls = $var; - - return $this; - } - - /** - * The number of controls that aren't assessed because they require manual - * review. - * - * Generated from protobuf field int32 not_assessed_controls = 4; - * @return int - */ - public function getNotAssessedControls() - { - return $this->not_assessed_controls; - } - - /** - * The number of controls that aren't assessed because they require manual - * review. - * - * Generated from protobuf field int32 not_assessed_controls = 4; - * @param int $var - * @return $this - */ - public function setNotAssessedControls($var) - { - GPBUtil::checkInt32($var); - $this->not_assessed_controls = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php deleted file mode 100644 index 77de354fd1cc..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlComplianceSummary.php +++ /dev/null @@ -1,411 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary - */ -class ControlComplianceSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the control. - * - * Generated from protobuf field string control = 1; - */ - protected $control = ''; - /** - * The display name of the control. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The description of the control. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The overall evaluation status of the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $overall_evaluation_state = 0; - /** - * The total number of findings for the control. - * - * Generated from protobuf field int32 total_findings_count = 5; - */ - protected $total_findings_count = 0; - /** - * The list of compliance frameworks that the control belongs to. - * - * Generated from protobuf field repeated string compliance_frameworks = 6; - */ - private $compliance_frameworks; - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; - */ - private $similar_controls; - /** - * The list of cloud control reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; - */ - private $cloud_control_reports; - /** - * The responsibility type for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; - */ - protected $control_responsibility_type = 0; - /** - * Whether the control is a fake control. Fake controls are created - * and mapped to cloud controls that don't belong to a control group. - * - * Generated from protobuf field bool is_fake_control = 10; - */ - protected $is_fake_control = false; - /** - * Identifier. The name of the control compliance summary. - * - * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $control - * The name of the control. - * @type string $display_name - * The display name of the control. - * @type string $description - * The description of the control. - * @type int $overall_evaluation_state - * Output only. The overall evaluation status of the control. - * @type int $total_findings_count - * The total number of findings for the control. - * @type string[] $compliance_frameworks - * The list of compliance frameworks that the control belongs to. - * @type \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $similar_controls - * The list of similar controls. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport[] $cloud_control_reports - * The list of cloud control reports. - * @type int $control_responsibility_type - * The responsibility type for the control. - * @type bool $is_fake_control - * Whether the control is a fake control. Fake controls are created - * and mapped to cloud controls that don't belong to a control group. - * @type string $name - * Identifier. The name of the control compliance summary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The name of the control. - * - * Generated from protobuf field string control = 1; - * @return string - */ - public function getControl() - { - return $this->control; - } - - /** - * The name of the control. - * - * Generated from protobuf field string control = 1; - * @param string $var - * @return $this - */ - public function setControl($var) - { - GPBUtil::checkString($var, True); - $this->control = $var; - - return $this; - } - - /** - * The display name of the control. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the control. - * - * 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; - } - - /** - * The description of the control. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the control. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The overall evaluation status of the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getOverallEvaluationState() - { - return $this->overall_evaluation_state; - } - - /** - * Output only. The overall evaluation status of the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setOverallEvaluationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\EvaluationState::class); - $this->overall_evaluation_state = $var; - - return $this; - } - - /** - * The total number of findings for the control. - * - * Generated from protobuf field int32 total_findings_count = 5; - * @return int - */ - public function getTotalFindingsCount() - { - return $this->total_findings_count; - } - - /** - * The total number of findings for the control. - * - * Generated from protobuf field int32 total_findings_count = 5; - * @param int $var - * @return $this - */ - public function setTotalFindingsCount($var) - { - GPBUtil::checkInt32($var); - $this->total_findings_count = $var; - - return $this; - } - - /** - * The list of compliance frameworks that the control belongs to. - * - * Generated from protobuf field repeated string compliance_frameworks = 6; - * @return RepeatedField - */ - public function getComplianceFrameworks() - { - return $this->compliance_frameworks; - } - - /** - * The list of compliance frameworks that the control belongs to. - * - * Generated from protobuf field repeated string compliance_frameworks = 6; - * @param string[] $var - * @return $this - */ - public function setComplianceFrameworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->compliance_frameworks = $arr; - - return $this; - } - - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\SimilarControls> - */ - public function getSimilarControls() - { - return $this->similar_controls; - } - - /** - * The list of similar controls. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; - * @param \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls[] $var - * @return $this - */ - public function setSimilarControls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\SimilarControls::class); - $this->similar_controls = $arr; - - return $this; - } - - /** - * The list of cloud control reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport> - */ - public function getCloudControlReports() - { - return $this->cloud_control_reports; - } - - /** - * The list of cloud control reports. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport[] $var - * @return $this - */ - public function setCloudControlReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlReport::class); - $this->cloud_control_reports = $arr; - - return $this; - } - - /** - * The responsibility type for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; - * @return int - */ - public function getControlResponsibilityType() - { - return $this->control_responsibility_type; - } - - /** - * The responsibility type for the control. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; - * @param int $var - * @return $this - */ - public function setControlResponsibilityType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\RegulatoryControlResponsibilityType::class); - $this->control_responsibility_type = $var; - - return $this; - } - - /** - * Whether the control is a fake control. Fake controls are created - * and mapped to cloud controls that don't belong to a control group. - * - * Generated from protobuf field bool is_fake_control = 10; - * @return bool - */ - public function getIsFakeControl() - { - return $this->is_fake_control; - } - - /** - * Whether the control is a fake control. Fake controls are created - * and mapped to cloud controls that don't belong to a control group. - * - * Generated from protobuf field bool is_fake_control = 10; - * @param bool $var - * @return $this - */ - public function setIsFakeControl($var) - { - GPBUtil::checkBool($var); - $this->is_fake_control = $var; - - return $this; - } - - /** - * Identifier. The name of the control compliance summary. - * - * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the control compliance summary. - * - * Generated from protobuf field string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php deleted file mode 100644 index 05dbb9346a72..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ControlFamily.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ControlFamily - */ -class ControlFamily extends \Google\Protobuf\Internal\Message -{ - /** - * The identifier for the regulatory control family. - * - * Generated from protobuf field string family_id = 1; - */ - protected $family_id = ''; - /** - * The friendly name for the regulatory control family. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_id - * The identifier for the regulatory control family. - * @type string $display_name - * The friendly name for the regulatory control family. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The identifier for the regulatory control family. - * - * Generated from protobuf field string family_id = 1; - * @return string - */ - public function getFamilyId() - { - return $this->family_id; - } - - /** - * The identifier for the regulatory control family. - * - * Generated from protobuf field string family_id = 1; - * @param string $var - * @return $this - */ - public function setFamilyId($var) - { - GPBUtil::checkString($var, True); - $this->family_id = $var; - - return $this; - } - - /** - * The friendly name for the regulatory control family. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The friendly name for the regulatory control family. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php deleted file mode 100644 index cdd431a88d09..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateCloudControlRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest - */ -class CreateCloudControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}`. - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The identifier for the cloud control, which is the last segment - * of the cloud control name. The format is - * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cloud_control_id = ''; - /** - * Required. The cloud control that's being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cloud_control = null; - - /** - * @param string $parent Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}`. - * - `projects/{project}/locations/{location}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl Required. The cloud control that's being created. - * @param string $cloudControlId Required. The identifier for the cloud control, which is the last segment - * of the cloud control name. The format is - * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateCloudControlRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl, string $cloudControlId): self - { - return (new self()) - ->setParent($parent) - ->setCloudControl($cloudControl) - ->setCloudControlId($cloudControlId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}`. - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type string $cloud_control_id - * Required. The identifier for the cloud control, which is the last segment - * of the cloud control name. The format is - * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloud_control - * Required. The cloud control that's being created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}`. - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}`. - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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; - } - - /** - * Required. The identifier for the cloud control, which is the last segment - * of the cloud control name. The format is - * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCloudControlId() - { - return $this->cloud_control_id; - } - - /** - * Required. The identifier for the cloud control, which is the last segment - * of the cloud control name. The format is - * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. - * - * Generated from protobuf field string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCloudControlId($var) - { - GPBUtil::checkString($var, True); - $this->cloud_control_id = $var; - - return $this; - } - - /** - * Required. The cloud control that's being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null - */ - public function getCloudControl() - { - return $this->cloud_control; - } - - public function hasCloudControl() - { - return isset($this->cloud_control); - } - - public function clearCloudControl() - { - unset($this->cloud_control); - } - - /** - * Required. The cloud control that's being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var - * @return $this - */ - public function setCloudControl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); - $this->cloud_control = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php deleted file mode 100644 index be9f577994b3..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkAuditRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest - */ -class CreateFrameworkAuditRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this framework audit is created. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the framework audit. The ID becomes the final - * component of the framework audit's full resource name. - * The ID must be between 4-63 characters, and valid characters - * are `\[a-z][0-9]-\`. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_audit_id = ''; - /** - * Required. The framework audit to create. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework_audit = null; - - /** - * @param string $parent Required. The parent resource where this framework audit is created. - * - * Supported formats are the following: - * - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * Please see {@see AuditClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $frameworkAudit Required. The framework audit to create. - * @param string $frameworkAuditId Optional. The ID to use for the framework audit. The ID becomes the final - * component of the framework audit's full resource name. - * - * The ID must be between 4-63 characters, and valid characters - * are `\[a-z][0-9]-\`. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkAuditRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $frameworkAudit, string $frameworkAuditId): self - { - return (new self()) - ->setParent($parent) - ->setFrameworkAudit($frameworkAudit) - ->setFrameworkAuditId($frameworkAuditId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this framework audit is created. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * @type string $framework_audit_id - * Optional. The ID to use for the framework audit. The ID becomes the final - * component of the framework audit's full resource name. - * The ID must be between 4-63 characters, and valid characters - * are `\[a-z][0-9]-\`. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $framework_audit - * Required. The framework audit to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this framework audit is created. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/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. The parent resource where this framework audit is created. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/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; - } - - /** - * Optional. The ID to use for the framework audit. The ID becomes the final - * component of the framework audit's full resource name. - * The ID must be between 4-63 characters, and valid characters - * are `\[a-z][0-9]-\`. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFrameworkAuditId() - { - return $this->framework_audit_id; - } - - /** - * Optional. The ID to use for the framework audit. The ID becomes the final - * component of the framework audit's full resource name. - * The ID must be between 4-63 characters, and valid characters - * are `\[a-z][0-9]-\`. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFrameworkAuditId($var) - { - GPBUtil::checkString($var, True); - $this->framework_audit_id = $var; - - return $this; - } - - /** - * Required. The framework audit to create. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit|null - */ - public function getFrameworkAudit() - { - return $this->framework_audit; - } - - public function hasFrameworkAudit() - { - return isset($this->framework_audit); - } - - public function clearFrameworkAudit() - { - unset($this->framework_audit); - } - - /** - * Required. The framework audit to create. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit $var - * @return $this - */ - public function setFrameworkAudit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit::class); - $this->framework_audit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php deleted file mode 100644 index cbdf72cff0c6..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkDeploymentRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest - */ -class CreateFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * Only the global location is supported. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An identifier for the framework deployment that's unique in scope - * of the parent. If you don't specify a value, then a random UUID is - * generated. - * - * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_deployment_id = ''; - /** - * Required. The framework deployment that you're creating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework_deployment = null; - - /** - * @param string $parent Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * Only the global location is supported. Please see - * {@see DeploymentClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $frameworkDeployment Required. The framework deployment that you're creating. - * @param string $frameworkDeploymentId Optional. An identifier for the framework deployment that's unique in scope - * of the parent. If you don't specify a value, then a random UUID is - * generated. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkDeploymentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $frameworkDeployment, string $frameworkDeploymentId): self - { - return (new self()) - ->setParent($parent) - ->setFrameworkDeployment($frameworkDeployment) - ->setFrameworkDeploymentId($frameworkDeploymentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * Only the global location is supported. - * @type string $framework_deployment_id - * Optional. An identifier for the framework deployment that's unique in scope - * of the parent. If you don't specify a value, then a random UUID is - * generated. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $framework_deployment - * Required. The framework deployment that you're creating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * Only the global location is supported. - * - * 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. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * Only the global location is supported. - * - * 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. An identifier for the framework deployment that's unique in scope - * of the parent. If you don't specify a value, then a random UUID is - * generated. - * - * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFrameworkDeploymentId() - { - return $this->framework_deployment_id; - } - - /** - * Optional. An identifier for the framework deployment that's unique in scope - * of the parent. If you don't specify a value, then a random UUID is - * generated. - * - * Generated from protobuf field string framework_deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFrameworkDeploymentId($var) - { - GPBUtil::checkString($var, True); - $this->framework_deployment_id = $var; - - return $this; - } - - /** - * Required. The framework deployment that you're creating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment|null - */ - public function getFrameworkDeployment() - { - return $this->framework_deployment; - } - - public function hasFrameworkDeployment() - { - return isset($this->framework_deployment); - } - - public function clearFrameworkDeployment() - { - unset($this->framework_deployment); - } - - /** - * Required. The framework deployment that you're creating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment $var - * @return $this - */ - public function setFrameworkDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment::class); - $this->framework_deployment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php deleted file mode 100644 index 9b46fc4e54f7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/CreateFrameworkRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest - */ -class CreateFrameworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The identifier (ID) of the framework. The ID is not the full name - * of the framework; it's the last part of the full name of the framework. - * - * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework = null; - - /** - * @param string $parent Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework Required. The resource being created. - * @param string $frameworkId Required. The identifier (ID) of the framework. The ID is not the full name - * of the framework; it's the last part of the full name of the framework. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\CreateFrameworkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework, string $frameworkId): self - { - return (new self()) - ->setParent($parent) - ->setFramework($framework) - ->setFrameworkId($frameworkId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type string $framework_id - * Required. The identifier (ID) of the framework. The ID is not the full name - * of the framework; it's the last part of the full name of the framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework - * Required. The resource being created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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; - } - - /** - * Required. The identifier (ID) of the framework. The ID is not the full name - * of the framework; it's the last part of the full name of the framework. - * - * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFrameworkId() - { - return $this->framework_id; - } - - /** - * Required. The identifier (ID) of the framework. The ID is not the full name - * of the framework; it's the last part of the full name of the framework. - * - * Generated from protobuf field string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFrameworkId($var) - { - GPBUtil::checkString($var, True); - $this->framework_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\Framework|null - */ - public function getFramework() - { - return $this->framework; - } - - public function hasFramework() - { - return isset($this->framework); - } - - public function clearFramework() - { - unset($this->framework); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); - $this->framework = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php deleted file mode 100644 index d26d096a439a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteCloudControlRequest.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest - */ -class DeleteCloudControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the cloud control to delete, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` - * or - * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the cloud control to delete, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` - * or - * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::cloudControlName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteCloudControlRequest - * - * @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. The name of the cloud control to delete, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` - * or - * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. - * The only supported location is `global`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the cloud control to delete, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` - * or - * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. - * The only supported location is `global`. - * - * 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. The name of the cloud control to delete, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` - * or - * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. - * The only supported location is `global`. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php deleted file mode 100644 index 67cdc6b24dff..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkDeploymentRequest.php +++ /dev/null @@ -1,160 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest - */ -class DeleteFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the framework deployment that you want to delete, - * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An opaque identifier for the current version of the resource. - * If you provide this value, then it must match the existing value. If the - * values don't match, then the request fails with an - * [`ABORTED`][google.rpc.Code.ABORTED] error. - * If you omit this value, then the resource is deleted regardless of its - * current `etag` value. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the framework deployment that you want to delete, - * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. Please see - * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteFrameworkDeploymentRequest - * - * @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. The name of the framework deployment that you want to delete, - * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * @type string $etag - * Optional. An opaque identifier for the current version of the resource. - * If you provide this value, then it must match the existing value. If the - * values don't match, then the request fails with an - * [`ABORTED`][google.rpc.Code.ABORTED] error. - * If you omit this value, then the resource is deleted regardless of its - * current `etag` value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the framework deployment that you want to delete, - * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * 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. The name of the framework deployment that you want to delete, - * in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * 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; - } - - /** - * Optional. An opaque identifier for the current version of the resource. - * If you provide this value, then it must match the existing value. If the - * values don't match, then the request fails with an - * [`ABORTED`][google.rpc.Code.ABORTED] error. - * If you omit this value, then the resource is deleted regardless of its - * current `etag` value. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. An opaque identifier for the current version of the resource. - * If you provide this value, then it must match the existing value. If the - * values don't match, then the request fails with an - * [`ABORTED`][google.rpc.Code.ABORTED] error. - * If you omit this value, then the resource is deleted regardless of its - * current `etag` value. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php deleted file mode 100644 index f580d88cfd09..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeleteFrameworkRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest - */ -class DeleteFrameworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource, in one of the following formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the resource, in one of the following formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::frameworkName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\DeleteFrameworkRequest - * - * @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. The name of the resource, in one of the following formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource, in one of the following formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * 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. The name of the resource, in one of the following formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php deleted file mode 100644 index 96373523ec86..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/DeploymentState.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.DeploymentState - */ -class DeploymentState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0; - */ - const DEPLOYMENT_STATE_UNSPECIFIED = 0; - /** - * Validating the deployment. - * - * Generated from protobuf enum DEPLOYMENT_STATE_VALIDATING = 1; - */ - const DEPLOYMENT_STATE_VALIDATING = 1; - /** - * Deployment is being created. - * - * Generated from protobuf enum DEPLOYMENT_STATE_CREATING = 2; - */ - const DEPLOYMENT_STATE_CREATING = 2; - /** - * Deployment is being deleted. - * - * Generated from protobuf enum DEPLOYMENT_STATE_DELETING = 3; - */ - const DEPLOYMENT_STATE_DELETING = 3; - /** - * Deployment is being updated. - * - * Generated from protobuf enum DEPLOYMENT_STATE_UPDATING = 8; - */ - const DEPLOYMENT_STATE_UPDATING = 8; - /** - * Deployment has failed. All the changes made by the deployment were - * successfully rolled back. You can retry or delete a deployment that's - * in this state. - * - * Generated from protobuf enum DEPLOYMENT_STATE_FAILED = 4; - */ - const DEPLOYMENT_STATE_FAILED = 4; - /** - * Deployment is successful and ready to use. - * - * Generated from protobuf enum DEPLOYMENT_STATE_READY = 5; - */ - const DEPLOYMENT_STATE_READY = 5; - /** - * Deployment is partially deployed. All the cloud controls weren't deployed - * successfully. Retrying the operation resumes from the first failed - * step. - * - * Generated from protobuf enum DEPLOYMENT_STATE_PARTIALLY_DEPLOYED = 6; - */ - const DEPLOYMENT_STATE_PARTIALLY_DEPLOYED = 6; - /** - * Deployment is partially deleted. All the cloud control deployments weren't - * deleted successfully. Retrying the operation resumes from the first - * failed step. - * - * Generated from protobuf enum DEPLOYMENT_STATE_PARTIALLY_DELETED = 7; - */ - const DEPLOYMENT_STATE_PARTIALLY_DELETED = 7; - - private static $valueToName = [ - self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED', - self::DEPLOYMENT_STATE_VALIDATING => 'DEPLOYMENT_STATE_VALIDATING', - self::DEPLOYMENT_STATE_CREATING => 'DEPLOYMENT_STATE_CREATING', - self::DEPLOYMENT_STATE_DELETING => 'DEPLOYMENT_STATE_DELETING', - self::DEPLOYMENT_STATE_UPDATING => 'DEPLOYMENT_STATE_UPDATING', - self::DEPLOYMENT_STATE_FAILED => 'DEPLOYMENT_STATE_FAILED', - self::DEPLOYMENT_STATE_READY => 'DEPLOYMENT_STATE_READY', - self::DEPLOYMENT_STATE_PARTIALLY_DEPLOYED => 'DEPLOYMENT_STATE_PARTIALLY_DEPLOYED', - self::DEPLOYMENT_STATE_PARTIALLY_DELETED => 'DEPLOYMENT_STATE_PARTIALLY_DELETED', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php deleted file mode 100644 index 05bd2e2b2e36..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EnforcementMode.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.EnforcementMode - */ -class EnforcementMode -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ENFORCEMENT_MODE_UNSPECIFIED = 0; - */ - const ENFORCEMENT_MODE_UNSPECIFIED = 0; - /** - * The cloud control is enforced to prevent non-compliance. - * - * Generated from protobuf enum PREVENTIVE = 1; - */ - const PREVENTIVE = 1; - /** - * The cloud control is enforced to detect non-compliance. - * - * Generated from protobuf enum DETECTIVE = 2; - */ - const DETECTIVE = 2; - /** - * The cloud control is enforced to audit for non-compliance. - * - * Generated from protobuf enum AUDIT = 3; - */ - const AUDIT = 3; - - private static $valueToName = [ - self::ENFORCEMENT_MODE_UNSPECIFIED => 'ENFORCEMENT_MODE_UNSPECIFIED', - self::PREVENTIVE => 'PREVENTIVE', - self::DETECTIVE => 'DETECTIVE', - self::AUDIT => 'AUDIT', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php deleted file mode 100644 index e85395360565..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvaluationState.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.EvaluationState - */ -class EvaluationState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum EVALUATION_STATE_UNSPECIFIED = 0; - */ - const EVALUATION_STATE_UNSPECIFIED = 0; - /** - * The control is passing. - * - * Generated from protobuf enum EVALUATION_STATE_PASSED = 1; - */ - const EVALUATION_STATE_PASSED = 1; - /** - * The control is failing. - * - * Generated from protobuf enum EVALUATION_STATE_FAILED = 2; - */ - const EVALUATION_STATE_FAILED = 2; - /** - * The control is not assessed. - * - * Generated from protobuf enum EVALUATION_STATE_NOT_ASSESSED = 3; - */ - const EVALUATION_STATE_NOT_ASSESSED = 3; - - private static $valueToName = [ - self::EVALUATION_STATE_UNSPECIFIED => 'EVALUATION_STATE_UNSPECIFIED', - self::EVALUATION_STATE_PASSED => 'EVALUATION_STATE_PASSED', - self::EVALUATION_STATE_FAILED => 'EVALUATION_STATE_FAILED', - self::EVALUATION_STATE_NOT_ASSESSED => 'EVALUATION_STATE_NOT_ASSESSED', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php deleted file mode 100644 index b2328dc5793c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/EvidenceDetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.EvidenceDetails - */ -class EvidenceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource identifier. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource = ''; - /** - * Output only. The service identifier. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service = ''; - /** - * Output only. The path to the evidence. - * - * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $evidence_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Output only. The resource identifier. - * @type string $service - * Output only. The service identifier. - * @type string $evidence_path - * Output only. The path to the evidence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource identifier. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Output only. The resource identifier. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Output only. The service identifier. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Output only. The service identifier. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Output only. The path to the evidence. - * - * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEvidencePath() - { - return $this->evidence_path; - } - - /** - * Output only. The path to the evidence. - * - * Generated from protobuf field string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEvidencePath($var) - { - GPBUtil::checkString($var, True); - $this->evidence_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php deleted file mode 100644 index 5ff3fe5f3de3..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FetchFrameworkComplianceReportRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest - */ -class FetchFrameworkComplianceReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the framework compliance report to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The end time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $end_time = null; - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $name Required. The name of the framework compliance report to retrieve. Please see - * {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\FetchFrameworkComplianceReportRequest - * - * @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. The name of the framework compliance report to retrieve. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. The end time of the report. - * @type string $filter - * Optional. The filtering results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the framework compliance report to retrieve. - * - * 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. The name of the framework compliance report to retrieve. - * - * 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; - } - - /** - * Optional. The end time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. The end time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php deleted file mode 100644 index eff98bf72e66..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingClass.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FindingClass - */ -class FindingClass -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum FINDING_CLASS_UNSPECIFIED = 0; - */ - const FINDING_CLASS_UNSPECIFIED = 0; - /** - * The activity is unwanted or malicious. - * - * Generated from protobuf enum THREAT = 1; - */ - const THREAT = 1; - /** - * A potential weakness in software that increases risk to - * confidentiality, integrity, and availability. - * - * Generated from protobuf enum VULNERABILITY = 2; - */ - const VULNERABILITY = 2; - /** - * A potential weakness in a cloud resource or asset configuration that - * increases risk. - * - * Generated from protobuf enum MISCONFIGURATION = 3; - */ - const MISCONFIGURATION = 3; - /** - * A security observation that is for informational purposes. - * - * Generated from protobuf enum OBSERVATION = 4; - */ - const OBSERVATION = 4; - /** - * An error that prevents Security Command Center from functioning properly. - * - * Generated from protobuf enum SCC_ERROR = 5; - */ - const SCC_ERROR = 5; - /** - * A potential security risk that's due to a change in the security - * posture. - * - * Generated from protobuf enum POSTURE_VIOLATION = 6; - */ - const POSTURE_VIOLATION = 6; - /** - * A combination of security issues that represent a more severe - * security problem when taken together. - * - * Generated from protobuf enum TOXIC_COMBINATION = 7; - */ - const TOXIC_COMBINATION = 7; - /** - * A potential security risk to data assets that contain sensitive - * data. - * - * Generated from protobuf enum SENSITIVE_DATA_RISK = 8; - */ - const SENSITIVE_DATA_RISK = 8; - /** - * A resource or resource group where high risk attack paths - * converge, based on attack path simulations (APS). - * - * Generated from protobuf enum CHOKEPOINT = 9; - */ - const CHOKEPOINT = 9; - - private static $valueToName = [ - self::FINDING_CLASS_UNSPECIFIED => 'FINDING_CLASS_UNSPECIFIED', - self::THREAT => 'THREAT', - self::VULNERABILITY => 'VULNERABILITY', - self::MISCONFIGURATION => 'MISCONFIGURATION', - self::OBSERVATION => 'OBSERVATION', - self::SCC_ERROR => 'SCC_ERROR', - self::POSTURE_VIOLATION => 'POSTURE_VIOLATION', - self::TOXIC_COMBINATION => 'TOXIC_COMBINATION', - self::SENSITIVE_DATA_RISK => 'SENSITIVE_DATA_RISK', - self::CHOKEPOINT => 'CHOKEPOINT', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php deleted file mode 100644 index b88ca20c37d0..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingDetails.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FindingDetails - */ -class FindingDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the finding. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The compliance state of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliance_state = 0; - /** - * Output only. The observation details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $observation = null; - /** - * Output only. The evidence details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $evidence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the finding. - * @type int $compliance_state - * Output only. The compliance state of the finding. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails $observation - * Output only. The observation details for the finding. - * @type \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails $evidence - * Output only. The evidence details for the finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the finding. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the finding. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The compliance state of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getComplianceState() - { - return $this->compliance_state; - } - - /** - * Output only. The compliance state of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setComplianceState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); - $this->compliance_state = $var; - - return $this; - } - - /** - * Output only. The observation details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails|null - */ - public function getObservation() - { - return $this->observation; - } - - public function hasObservation() - { - return isset($this->observation); - } - - public function clearObservation() - { - unset($this->observation); - } - - /** - * Output only. The observation details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails $var - * @return $this - */ - public function setObservation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ObservationDetails::class); - $this->observation = $var; - - return $this; - } - - /** - * Output only. The evidence details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails|null - */ - public function getEvidence() - { - return $this->evidence; - } - - public function hasEvidence() - { - return isset($this->evidence); - } - - public function clearEvidence() - { - unset($this->evidence); - } - - /** - * Output only. The evidence details for the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails $var - * @return $this - */ - public function setEvidence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\EvidenceDetails::class); - $this->evidence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php deleted file mode 100644 index c36d222810fa..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FindingSummary.php +++ /dev/null @@ -1,281 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FindingSummary - */ -class FindingSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 1; - */ - protected $finding_category = ''; - /** - * The class of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; - */ - protected $finding_class = 0; - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; - */ - protected $severity = 0; - /** - * The count of the finding. - * - * Generated from protobuf field int64 finding_count = 4; - */ - protected $finding_count = 0; - /** - * Output only. The last updated time of the finding. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The list of compliance frameworks that the finding belongs to. - * - * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $related_frameworks; - /** - * Identifier. The name of the finding summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $finding_category - * The category of the finding. - * @type int $finding_class - * The class of the finding. - * @type int $severity - * The severity of the finding. - * @type int|string $finding_count - * The count of the finding. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last updated time of the finding. - * @type string[] $related_frameworks - * Optional. The list of compliance frameworks that the finding belongs to. - * @type string $name - * Identifier. The name of the finding summary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 1; - * @return string - */ - public function getFindingCategory() - { - return $this->finding_category; - } - - /** - * The category of the finding. - * - * Generated from protobuf field string finding_category = 1; - * @param string $var - * @return $this - */ - public function setFindingCategory($var) - { - GPBUtil::checkString($var, True); - $this->finding_category = $var; - - return $this; - } - - /** - * The class of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; - * @return int - */ - public function getFindingClass() - { - return $this->finding_class; - } - - /** - * The class of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; - * @param int $var - * @return $this - */ - public function setFindingClass($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FindingClass::class); - $this->finding_class = $var; - - return $this; - } - - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity of the finding. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * The count of the finding. - * - * Generated from protobuf field int64 finding_count = 4; - * @return int|string - */ - public function getFindingCount() - { - return $this->finding_count; - } - - /** - * The count of the finding. - * - * Generated from protobuf field int64 finding_count = 4; - * @param int|string $var - * @return $this - */ - public function setFindingCount($var) - { - GPBUtil::checkInt64($var); - $this->finding_count = $var; - - return $this; - } - - /** - * Output only. The last updated time of the finding. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.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 updated time of the finding. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.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; - } - - /** - * Optional. The list of compliance frameworks that the finding belongs to. - * - * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getRelatedFrameworks() - { - return $this->related_frameworks; - } - - /** - * Optional. The list of compliance frameworks that the finding belongs to. - * - * Generated from protobuf field repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setRelatedFrameworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_frameworks = $arr; - - return $this; - } - - /** - * Identifier. The name of the finding summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the finding summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php deleted file mode 100644 index 876154b9dfe8..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FolderCreationConfig.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig - */ -class FolderCreationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of the folder, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The display name of the folder. - * - * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $folder_display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of the folder, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * @type string $folder_display_name - * Required. The display name of the folder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of the folder, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of the folder, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The display name of the folder. - * - * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFolderDisplayName() - { - return $this->folder_display_name; - } - - /** - * Required. The display name of the folder. - * - * Generated from protobuf field string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFolderDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->folder_display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php deleted file mode 100644 index cc2ddf5541a7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework.php +++ /dev/null @@ -1,411 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Framework - */ -class Framework extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifier. The name of the framework, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The major version of the framework, which is incremented in - * ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $major_revision_id = 0; - /** - * Optional. The friendly name of the framework. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The description of the framework. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Optional. The cloud control details that are directly added without any - * grouping in the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cloud_control_details; - /** - * Optional. The category of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $category; - /** - * Output only. The cloud providers that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $supported_cloud_providers; - /** - * Output only. The target resource types that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $supported_target_resource_types; - /** - * Output only. The supported enforcement modes of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $supported_enforcement_modes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Identifier. The name of the framework, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * @type int|string $major_revision_id - * Output only. The major version of the framework, which is incremented in - * ascending order. - * @type string $display_name - * Optional. The friendly name of the framework. The maximum length is 200 - * characters. - * @type string $description - * Optional. The description of the framework. The maximum length is 2000 - * characters. - * @type int $type - * Output only. The type of framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails[] $cloud_control_details - * Optional. The cloud control details that are directly added without any - * grouping in the framework. - * @type int[] $category - * Optional. The category of the framework. - * @type int[] $supported_cloud_providers - * Output only. The cloud providers that are supported by the framework. - * @type int[] $supported_target_resource_types - * Output only. The target resource types that are supported by the framework. - * @type int[] $supported_enforcement_modes - * Output only. The supported enforcement modes of the framework. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifier. The name of the framework, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Identifier. The name of the framework, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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. The major version of the framework, which is incremented in - * ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Output only. The major version of the framework, which is incremented in - * ascending order. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * Optional. The friendly name of the framework. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The friendly name of the framework. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the framework. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the framework. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The cloud control details that are directly added without any - * grouping in the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails> - */ - public function getCloudControlDetails() - { - return $this->cloud_control_details; - } - - /** - * Optional. The cloud control details that are directly added without any - * grouping in the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDetails cloud_control_details = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails[] $var - * @return $this - */ - public function setCloudControlDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDetails::class); - $this->cloud_control_details = $arr; - - return $this; - } - - /** - * Optional. The category of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getCategory() - { - return $this->category; - } - - /** - * Optional. The category of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory category = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setCategory($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); - $this->category = $arr; - - return $this; - } - - /** - * Output only. The cloud providers that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSupportedCloudProviders() - { - return $this->supported_cloud_providers; - } - - /** - * Output only. The cloud providers that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setSupportedCloudProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); - $this->supported_cloud_providers = $arr; - - return $this; - } - - /** - * Output only. The target resource types that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSupportedTargetResourceTypes() - { - return $this->supported_target_resource_types; - } - - /** - * Output only. The target resource types that are supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceType supported_target_resource_types = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setSupportedTargetResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceType::class); - $this->supported_target_resource_types = $arr; - - return $this; - } - - /** - * Output only. The supported enforcement modes of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSupportedEnforcementModes() - { - return $this->supported_enforcement_modes; - } - - /** - * Output only. The supported enforcement modes of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.EnforcementMode supported_enforcement_modes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setSupportedEnforcementModes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\EnforcementMode::class); - $this->supported_enforcement_modes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php deleted file mode 100644 index 6bf45cc17e1e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Framework/FrameworkType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType - */ -class FrameworkType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum FRAMEWORK_TYPE_UNSPECIFIED = 0; - */ - const FRAMEWORK_TYPE_UNSPECIFIED = 0; - /** - * A framework that's provided and managed by Google. - * - * Generated from protobuf enum BUILT_IN = 1; - */ - const BUILT_IN = 1; - /** - * A framework that's created and managed by you. - * - * Generated from protobuf enum CUSTOM = 2; - */ - const CUSTOM = 2; - - private static $valueToName = [ - self::FRAMEWORK_TYPE_UNSPECIFIED => 'FRAMEWORK_TYPE_UNSPECIFIED', - self::BUILT_IN => 'BUILT_IN', - self::CUSTOM => 'CUSTOM', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php deleted file mode 100644 index e19afd67f9f6..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit.php +++ /dev/null @@ -1,515 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkAudit - */ -class FrameworkAudit extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The name of the framework audit. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The ID of the framework audit. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $framework_audit_id = ''; - /** - * Output only. The compliance framework used for the audit. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliance_framework = ''; - /** - * Output only. The scope of the audit. - * - * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $scope = ''; - /** - * Required. The destination for the audit reports. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework_audit_destination = null; - /** - * Output only. The time that the audit started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time that the audit finished. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $finish_time = null; - /** - * Output only. The overall compliance state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliance_state = 0; - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_summary = null; - /** - * Optional. The details for the cloud control groups within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cloud_control_group_audit_details; - /** - * Optional. The details for the cloud controls within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cloud_control_audit_details; - /** - * Output only. The ID of the long-running operation. - * - * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $operation_id = ''; - /** - * Output only. The framework audit state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The name of the framework audit. - * @type string $framework_audit_id - * Output only. The ID of the framework audit. - * @type string $compliance_framework - * Output only. The compliance framework used for the audit. - * @type string $scope - * Output only. The scope of the audit. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination $framework_audit_destination - * Required. The destination for the audit reports. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time that the audit started. - * @type \Google\Protobuf\Timestamp $finish_time - * Output only. The time that the audit finished. - * @type int $compliance_state - * Output only. The overall compliance state of the audit. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $report_summary - * Output only. The summary of the report. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails[] $cloud_control_group_audit_details - * Optional. The details for the cloud control groups within this audit. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $cloud_control_audit_details - * Optional. The details for the cloud controls within this audit. - * @type string $operation_id - * Output only. The ID of the long-running operation. - * @type int $state - * Output only. The framework audit state of the audit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The name of the framework audit. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The name of the framework audit. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The ID of the framework audit. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFrameworkAuditId() - { - return $this->framework_audit_id; - } - - /** - * Output only. The ID of the framework audit. - * - * Generated from protobuf field string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFrameworkAuditId($var) - { - GPBUtil::checkString($var, True); - $this->framework_audit_id = $var; - - return $this; - } - - /** - * Output only. The compliance framework used for the audit. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getComplianceFramework() - { - return $this->compliance_framework; - } - - /** - * Output only. The compliance framework used for the audit. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setComplianceFramework($var) - { - GPBUtil::checkString($var, True); - $this->compliance_framework = $var; - - return $this; - } - - /** - * Output only. The scope of the audit. - * - * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Output only. The scope of the audit. - * - * Generated from protobuf field string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The destination for the audit reports. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination|null - */ - public function getFrameworkAuditDestination() - { - return $this->framework_audit_destination; - } - - public function hasFrameworkAuditDestination() - { - return isset($this->framework_audit_destination); - } - - public function clearFrameworkAuditDestination() - { - unset($this->framework_audit_destination); - } - - /** - * Required. The destination for the audit reports. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination $var - * @return $this - */ - public function setFrameworkAuditDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAuditDestination::class); - $this->framework_audit_destination = $var; - - return $this; - } - - /** - * Output only. The time that the audit started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The time that the audit started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The time that the audit finished. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * Output only. The time that the audit finished. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - - /** - * Output only. The overall compliance state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getComplianceState() - { - return $this->compliance_state; - } - - /** - * Output only. The overall compliance state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setComplianceState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ComplianceState::class); - $this->compliance_state = $var; - - return $this; - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary|null - */ - public function getReportSummary() - { - return $this->report_summary; - } - - public function hasReportSummary() - { - return isset($this->report_summary); - } - - public function clearReportSummary() - { - unset($this->report_summary); - } - - /** - * Output only. The summary of the report. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary $var - * @return $this - */ - public function setReportSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ReportSummary::class); - $this->report_summary = $var; - - return $this; - } - - /** - * Optional. The details for the cloud control groups within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails> - */ - public function getCloudControlGroupAuditDetails() - { - return $this->cloud_control_group_audit_details; - } - - /** - * Optional. The details for the cloud control groups within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails[] $var - * @return $this - */ - public function setCloudControlGroupAuditDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlGroupAuditDetails::class); - $this->cloud_control_group_audit_details = $arr; - - return $this; - } - - /** - * Optional. The details for the cloud controls within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails> - */ - public function getCloudControlAuditDetails() - { - return $this->cloud_control_audit_details; - } - - /** - * Optional. The details for the cloud controls within this audit. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails[] $var - * @return $this - */ - public function setCloudControlAuditDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlAuditDetails::class); - $this->cloud_control_audit_details = $arr; - - return $this; - } - - /** - * Output only. The ID of the long-running operation. - * - * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOperationId() - { - return $this->operation_id; - } - - /** - * Output only. The ID of the long-running operation. - * - * Generated from protobuf field string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOperationId($var) - { - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * Output only. The framework audit state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The framework audit state of the audit. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php deleted file mode 100644 index 0d2254a4754f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAudit/State.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The audit is scheduled. - * - * Generated from protobuf enum SCHEDULED = 1; - */ - const SCHEDULED = 1; - /** - * The audit is running. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The audit results are being uploaded. - * - * Generated from protobuf enum UPLOADING = 3; - */ - const UPLOADING = 3; - /** - * The audit failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The audit completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 5; - */ - const SUCCEEDED = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SCHEDULED => 'SCHEDULED', - self::RUNNING => 'RUNNING', - self::UPLOADING => 'UPLOADING', - self::FAILED => 'FAILED', - self::SUCCEEDED => 'SUCCEEDED', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php deleted file mode 100644 index d1d1c661aa6c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkAuditDestination.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination - */ -class FrameworkAuditDestination extends \Google\Protobuf\Internal\Message -{ - protected $destination_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination $bucket - * The Cloud Storage bucket destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage bucket destination. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination|null - */ - public function getBucket() - { - return $this->readOneof(1); - } - - public function hasBucket() - { - return $this->hasOneof(1); - } - - /** - * The Cloud Storage bucket destination. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\BucketDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestinationType() - { - return $this->whichOneof("destination_type"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php deleted file mode 100644 index e7e0d1ce480c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkCategory.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkCategory - */ -class FrameworkCategory -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum FRAMEWORK_CATEGORY_UNSPECIFIED = 0; - */ - const FRAMEWORK_CATEGORY_UNSPECIFIED = 0; - /** - * An industry-defined framework. - * - * Generated from protobuf enum INDUSTRY_DEFINED_STANDARD = 1; - */ - const INDUSTRY_DEFINED_STANDARD = 1; - /** - * An Assured Workloads framework. - * - * Generated from protobuf enum ASSURED_WORKLOADS = 2; - */ - const ASSURED_WORKLOADS = 2; - /** - * A data security posture framework. - * - * Generated from protobuf enum DATA_SECURITY = 3; - */ - const DATA_SECURITY = 3; - /** - * A Google's best practices framework. - * - * Generated from protobuf enum GOOGLE_BEST_PRACTICES = 4; - */ - const GOOGLE_BEST_PRACTICES = 4; - /** - * A user-created framework. - * - * Generated from protobuf enum CUSTOM_FRAMEWORK = 5; - */ - const CUSTOM_FRAMEWORK = 5; - - private static $valueToName = [ - self::FRAMEWORK_CATEGORY_UNSPECIFIED => 'FRAMEWORK_CATEGORY_UNSPECIFIED', - self::INDUSTRY_DEFINED_STANDARD => 'INDUSTRY_DEFINED_STANDARD', - self::ASSURED_WORKLOADS => 'ASSURED_WORKLOADS', - self::DATA_SECURITY => 'DATA_SECURITY', - self::GOOGLE_BEST_PRACTICES => 'GOOGLE_BEST_PRACTICES', - self::CUSTOM_FRAMEWORK => 'CUSTOM_FRAMEWORK', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php deleted file mode 100644 index 44daf856b1f6..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceReport.php +++ /dev/null @@ -1,461 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport - */ -class FrameworkComplianceReport extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - */ - protected $framework = ''; - /** - * The description of the framework. - * - * Generated from protobuf field string framework_description = 2; - */ - protected $framework_description = ''; - /** - * Output only. The last updated time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; - */ - protected $control_assessment_details = null; - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; - */ - protected $framework_type = 0; - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; - */ - private $supported_cloud_providers; - /** - * The list of framework categories supported. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; - */ - private $framework_categories; - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_display_name = ''; - /** - * Identifier. The name of the framework compliance report. - * - * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The latest major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 10; - */ - protected $major_revision_id = 0; - /** - * The latest minor revision ID of the latest major revision of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 11; - */ - protected $minor_revision_id = 0; - /** - * The target resource details of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; - */ - private $target_resource_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework - * The name of the framework. - * @type string $framework_description - * The description of the framework. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last updated time of the report. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details - * The control assessment details of the framework. - * @type int $framework_type - * The type of framework. - * @type int[] $supported_cloud_providers - * The list of cloud providers supported by the framework. - * @type int[] $framework_categories - * The list of framework categories supported. - * @type string $framework_display_name - * Optional. The display name for the framework. - * @type string $name - * Identifier. The name of the framework compliance report. - * @type int|string $major_revision_id - * The latest major revision ID of the framework. - * @type int|string $minor_revision_id - * The latest minor revision ID of the latest major revision of the framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $target_resource_details - * The target resource details of the framework. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @return string - */ - public function getFramework() - { - return $this->framework; - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @param string $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkString($var, True); - $this->framework = $var; - - return $this; - } - - /** - * The description of the framework. - * - * Generated from protobuf field string framework_description = 2; - * @return string - */ - public function getFrameworkDescription() - { - return $this->framework_description; - } - - /** - * The description of the framework. - * - * Generated from protobuf field string framework_description = 2; - * @param string $var - * @return $this - */ - public function setFrameworkDescription($var) - { - GPBUtil::checkString($var, True); - $this->framework_description = $var; - - return $this; - } - - /** - * Output only. The last updated time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.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 updated time of the report. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.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; - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null - */ - public function getControlAssessmentDetails() - { - return $this->control_assessment_details; - } - - public function hasControlAssessmentDetails() - { - return isset($this->control_assessment_details); - } - - public function clearControlAssessmentDetails() - { - unset($this->control_assessment_details); - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var - * @return $this - */ - public function setControlAssessmentDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); - $this->control_assessment_details = $var; - - return $this; - } - - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; - * @return int - */ - public function getFrameworkType() - { - return $this->framework_type; - } - - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; - * @param int $var - * @return $this - */ - public function setFrameworkType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); - $this->framework_type = $var; - - return $this; - } - - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; - * @return RepeatedField - */ - public function getSupportedCloudProviders() - { - return $this->supported_cloud_providers; - } - - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; - * @param int[] $var - * @return $this - */ - public function setSupportedCloudProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); - $this->supported_cloud_providers = $arr; - - return $this; - } - - /** - * The list of framework categories supported. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; - * @return RepeatedField - */ - public function getFrameworkCategories() - { - return $this->framework_categories; - } - - /** - * The list of framework categories supported. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; - * @param int[] $var - * @return $this - */ - public function setFrameworkCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); - $this->framework_categories = $arr; - - return $this; - } - - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFrameworkDisplayName() - { - return $this->framework_display_name; - } - - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFrameworkDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->framework_display_name = $var; - - return $this; - } - - /** - * Identifier. The name of the framework compliance report. - * - * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the framework compliance report. - * - * Generated from protobuf field string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The latest major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 10; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * The latest major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 10; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * The latest minor revision ID of the latest major revision of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 11; - * @return int|string - */ - public function getMinorRevisionId() - { - return $this->minor_revision_id; - } - - /** - * The latest minor revision ID of the latest major revision of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 11; - * @param int|string $var - * @return $this - */ - public function setMinorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->minor_revision_id = $var; - - return $this; - } - - /** - * The target resource details of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails> - */ - public function getTargetResourceDetails() - { - return $this->target_resource_details; - } - - /** - * The target resource details of the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; - * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $var - * @return $this - */ - public function setTargetResourceDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails::class); - $this->target_resource_details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php deleted file mode 100644 index da5b4ac51a34..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkComplianceSummary.php +++ /dev/null @@ -1,461 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary - */ -class FrameworkComplianceSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - */ - protected $framework = ''; - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; - */ - protected $control_assessment_details = null; - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; - */ - protected $framework_type = 0; - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; - */ - private $supported_cloud_providers; - /** - * The list of framework categories supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; - */ - private $framework_categories; - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_display_name = ''; - /** - * Identifier. The name of the framework compliance summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 8; - */ - protected $major_revision_id = 0; - /** - * The minor revision ID of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 9; - */ - protected $minor_revision_id = 0; - /** - * The target resource details for the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; - */ - private $target_resource_details; - /** - * Output only. The count of the findings generated against the framework. - * - * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $finding_count = 0; - /** - * Output only. The trend of controls that are passing for the given duration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $controls_passing_trend = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework - * The name of the framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $control_assessment_details - * The control assessment details of the framework. - * @type int $framework_type - * The type of framework. - * @type int[] $supported_cloud_providers - * The list of cloud providers supported by the framework. - * @type int[] $framework_categories - * The list of framework categories supported by the framework. - * @type string $framework_display_name - * Optional. The display name for the framework. - * @type string $name - * Identifier. The name of the framework compliance summary. - * @type int|string $major_revision_id - * The major revision ID of the framework. - * @type int|string $minor_revision_id - * The minor revision ID of the framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $target_resource_details - * The target resource details for the framework. - * @type int|string $finding_count - * Output only. The count of the findings generated against the framework. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Trend $controls_passing_trend - * Output only. The trend of controls that are passing for the given duration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @return string - */ - public function getFramework() - { - return $this->framework; - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @param string $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkString($var, True); - $this->framework = $var; - - return $this; - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails|null - */ - public function getControlAssessmentDetails() - { - return $this->control_assessment_details; - } - - public function hasControlAssessmentDetails() - { - return isset($this->control_assessment_details); - } - - public function clearControlAssessmentDetails() - { - unset($this->control_assessment_details); - } - - /** - * The control assessment details of the framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails $var - * @return $this - */ - public function setControlAssessmentDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ControlAssessmentDetails::class); - $this->control_assessment_details = $var; - - return $this; - } - - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; - * @return int - */ - public function getFrameworkType() - { - return $this->framework_type; - } - - /** - * The type of framework. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; - * @param int $var - * @return $this - */ - public function setFrameworkType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework\FrameworkType::class); - $this->framework_type = $var; - - return $this; - } - - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; - * @return RepeatedField - */ - public function getSupportedCloudProviders() - { - return $this->supported_cloud_providers; - } - - /** - * The list of cloud providers supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; - * @param int[] $var - * @return $this - */ - public function setSupportedCloudProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\CloudProvider::class); - $this->supported_cloud_providers = $arr; - - return $this; - } - - /** - * The list of framework categories supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; - * @return RepeatedField - */ - public function getFrameworkCategories() - { - return $this->framework_categories; - } - - /** - * The list of framework categories supported by the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; - * @param int[] $var - * @return $this - */ - public function setFrameworkCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkCategory::class); - $this->framework_categories = $arr; - - return $this; - } - - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFrameworkDisplayName() - { - return $this->framework_display_name; - } - - /** - * Optional. The display name for the framework. - * - * Generated from protobuf field string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFrameworkDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->framework_display_name = $var; - - return $this; - } - - /** - * Identifier. The name of the framework compliance summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the framework compliance summary. - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 8; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * The major revision ID of the framework. - * - * Generated from protobuf field int64 major_revision_id = 8; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * The minor revision ID of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 9; - * @return int|string - */ - public function getMinorRevisionId() - { - return $this->minor_revision_id; - } - - /** - * The minor revision ID of the framework. - * - * Generated from protobuf field int64 minor_revision_id = 9; - * @param int|string $var - * @return $this - */ - public function setMinorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->minor_revision_id = $var; - - return $this; - } - - /** - * The target resource details for the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails> - */ - public function getTargetResourceDetails() - { - return $this->target_resource_details; - } - - /** - * The target resource details for the framework. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; - * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails[] $var - * @return $this - */ - public function setTargetResourceDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceDetails::class); - $this->target_resource_details = $arr; - - return $this; - } - - /** - * Output only. The count of the findings generated against the framework. - * - * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getFindingCount() - { - return $this->finding_count; - } - - /** - * Output only. The count of the findings generated against the framework. - * - * Generated from protobuf field int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setFindingCount($var) - { - GPBUtil::checkInt64($var); - $this->finding_count = $var; - - return $this; - } - - /** - * Output only. The trend of controls that are passing for the given duration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\Trend|null - */ - public function getControlsPassingTrend() - { - return $this->controls_passing_trend; - } - - public function hasControlsPassingTrend() - { - return isset($this->controls_passing_trend); - } - - public function clearControlsPassingTrend() - { - unset($this->controls_passing_trend); - } - - /** - * Output only. The trend of controls that are passing for the given duration. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Trend $var - * @return $this - */ - public function setControlsPassingTrend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Trend::class); - $this->controls_passing_trend = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php deleted file mode 100644 index 8adaa72b847b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeployment.php +++ /dev/null @@ -1,603 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment - */ -class FrameworkDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The details of the target resource that you want to deploy the - * framework to. You can specify an existing resource, or create a new one. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_resource_config = null; - /** - * Output only. The target resource to deploy the framework to, in one the - * following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $computed_target_resource = ''; - /** - * Required. A reference to the framework that you're deploying. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework = null; - /** - * Optional. A user-provided description of the framework deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The deployment mode and parameters for each of the cloud controls - * in the framework. Every cloud control in the framework includes metadata. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - private $cloud_control_metadata; - /** - * Output only. The state for the framework deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deployment_state = 0; - /** - * Output only. The time at which 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 time at which the resource last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. To prevent concurrent updates from overwriting each other, always - * provide the `etag` when you update a framework deployment. You can also - * provide the `etag` when you delete a framework deployment, to help - * ensure that you're deleting the intended version of the - * framework deployment. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource_display_name = ''; - /** - * Output only. The references to the cloud control deployments. The reference - * includes all the cloud control deployments that are in the framework or in - * a cloud control group. - * For example, if a framework deployment deploys two - * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the - * references are: - * ``` - * { - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" - * }, - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" - * } - * ``` - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $cloud_control_deployment_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $target_resource_config - * Required. The details of the target resource that you want to deploy the - * framework to. You can specify an existing resource, or create a new one. - * @type string $computed_target_resource - * Output only. The target resource to deploy the framework to, in one the - * following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $framework - * Required. A reference to the framework that you're deploying. - * @type string $description - * Optional. A user-provided description of the framework deployment. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata[] $cloud_control_metadata - * Required. The deployment mode and parameters for each of the cloud controls - * in the framework. Every cloud control in the framework includes metadata. - * @type int $deployment_state - * Output only. The state for the framework deployment. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the resource was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the resource last updated. - * @type string $etag - * Optional. To prevent concurrent updates from overwriting each other, always - * provide the `etag` when you update a framework deployment. You can also - * provide the `etag` when you delete a framework deployment, to help - * ensure that you're deleting the intended version of the - * framework deployment. - * @type string $target_resource_display_name - * Output only. The display name of the target resource. - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference[] $cloud_control_deployment_references - * Output only. The references to the cloud control deployments. The reference - * includes all the cloud control deployments that are in the framework or in - * a cloud control group. - * For example, if a framework deployment deploys two - * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the - * references are: - * ``` - * { - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" - * }, - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" - * } - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * 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. The details of the target resource that you want to deploy the - * framework to. You can specify an existing resource, or create a new one. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig|null - */ - public function getTargetResourceConfig() - { - return $this->target_resource_config; - } - - public function hasTargetResourceConfig() - { - return isset($this->target_resource_config); - } - - public function clearTargetResourceConfig() - { - unset($this->target_resource_config); - } - - /** - * Required. The details of the target resource that you want to deploy the - * framework to. You can specify an existing resource, or create a new one. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig target_resource_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig $var - * @return $this - */ - public function setTargetResourceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceConfig::class); - $this->target_resource_config = $var; - - return $this; - } - - /** - * Output only. The target resource to deploy the framework to, in one the - * following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getComputedTargetResource() - { - return $this->computed_target_resource; - } - - /** - * Output only. The target resource to deploy the framework to, in one the - * following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setComputedTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->computed_target_resource = $var; - - return $this; - } - - /** - * Required. A reference to the framework that you're deploying. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference|null - */ - public function getFramework() - { - return $this->framework; - } - - public function hasFramework() - { - return isset($this->framework); - } - - public function clearFramework() - { - unset($this->framework); - } - - /** - * Required. A reference to the framework that you're deploying. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference::class); - $this->framework = $var; - - return $this; - } - - /** - * Optional. A user-provided description of the framework deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A user-provided description of the framework deployment. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The deployment mode and parameters for each of the cloud controls - * in the framework. Every cloud control in the framework includes metadata. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata> - */ - public function getCloudControlMetadata() - { - return $this->cloud_control_metadata; - } - - /** - * Required. The deployment mode and parameters for each of the cloud controls - * in the framework. Every cloud control in the framework includes metadata. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata cloud_control_metadata = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata[] $var - * @return $this - */ - public function setCloudControlMetadata($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlMetadata::class); - $this->cloud_control_metadata = $arr; - - return $this; - } - - /** - * Output only. The state for the framework deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - /** - * Output only. The state for the framework deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.DeploymentState deployment_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\DeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - - /** - * Output only. The time at which 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. The time at which 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 time at which the resource last 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 time at which the resource last 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; - } - - /** - * Optional. To prevent concurrent updates from overwriting each other, always - * provide the `etag` when you update a framework deployment. You can also - * provide the `etag` when you delete a framework deployment, to help - * ensure that you're deleting the intended version of the - * framework deployment. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. To prevent concurrent updates from overwriting each other, always - * provide the `etag` when you update a framework deployment. You can also - * provide the `etag` when you delete a framework deployment, to help - * ensure that you're deleting the intended version of the - * framework deployment. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetResourceDisplayName() - { - return $this->target_resource_display_name; - } - - /** - * Output only. The display name of the target resource. - * - * Generated from protobuf field string target_resource_display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetResourceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->target_resource_display_name = $var; - - return $this; - } - - /** - * Output only. The references to the cloud control deployments. The reference - * includes all the cloud control deployments that are in the framework or in - * a cloud control group. - * For example, if a framework deployment deploys two - * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the - * references are: - * ``` - * { - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" - * }, - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" - * } - * ``` - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference> - */ - public function getCloudControlDeploymentReferences() - { - return $this->cloud_control_deployment_references; - } - - /** - * Output only. The references to the cloud control deployments. The reference - * includes all the cloud control deployments that are in the framework or in - * a cloud control group. - * For example, if a framework deployment deploys two - * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the - * references are: - * ``` - * { - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-1" - * }, - * cloud_control_deployment_reference: { - * cloud_control_deployment: - * "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" - * } - * ``` - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference cloud_control_deployment_references = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference[] $var - * @return $this - */ - public function setCloudControlDeploymentReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeploymentReference::class); - $this->cloud_control_deployment_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php deleted file mode 100644 index a4454a56ccdd..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkDeploymentReference.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference - */ -class FrameworkDeploymentReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $framework_deployment = ''; - /** - * Optional. The reference to the framework that this deployment is for. - * For example: - * ``` - * { - * framework: - * "organizations/{organization}/locations/{location}/frameworks/{framework}", - * major_revision_id: 1 - * } - * ``` - * The only supported location is `global`. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_reference = null; - /** - * Optional. The display name of the framework that this framework deployment - * is for. - * - * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $framework_display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework_deployment - * Output only. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $framework_reference - * Optional. The reference to the framework that this deployment is for. - * For example: - * ``` - * { - * framework: - * "organizations/{organization}/locations/{location}/frameworks/{framework}", - * major_revision_id: 1 - * } - * ``` - * The only supported location is `global`. - * @type string $framework_display_name - * Optional. The display name of the framework that this framework deployment - * is for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getFrameworkDeployment() - { - return $this->framework_deployment; - } - - /** - * Output only. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string framework_deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setFrameworkDeployment($var) - { - GPBUtil::checkString($var, True); - $this->framework_deployment = $var; - - return $this; - } - - /** - * Optional. The reference to the framework that this deployment is for. - * For example: - * ``` - * { - * framework: - * "organizations/{organization}/locations/{location}/frameworks/{framework}", - * major_revision_id: 1 - * } - * ``` - * The only supported location is `global`. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference|null - */ - public function getFrameworkReference() - { - return $this->framework_reference; - } - - public function hasFrameworkReference() - { - return isset($this->framework_reference); - } - - public function clearFrameworkReference() - { - unset($this->framework_reference); - } - - /** - * Optional. The reference to the framework that this deployment is for. - * For example: - * ``` - * { - * framework: - * "organizations/{organization}/locations/{location}/frameworks/{framework}", - * major_revision_id: 1 - * } - * ``` - * The only supported location is `global`. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkReference framework_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference $var - * @return $this - */ - public function setFrameworkReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkReference::class); - $this->framework_reference = $var; - - return $this; - } - - /** - * Optional. The display name of the framework that this framework deployment - * is for. - * - * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFrameworkDisplayName() - { - return $this->framework_display_name; - } - - /** - * Optional. The display name of the framework that this framework deployment - * is for. - * - * Generated from protobuf field string framework_display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFrameworkDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->framework_display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php deleted file mode 100644 index 8d9972d3e917..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/FrameworkReference.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.FrameworkReference - */ -class FrameworkReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $framework = ''; - /** - * Optional. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $major_revision_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework - * Required. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * @type int|string $major_revision_id - * Optional. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getFramework() - { - return $this->framework; - } - - /** - * Required. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkString($var, True); - $this->framework = $var; - - return $this; - } - - /** - * Optional. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMajorRevisionId() - { - return isset($this->major_revision_id) ? $this->major_revision_id : 0; - } - - public function hasMajorRevisionId() - { - return isset($this->major_revision_id); - } - - public function clearMajorRevisionId() - { - unset($this->major_revision_id); - } - - /** - * Optional. The major version of the framework. If not specified, the version - * corresponds to the latest version of the framework. - * - * Generated from protobuf field optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php deleted file mode 100644 index 4b1181f99eda..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest - */ -class GenerateFrameworkAuditScopeReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The organization, folder or project for the audit report. - * Supported formats are the following: - * * `projects/{project_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `organizations/{organization_id}/locations/{location}` - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Required. The format that the scope report bytes is returned in. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_format = 0; - /** - * Required. The compliance framework that the scope report is generated for. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $compliance_framework = ''; - - /** - * @param string $scope Required. The organization, folder or project for the audit report. - * - * Supported formats are the following: - * - * * `projects/{project_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `organizations/{organization_id}/locations/{location}` - * @param int $reportFormat Required. The format that the scope report bytes is returned in. - * For allowed values, use constants defined on {@see \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest\Format} - * @param string $complianceFramework Required. The compliance framework that the scope report is generated for. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest - * - * @experimental - */ - public static function build(string $scope, int $reportFormat, string $complianceFramework): self - { - return (new self()) - ->setScope($scope) - ->setReportFormat($reportFormat) - ->setComplianceFramework($complianceFramework); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. The organization, folder or project for the audit report. - * Supported formats are the following: - * * `projects/{project_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `organizations/{organization_id}/locations/{location}` - * @type int $report_format - * Required. The format that the scope report bytes is returned in. - * @type string $compliance_framework - * Required. The compliance framework that the scope report is generated for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The organization, folder or project for the audit report. - * Supported formats are the following: - * * `projects/{project_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `organizations/{organization_id}/locations/{location}` - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The organization, folder or project for the audit report. - * Supported formats are the following: - * * `projects/{project_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `organizations/{organization_id}/locations/{location}` - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The format that the scope report bytes is returned in. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportFormat() - { - return $this->report_format; - } - - /** - * Required. The format that the scope report bytes is returned in. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportRequest\Format::class); - $this->report_format = $var; - - return $this; - } - - /** - * Required. The compliance framework that the scope report is generated for. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getComplianceFramework() - { - return $this->compliance_framework; - } - - /** - * Required. The compliance framework that the scope report is generated for. - * - * Generated from protobuf field string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setComplianceFramework($var) - { - GPBUtil::checkString($var, True); - $this->compliance_framework = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php deleted file mode 100644 index ee72568285ac..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportRequest/Format.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format - */ -class Format -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * The report format is the Open Document Format (ODF). - * - * Generated from protobuf enum ODF = 1; - */ - const ODF = 1; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::ODF => 'ODF', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php deleted file mode 100644 index f52110eef6a8..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GenerateFrameworkAuditScopeReportResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse - */ -class GenerateFrameworkAuditScopeReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the audit report, in the format that was - * given in the request. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The compliance framework that the audit scope report is generated - * for. - * - * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $compliance_framework = ''; - protected $audit_report; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope_report_contents - * The audit scope report content in byte format. - * @type string $name - * Identifier. The name of the audit report, in the format that was - * given in the request. - * @type string $compliance_framework - * Required. The compliance framework that the audit scope report is generated - * for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * The audit scope report content in byte format. - * - * Generated from protobuf field bytes scope_report_contents = 3; - * @return string - */ - public function getScopeReportContents() - { - return $this->readOneof(3); - } - - public function hasScopeReportContents() - { - return $this->hasOneof(3); - } - - /** - * The audit scope report content in byte format. - * - * Generated from protobuf field bytes scope_report_contents = 3; - * @param string $var - * @return $this - */ - public function setScopeReportContents($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Identifier. The name of the audit report, in the format that was - * given in the request. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the audit report, in the format that was - * given in the 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; - } - - /** - * Required. The compliance framework that the audit scope report is generated - * for. - * - * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getComplianceFramework() - { - return $this->compliance_framework; - } - - /** - * Required. The compliance framework that the audit scope report is generated - * for. - * - * Generated from protobuf field string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setComplianceFramework($var) - { - GPBUtil::checkString($var, True); - $this->compliance_framework = $var; - - return $this; - } - - /** - * @return string - */ - public function getAuditReport() - { - return $this->whichOneof("audit_report"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php deleted file mode 100644 index 9951bc54e580..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlDeploymentRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest - */ -class GetCloudControlDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. Please see - * {@see DeploymentClient::cloudControlDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GetCloudControlDeploymentRequest - * - * @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. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * 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. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` - * or - * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. - * The only supported location is `global`. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php deleted file mode 100644 index ae33174e107a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetCloudControlRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest - */ -class GetCloudControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the cloud control to retrieve, in one of the - * following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The major version of the cloud control to retrieve. If not - * specified, the most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $major_revision_id = 0; - - /** - * @param string $name Required. The name of the cloud control to retrieve, in one of the - * following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::cloudControlName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GetCloudControlRequest - * - * @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. The name of the cloud control to retrieve, in one of the - * following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * @type int|string $major_revision_id - * Optional. The major version of the cloud control to retrieve. If not - * specified, the most recently updated `revision_id` is retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the cloud control to retrieve, in one of the - * following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * 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. The name of the cloud control to retrieve, in one of the - * following formats: - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` - * or - * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. - * The only supported location is `global`. - * - * 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; - } - - /** - * Optional. The major version of the cloud control to retrieve. If not - * specified, the most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Optional. The major version of the cloud control to retrieve. If not - * specified, the most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php deleted file mode 100644 index 12fb678f6514..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkAuditRequest.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest - */ -class GetFrameworkAuditRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the framework audit to retrieve. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the framework audit to retrieve. - * - * Supported formats are the following: - * - * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * Please see {@see AuditClient::frameworkAuditName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkAuditRequest - * - * @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. The name of the framework audit to retrieve. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the framework audit to retrieve. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * - * 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. The name of the framework audit to retrieve. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php deleted file mode 100644 index 3c26eec56b32..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkDeploymentRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest - */ -class GetFrameworkDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. Please see - * {@see DeploymentClient::frameworkDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkDeploymentRequest - * - * @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. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * 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. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` - * or - * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. - * The only supported location is `global`. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php deleted file mode 100644 index b337434ad948..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/GetFrameworkRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest - */ -class GetFrameworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the framework to retrieve, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The framework major version to retrieve. If not specified, the - * most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $major_revision_id = 0; - - /** - * @param string $name Required. The name of the framework to retrieve, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::frameworkName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\GetFrameworkRequest - * - * @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. The name of the framework to retrieve, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * @type int|string $major_revision_id - * Optional. The framework major version to retrieve. If not specified, the - * most recently updated `revision_id` is retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the framework to retrieve, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * 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. The name of the framework to retrieve, in one of the following - * formats: - * `organizations/{organization}/locations/{location}/frameworks/{framework}` - * or - * `projects/{project}/locations/{location}/frameworks/{framework}`. - * The only supported location is `global`. - * - * 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; - } - - /** - * Optional. The framework major version to retrieve. If not specified, the - * most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Optional. The framework major version to retrieve. If not specified, the - * most recently updated `revision_id` is retrieved. - * - * Generated from protobuf field int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php deleted file mode 100644 index 3ce30ef81643..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/IntRange.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.IntRange - */ -class IntRange extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The minimum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min = 0; - /** - * Required. The maximum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $min - * Required. The minimum permitted value for the numeric parameter - * (inclusive). - * @type int|string $max - * Required. The maximum permitted value for the numeric parameter - * (inclusive). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The minimum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getMin() - { - return $this->min; - } - - /** - * Required. The minimum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkInt64($var); - $this->min = $var; - - return $this; - } - - /** - * Required. The maximum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getMax() - { - return $this->max; - } - - /** - * Required. The maximum permitted value for the numeric parameter - * (inclusive). - * - * Generated from protobuf field int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkInt64($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php deleted file mode 100644 index 40a728f59419..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsRequest.php +++ /dev/null @@ -1,264 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest - */ -class ListCloudControlDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}` or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The requested page size. The server might return fewer items than - * you requested. - * If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filter to apply on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}` or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. Please see - * {@see DeploymentClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlDeploymentsRequest - * - * @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. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}` or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type int $page_size - * Optional. The requested page size. The server might return fewer items than - * you requested. - * If unspecified, the server picks an appropriate default. - * @type string $page_token - * Optional. A token that identifies the page of results that the server - * should return. - * @type string $filter - * Optional. The filter to apply on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * @type string $order_by - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}` or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource for the cloud control deployment, in the - * format `organizations/{organization}/locations/{location}` or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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 requested page size. The server might return fewer items than - * you requested. - * If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * you requested. - * If unspecified, the server picks an appropriate default. - * - * 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 token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * 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. The filter to apply on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * 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. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php deleted file mode 100644 index 38df2537f87d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlDeploymentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse - */ -class ListCloudControlDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of cloud control deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; - */ - private $cloud_control_deployments; - /** - * A token that identifies the next page of results that the server - * should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment[] $cloud_control_deployments - * The list of cloud control deployments. - * @type string $next_page_token - * A token that identifies the next page of results that the server - * should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * The list of cloud control deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment> - */ - public function getCloudControlDeployments() - { - return $this->cloud_control_deployments; - } - - /** - * The list of cloud control deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment cloud_control_deployments = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment[] $var - * @return $this - */ - public function setCloudControlDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment::class); - $this->cloud_control_deployments = $arr; - - return $this; - } - - /** - * A token that identifies the next page of results that the server - * should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that identifies the next page of results that the server - * should return. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php deleted file mode 100644 index 056b198e1148..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest - */ -class ListCloudControlsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of cloud controls to return. The default value - * is `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A pagination token that's returned from a previous request to - * list cloud controls. Provide this token to retrieve the next page of - * results. - * When paginating, the parent that you provide to the - * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] - * request must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlsRequest - * - * @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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type int $page_size - * Optional. The maximum number of cloud controls to return. The default value - * is `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * @type string $page_token - * Optional. A pagination token that's returned from a previous request to - * list cloud controls. Provide this token to retrieve the next page of - * results. - * When paginating, the parent that you provide to the - * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] - * request must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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 cloud controls to return. The default value - * is `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * 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 cloud controls to return. The default value - * is `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * 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 pagination token that's returned from a previous request to - * list cloud controls. Provide this token to retrieve the next page of - * results. - * When paginating, the parent that you provide to the - * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] - * request must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A pagination token that's returned from a previous request to - * list cloud controls. Provide this token to retrieve the next page of - * results. - * When paginating, the parent that you provide to the - * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] - * request must match the call that provided the page token. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php deleted file mode 100644 index 06a16deb228f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListCloudControlsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse - */ -class ListCloudControlsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of CloudControl resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; - */ - private $cloud_controls; - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl[] $cloud_controls - * The list of CloudControl resources. - * @type string $next_page_token - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * The list of CloudControl resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\CloudControl> - */ - public function getCloudControls() - { - return $this->cloud_controls; - } - - /** - * The list of CloudControl resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_controls = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl[] $var - * @return $this - */ - public function setCloudControls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); - $this->cloud_controls = $arr; - - return $this; - } - - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php deleted file mode 100644 index 13c5c70834aa..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest - */ -class ListControlComplianceSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent scope for the framework overview page. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The end time of the control compliance summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $end_time = null; - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent scope for the framework overview page. Please see - * {@see MonitoringClient::frameworkComplianceReportName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListControlComplianceSummariesRequest - * - * @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. The parent scope for the framework overview page. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. The end time of the control compliance summary. - * @type int $page_size - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * @type string $page_token - * Optional. A token that identifies the page of results that the server - * should return. - * @type string $filter - * Optional. The filtering results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent scope for the framework overview page. - * - * 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. The parent scope for the framework overview page. - * - * 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 end time of the control compliance summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - * @deprecated - */ - public function getEndTime() - { - if (isset($this->end_time)) { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - } - return $this->end_time; - } - - public function hasEndTime() - { - if (isset($this->end_time)) { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - } - return isset($this->end_time); - } - - public function clearEndTime() - { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - unset($this->end_time); - } - - /** - * Optional. The end time of the control compliance summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - * @deprecated - */ - public function setEndTime($var) - { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 3 [(.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 token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 4 [(.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. The filtering results. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php deleted file mode 100644 index 3e312b78bb7c..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListControlComplianceSummariesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse - */ -class ListControlComplianceSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of control compliance details. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; - */ - private $control_compliance_summaries; - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary[] $control_compliance_summaries - * The list of control compliance details. - * @type string $next_page_token - * Output only. The token to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The list of control compliance details. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary> - */ - public function getControlComplianceSummaries() - { - return $this->control_compliance_summaries; - } - - /** - * The list of control compliance details. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary[] $var - * @return $this - */ - public function setControlComplianceSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ControlComplianceSummary::class); - $this->control_compliance_summaries = $arr; - - return $this; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php deleted file mode 100644 index 43e53f458a71..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest - */ -class ListFindingSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent scope for the framework overview page. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The end time of the finding summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $end_time = null; - - /** - * @param string $parent Required. The parent scope for the framework overview page. Please see - * {@see MonitoringClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFindingSummariesRequest - * - * @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. The parent scope for the framework overview page. - * @type int $page_size - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * @type string $page_token - * Optional. A token that identifies the page of results that the server - * should return. - * @type string $filter - * Optional. The filtering results. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. The end time of the finding summary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent scope for the framework overview page. - * - * 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. The parent scope for the framework overview page. - * - * 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 requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * 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 token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * 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. The filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The 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. The end time of the finding summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - * @deprecated - */ - public function getEndTime() - { - if (isset($this->end_time)) { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - } - return $this->end_time; - } - - public function hasEndTime() - { - if (isset($this->end_time)) { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - } - return isset($this->end_time); - } - - public function clearEndTime() - { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - unset($this->end_time); - } - - /** - * Optional. The end time of the finding summary. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - * @deprecated - */ - public function setEndTime($var) - { - @trigger_error('end_time is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php deleted file mode 100644 index 796b73f06f5a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFindingSummariesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse - */ -class ListFindingSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of finding summary by category. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; - */ - private $finding_summaries; - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary[] $finding_summaries - * List of finding summary by category. - * @type string $next_page_token - * Output only. The token to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * List of finding summary by category. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FindingSummary> - */ - public function getFindingSummaries() - { - return $this->finding_summaries; - } - - /** - * List of finding summary by category. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary[] $var - * @return $this - */ - public function setFindingSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FindingSummary::class); - $this->finding_summaries = $arr; - - return $this; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php deleted file mode 100644 index 4e031b81c420..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest - */ -class ListFrameworkAuditsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where the framework audits are listed. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of framework audits to return. The service - * might return fewer audits than this value. If unspecified, a maximum of 10 - * framework audits are returned. The maximum value is 50; values above 50 are - * limited to 50. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The `next_page_token` value that's returned from a previous list - * request, if any. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filters to apply to the framework audits. - * Supported filters are `compliance_framework`, `compliance_state`, - * `create_time,` and `framework_audit_name`. If the filter is invalid, an - * invalid argument error is returned. - * For syntax details, see [AIP-160][https://google.aip.dev/160]. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource where the framework audits are listed. - * - * Supported formats are the following: - * - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * Please see {@see AuditClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkAuditsRequest - * - * @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. The parent resource where the framework audits are listed. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/locations/{location}` - * @type int $page_size - * Optional. The maximum number of framework audits to return. The service - * might return fewer audits than this value. If unspecified, a maximum of 10 - * framework audits are returned. The maximum value is 50; values above 50 are - * limited to 50. - * @type string $page_token - * Optional. The `next_page_token` value that's returned from a previous list - * request, if any. - * @type string $filter - * Optional. The filters to apply to the framework audits. - * Supported filters are `compliance_framework`, `compliance_state`, - * `create_time,` and `framework_audit_name`. If the filter is invalid, an - * invalid argument error is returned. - * For syntax details, see [AIP-160][https://google.aip.dev/160]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where the framework audits are listed. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/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. The parent resource where the framework audits are listed. - * Supported formats are the following: - * * `organizations/{organization_id}/locations/{location}` - * * `folders/{folder_id}/locations/{location}` - * * `projects/{project_id}/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; - } - - /** - * Optional. The maximum number of framework audits to return. The service - * might return fewer audits than this value. If unspecified, a maximum of 10 - * framework audits are returned. The maximum value is 50; values above 50 are - * limited to 50. - * - * 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 framework audits to return. The service - * might return fewer audits than this value. If unspecified, a maximum of 10 - * framework audits are returned. The maximum value is 50; values above 50 are - * limited to 50. - * - * 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. The `next_page_token` value that's returned from a previous list - * request, if any. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The `next_page_token` value that's returned from a previous list - * request, if any. - * - * 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. The filters to apply to the framework audits. - * Supported filters are `compliance_framework`, `compliance_state`, - * `create_time,` and `framework_audit_name`. If the filter is invalid, an - * invalid argument error is returned. - * For syntax details, see [AIP-160][https://google.aip.dev/160]. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filters to apply to the framework audits. - * Supported filters are `compliance_framework`, `compliance_state`, - * `create_time,` and `framework_audit_name`. If the filter is invalid, an - * invalid argument error is returned. - * For syntax details, see [AIP-160][https://google.aip.dev/160]. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php deleted file mode 100644 index 991d34f5ad10..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkAuditsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse - */ -class ListFrameworkAuditsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The framework audits. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; - */ - private $framework_audits; - /** - * A token, which you can send as the `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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit[] $framework_audits - * The framework audits. - * @type string $next_page_token - * A token, which you can send as the `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * The framework audits. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit> - */ - public function getFrameworkAudits() - { - return $this->framework_audits; - } - - /** - * The framework audits. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit[] $var - * @return $this - */ - public function setFrameworkAudits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit::class); - $this->framework_audits = $arr; - - return $this; - } - - /** - * A token, which you can send as the `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, which you can send as the `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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php deleted file mode 100644 index d6b902f7aad5..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesRequest.php +++ /dev/null @@ -1,226 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest - */ -class ListFrameworkComplianceSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent scope for the framework compliance summary. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specifies the level of detail to return in the response. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $parent Required. The parent scope for the framework compliance summary. Please see - * {@see MonitoringClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkComplianceSummariesRequest - * - * @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. The parent scope for the framework compliance summary. - * @type int $page_size - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * @type string $page_token - * Optional. A token that identifies the page of results that the server - * should return. - * @type string $filter - * Optional. The filtering results. - * @type int $view - * Optional. Specifies the level of detail to return in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent scope for the framework compliance summary. - * - * 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. The parent scope for the framework compliance summary. - * - * 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 requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the server picks an appropriate default. - * - * 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 token that identifies the page of results that the server - * should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token that identifies the page of results that the server - * should return. - * - * 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. The filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The 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. Specifies the level of detail to return in the response. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Specifies the level of detail to return in the response. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummaryView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php deleted file mode 100644 index b505a58d6c42..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkComplianceSummariesResponse.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse - */ -class ListFrameworkComplianceSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of framework compliance summaries. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; - */ - private $framework_compliance_summaries; - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary[] $framework_compliance_summaries - * The list of framework compliance summaries. - * @type string $next_page_token - * Output only. The token to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The list of framework compliance summaries. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary> - */ - public function getFrameworkComplianceSummaries() - { - return $this->framework_compliance_summaries; - } - - /** - * The list of framework compliance summaries. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary[] $var - * @return $this - */ - public function setFrameworkComplianceSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceSummary::class); - $this->framework_compliance_summaries = $arr; - - return $this; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Output only. The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php deleted file mode 100644 index 107b26a5aed7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest - */ -class ListFrameworkDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The requested page size. The server might return fewer items than - * requested. - * If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token that identifies a page of results the server should - * return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The filter to be applied on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. Please see - * {@see DeploymentClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkDeploymentsRequest - * - * @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. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type int $page_size - * Optional. The requested page size. The server might return fewer items than - * requested. - * If unspecified, the server picks an appropriate default. - * @type string $page_token - * Optional. A token that identifies a page of results the server should - * return. - * @type string $filter - * Optional. The filter to be applied on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * @type string $order_by - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}` - * or - * `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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 requested page size. The server might return fewer items than - * requested. - * If unspecified, the server picks an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. - * If unspecified, the server picks an appropriate default. - * - * 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 token that identifies a page of results the server should - * return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token that identifies a page of results the server should - * return. - * - * 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. The filter to be applied on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to be applied on the resource, as defined by - * [AIP-160: Filtering](https://google.aip.dev/160). - * - * 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. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sort order for the results. The following values are - * supported: - * * `name` - * * `name desc` - * If you do not specify a value, then the results are not sorted. - * - * 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php deleted file mode 100644 index 0c8e76d37396..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworkDeploymentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse - */ -class ListFrameworkDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; - */ - private $framework_deployments; - /** - * A token that identifies the next page of results that the server - * should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment[] $framework_deployments - * The list of framework deployments. - * @type string $next_page_token - * A token that identifies the next page of results that the server - * should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * The list of framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment> - */ - public function getFrameworkDeployments() - { - return $this->framework_deployments; - } - - /** - * The list of framework deployments. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment framework_deployments = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment[] $var - * @return $this - */ - public function setFrameworkDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment::class); - $this->framework_deployments = $arr; - - return $this; - } - - /** - * A token that identifies the next page of results that the server - * should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that identifies the next page of results that the server - * should return. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php deleted file mode 100644 index f34e76c42879..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest - */ -class ListFrameworksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of frameworks to return. The default value is - * `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A pagination token returned from a previous request to list - * frameworks. Provide this token to retrieve the next page of results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * - * The only supported location is `global`. Please see - * {@see ConfigClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\ListFrameworksRequest - * - * @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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * @type int $page_size - * Optional. The maximum number of frameworks to return. The default value is - * `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * @type string $page_token - * Optional. A pagination token returned from a previous request to list - * frameworks. Provide this token to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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. The parent resource name, in one of the following formats: - * - `organizations/{organization}/locations/{location}` - * - `projects/{project}/locations/{location}`. - * The only supported location is `global`. - * - * 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 frameworks to return. The default value is - * `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * 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 frameworks to return. The default value is - * `500`. - * If you exceed the maximum value of `1000`, then the service uses the - * maximum value. - * - * 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 pagination token returned from a previous request to list - * frameworks. Provide this token to retrieve the next page of results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A pagination token returned from a previous request to list - * frameworks. Provide this token to retrieve the next page of results. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php deleted file mode 100644 index 0c48679226db..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ListFrameworksResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse - */ -class ListFrameworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of framework resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; - */ - private $frameworks; - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework[] $frameworks - * The list of framework resources. - * @type string $next_page_token - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * The list of framework resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\Framework> - */ - public function getFrameworks() - { - return $this->frameworks; - } - - /** - * The list of framework resources. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework[] $var - * @return $this - */ - public function setFrameworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); - $this->frameworks = $arr; - - return $this; - } - - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A pagination token. To retrieve the next page of results, call the method - * again with this token. - * - * 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; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php deleted file mode 100644 index 0f4eb41be6e9..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ManualCloudControlAssessmentDetails.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails - */ -class ManualCloudControlAssessmentDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The guide for assessing a cloud control manually. - * - * Generated from protobuf field repeated string manual_cloud_control_guide = 1; - */ - private $manual_cloud_control_guide; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $manual_cloud_control_guide - * The guide for assessing a cloud control manually. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The guide for assessing a cloud control manually. - * - * Generated from protobuf field repeated string manual_cloud_control_guide = 1; - * @return RepeatedField - */ - public function getManualCloudControlGuide() - { - return $this->manual_cloud_control_guide; - } - - /** - * The guide for assessing a cloud control manually. - * - * Generated from protobuf field repeated string manual_cloud_control_guide = 1; - * @param string[] $var - * @return $this - */ - public function setManualCloudControlGuide($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->manual_cloud_control_guide = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php deleted file mode 100644 index ff00ffca090f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ObservationDetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ObservationDetails - */ -class ObservationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The current value. - * - * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_value = ''; - /** - * Optional. The expected value. - * - * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expected_value = ''; - /** - * Output only. Any guidance for the observation. - * - * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $guidance = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $current_value - * Output only. The current value. - * @type string $expected_value - * Optional. The expected value. - * @type string $guidance - * Output only. Any guidance for the observation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The current value. - * - * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrentValue() - { - return $this->current_value; - } - - /** - * Output only. The current value. - * - * Generated from protobuf field string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrentValue($var) - { - GPBUtil::checkString($var, True); - $this->current_value = $var; - - return $this; - } - - /** - * Optional. The expected value. - * - * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExpectedValue() - { - return $this->expected_value; - } - - /** - * Optional. The expected value. - * - * Generated from protobuf field string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExpectedValue($var) - { - GPBUtil::checkString($var, True); - $this->expected_value = $var; - - return $this; - } - - /** - * Output only. Any guidance for the observation. - * - * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGuidance() - { - return $this->guidance; - } - - /** - * Output only. Any guidance for the observation. - * - * Generated from protobuf field string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGuidance($var) - { - GPBUtil::checkString($var, True); - $this->guidance = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php deleted file mode 100644 index 4b27b064f8ab..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.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. The 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. The name of the verb that was executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. The 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 that the operation - * be cancelled. If an operation was cancelled successfully, then the field - * [google.longrunning.Operation.error][google.longrunning.Operation.error] - * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED]. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. The API version that was 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. The server-defined resource path for the target of the - * operation. - * @type string $verb - * Output only. The name of the verb that was executed by the operation. - * @type string $status_message - * Output only. The human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested that the operation - * be cancelled. If an operation was cancelled successfully, then the field - * [google.longrunning.Operation.error][google.longrunning.Operation.error] - * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED]. - * @type string $api_version - * Output only. The API version that was used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::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. The 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. The 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. The name of the verb that was 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. The name of the verb that was 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. The 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. The 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 that the operation - * be cancelled. If an operation was cancelled successfully, then the field - * [google.longrunning.Operation.error][google.longrunning.Operation.error] - * contains the value [google.rpc.Code.CANCELLED][google.rpc.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 that the operation - * be cancelled. If an operation was cancelled successfully, then the field - * [google.longrunning.Operation.error][google.longrunning.Operation.error] - * contains the value [google.rpc.Code.CANCELLED][google.rpc.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. The API version that was 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. The API version that was 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php deleted file mode 100644 index 8c6f49a8e501..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParamValue.php +++ /dev/null @@ -1,207 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ParamValue - */ -class ParamValue extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $string_value - * Optional. A string value. - * @type bool $bool_value - * Optional. A boolean value. - * @type \Google\Cloud\CloudSecurityCompliance\V1\StringList $string_list_value - * Optional. A repeated string. - * @type float $number_value - * Optional. A double value. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Parameter $oneof_value - * Optional. Sub-parameter values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A string value. - * - * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * Optional. A string value. - * - * Generated from protobuf field string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. A boolean value. - * - * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(4); - } - - public function hasBoolValue() - { - return $this->hasOneof(4); - } - - /** - * Optional. A boolean value. - * - * Generated from protobuf field bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. A repeated string. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\StringList|null - */ - public function getStringListValue() - { - return $this->readOneof(5); - } - - public function hasStringListValue() - { - return $this->hasOneof(5); - } - - /** - * Optional. A repeated string. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\StringList $var - * @return $this - */ - public function setStringListValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\StringList::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. A double value. - * - * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getNumberValue() - { - return $this->readOneof(6); - } - - public function hasNumberValue() - { - return $this->hasOneof(6); - } - - /** - * Optional. A double value. - * - * Generated from protobuf field double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setNumberValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. Sub-parameter values. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\Parameter|null - */ - public function getOneofValue() - { - return $this->readOneof(7); - } - - public function hasOneofValue() - { - return $this->hasOneof(7); - } - - /** - * Optional. Sub-parameter values. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Parameter $var - * @return $this - */ - public function setOneofValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Parameter::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php deleted file mode 100644 index eeba8a1e2d17..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Parameter.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Parameter - */ -class Parameter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name or key of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parameter_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name or key of the parameter. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $parameter_value - * Required. The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name or key of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name or key of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ParamValue|null - */ - public function getParameterValue() - { - return $this->parameter_value; - } - - public function hasParameterValue() - { - return isset($this->parameter_value); - } - - public function clearParameterValue() - { - unset($this->parameter_value); - } - - /** - * Required. The value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $var - * @return $this - */ - public function setParameterValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); - $this->parameter_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php deleted file mode 100644 index b91e9fbcfdda..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec.php +++ /dev/null @@ -1,367 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ParameterSpec - */ -class ParameterSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. The friendly name of the parameter. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The description of the parameter. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Whether the parameter is required. - * - * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $is_required = false; - /** - * Required. The parameter value type. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value_type = 0; - /** - * Optional. The default value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_value = null; - /** - * Optional. The list of parameter substitutions. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $substitution_rules; - /** - * Optional. The parameter specification for `oneOf` attributes. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sub_parameters; - /** - * Optional. The permitted set of values for the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the parameter. - * @type string $display_name - * Optional. The friendly name of the parameter. The maximum length is 200 - * characters. - * @type string $description - * Optional. The description of the parameter. The maximum length is 2000 - * characters. - * @type bool $is_required - * Required. Whether the parameter is required. - * @type int $value_type - * Required. The parameter value type. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $default_value - * Optional. The default value of the parameter. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule[] $substitution_rules - * Optional. The list of parameter substitutions. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $sub_parameters - * Optional. The parameter specification for `oneOf` attributes. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Validation $validation - * Optional. The permitted set of values for the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The friendly name of the parameter. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The friendly name of the parameter. The maximum length is 200 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the parameter. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the parameter. The maximum length is 2000 - * characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Whether the parameter is required. - * - * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getIsRequired() - { - return $this->is_required; - } - - /** - * Required. Whether the parameter is required. - * - * Generated from protobuf field bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setIsRequired($var) - { - GPBUtil::checkBool($var); - $this->is_required = $var; - - return $this; - } - - /** - * Required. The parameter value type. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * Required. The parameter value type. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * Optional. The default value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ParamValue|null - */ - public function getDefaultValue() - { - return $this->default_value; - } - - public function hasDefaultValue() - { - return isset($this->default_value); - } - - public function clearDefaultValue() - { - unset($this->default_value); - } - - /** - * Optional. The default value of the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ParamValue default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParamValue $var - * @return $this - */ - public function setDefaultValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ParamValue::class); - $this->default_value = $var; - - return $this; - } - - /** - * Optional. The list of parameter substitutions. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule> - */ - public function getSubstitutionRules() - { - return $this->substitution_rules; - } - - /** - * Optional. The list of parameter substitutions. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule substitution_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule[] $var - * @return $this - */ - public function setSubstitutionRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSubstitutionRule::class); - $this->substitution_rules = $arr; - - return $this; - } - - /** - * Optional. The parameter specification for `oneOf` attributes. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec> - */ - public function getSubParameters() - { - return $this->sub_parameters; - } - - /** - * Optional. The parameter specification for `oneOf` attributes. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.ParameterSpec sub_parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec[] $var - * @return $this - */ - public function setSubParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudSecurityCompliance\V1\ParameterSpec::class); - $this->sub_parameters = $arr; - - return $this; - } - - /** - * Optional. The permitted set of values for the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\Validation|null - */ - public function getValidation() - { - return $this->validation; - } - - public function hasValidation() - { - return isset($this->validation); - } - - public function clearValidation() - { - unset($this->validation); - } - - /** - * Optional. The permitted set of values for the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Validation validation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Validation $var - * @return $this - */ - public function setValidation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Validation::class); - $this->validation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php deleted file mode 100644 index aa18000503ce..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSpec/ValueType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType - */ -class ValueType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; - */ - const VALUE_TYPE_UNSPECIFIED = 0; - /** - * A string value. - * - * Generated from protobuf enum STRING = 3; - */ - const STRING = 3; - /** - * A boolean value. - * - * Generated from protobuf enum BOOLEAN = 4; - */ - const BOOLEAN = 4; - /** - * A string list value. - * - * Generated from protobuf enum STRINGLIST = 5; - */ - const STRINGLIST = 5; - /** - * A numeric value. - * - * Generated from protobuf enum NUMBER = 6; - */ - const NUMBER = 6; - /** - * A oneOf value. - * - * Generated from protobuf enum ONEOF = 7; - */ - const ONEOF = 7; - - private static $valueToName = [ - self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::BOOLEAN => 'BOOLEAN', - self::STRINGLIST => 'STRINGLIST', - self::NUMBER => 'NUMBER', - self::ONEOF => 'ONEOF', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php deleted file mode 100644 index 62207686f2b7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ParameterSubstitutionRule.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule - */ -class ParameterSubstitutionRule extends \Google\Protobuf\Internal\Message -{ - protected $substitution_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule $placeholder_substitution_rule - * The placeholder substitution rule. - * @type \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule $attribute_substitution_rule - * The attribute substitution rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The placeholder substitution rule. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule placeholder_substitution_rule = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule|null - */ - public function getPlaceholderSubstitutionRule() - { - return $this->readOneof(1); - } - - public function hasPlaceholderSubstitutionRule() - { - return $this->hasOneof(1); - } - - /** - * The placeholder substitution rule. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule placeholder_substitution_rule = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule $var - * @return $this - */ - public function setPlaceholderSubstitutionRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\PlaceholderSubstitutionRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The attribute substitution rule. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule attribute_substitution_rule = 2; - * @return \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule|null - */ - public function getAttributeSubstitutionRule() - { - return $this->readOneof(2); - } - - public function hasAttributeSubstitutionRule() - { - return $this->hasOneof(2); - } - - /** - * The attribute substitution rule. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule attribute_substitution_rule = 2; - * @param \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule $var - * @return $this - */ - public function setAttributeSubstitutionRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AttributeSubstitutionRule::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getSubstitutionType() - { - return $this->whichOneof("substitution_type"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php deleted file mode 100644 index 7637d3971708..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/PlaceholderSubstitutionRule.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule - */ -class PlaceholderSubstitutionRule extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified proto attribute path, in dot notation. - * - * Generated from protobuf field string attribute = 1; - */ - protected $attribute = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attribute - * The fully qualified proto attribute path, in dot notation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified proto attribute path, in dot notation. - * - * Generated from protobuf field string attribute = 1; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * The fully qualified proto attribute path, in dot notation. - * - * Generated from protobuf field string attribute = 1; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php deleted file mode 100644 index af0de84129b7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ProjectCreationConfig.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig - */ -class ProjectCreationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of the project, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The display name of the project. - * - * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_display_name = ''; - /** - * Required. The billing account ID for the project. - * - * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $billing_account_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of the project, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * @type string $project_display_name - * Required. The display name of the project. - * @type string $billing_account_id - * Required. The billing account ID for the project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of the project, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of the project, in the format - * `organizations/{organizationID}` or `folders/{folderID}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The display name of the project. - * - * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectDisplayName() - { - return $this->project_display_name; - } - - /** - * Required. The display name of the project. - * - * Generated from protobuf field string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->project_display_name = $var; - - return $this; - } - - /** - * Required. The billing account ID for the project. - * - * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBillingAccountId() - { - return $this->billing_account_id; - } - - /** - * Required. The billing account ID for the project. - * - * Generated from protobuf field string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBillingAccountId($var) - { - GPBUtil::checkString($var, True); - $this->billing_account_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php deleted file mode 100644 index afbac537cf8d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegexpPattern.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.RegexpPattern - */ -class RegexpPattern extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The regex pattern to match the values of the parameter with. - * - * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pattern = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pattern - * Required. The regex pattern to match the values of the parameter with. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The regex pattern to match the values of the parameter with. - * - * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPattern() - { - return $this->pattern; - } - - /** - * Required. The regex pattern to match the values of the parameter with. - * - * Generated from protobuf field string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPattern($var) - { - GPBUtil::checkString($var, True); - $this->pattern = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php deleted file mode 100644 index 8419e501a945..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RegulatoryControlResponsibilityType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType - */ -class RegulatoryControlResponsibilityType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; - */ - const REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; - /** - * Google's responsibility. - * - * Generated from protobuf enum GOOGLE = 1; - */ - const GOOGLE = 1; - /** - * Your responsibility. - * - * Generated from protobuf enum CUSTOMER = 2; - */ - const CUSTOMER = 2; - /** - * Shared responsibility. - * - * Generated from protobuf enum SHARED = 3; - */ - const SHARED = 3; - - private static $valueToName = [ - self::REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED => 'REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED', - self::GOOGLE => 'GOOGLE', - self::CUSTOMER => 'CUSTOMER', - self::SHARED => 'SHARED', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php deleted file mode 100644 index 672fe6786b82..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/ReportSummary.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.ReportSummary - */ -class ReportSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The total number of checks. - * - * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_count = 0; - /** - * Output only. The number of compliant checks. - * - * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compliant_count = 0; - /** - * Output only. The number of checks with violations. - * - * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $violation_count = 0; - /** - * Output only. The number of checks with "manual review needed" status. - * - * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $manual_review_needed_count = 0; - /** - * Output only. The number of checks that can't be performed due to errors. - * - * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Output only. The total number of checks. - * @type int $compliant_count - * Output only. The number of compliant checks. - * @type int $violation_count - * Output only. The number of checks with violations. - * @type int $manual_review_needed_count - * Output only. The number of checks with "manual review needed" status. - * @type int $error_count - * Output only. The number of checks that can't be performed due to errors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Audit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The total number of checks. - * - * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Output only. The total number of checks. - * - * Generated from protobuf field int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkInt32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Output only. The number of compliant checks. - * - * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompliantCount() - { - return $this->compliant_count; - } - - /** - * Output only. The number of compliant checks. - * - * Generated from protobuf field int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompliantCount($var) - { - GPBUtil::checkInt32($var); - $this->compliant_count = $var; - - return $this; - } - - /** - * Output only. The number of checks with violations. - * - * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getViolationCount() - { - return $this->violation_count; - } - - /** - * Output only. The number of checks with violations. - * - * Generated from protobuf field int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setViolationCount($var) - { - GPBUtil::checkInt32($var); - $this->violation_count = $var; - - return $this; - } - - /** - * Output only. The number of checks with "manual review needed" status. - * - * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getManualReviewNeededCount() - { - return $this->manual_review_needed_count; - } - - /** - * Output only. The number of checks with "manual review needed" status. - * - * Generated from protobuf field int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setManualReviewNeededCount($var) - { - GPBUtil::checkInt32($var); - $this->manual_review_needed_count = $var; - - return $this; - } - - /** - * Output only. The number of checks that can't be performed due to errors. - * - * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getErrorCount() - { - return $this->error_count; - } - - /** - * Output only. The number of checks that can't be performed due to errors. - * - * Generated from protobuf field int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->error_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php deleted file mode 100644 index 84e1b546e777..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Rule.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Rule - */ -class Rule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The rule description. The maximum length is 2000 characters. - * - * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The functionality that's enabled by the rule. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; - */ - private $rule_action_types; - protected $implementation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CELExpression $cel_expression - * The rule's logic expression in Common Expression Language (CEL). - * @type string $description - * Optional. The rule description. The maximum length is 2000 characters. - * @type int[] $rule_action_types - * Required. The functionality that's enabled by the rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The rule's logic expression in Common Expression Language (CEL). - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CELExpression|null - */ - public function getCelExpression() - { - return $this->readOneof(1); - } - - public function hasCelExpression() - { - return $this->hasOneof(1); - } - - /** - * The rule's logic expression in Common Expression Language (CEL). - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CELExpression $var - * @return $this - */ - public function setCelExpression($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CELExpression::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The rule description. The maximum length is 2000 characters. - * - * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The rule description. The maximum length is 2000 characters. - * - * Generated from protobuf field string description = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The functionality that's enabled by the rule. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getRuleActionTypes() - { - return $this->rule_action_types; - } - - /** - * Required. The functionality that's enabled by the rule. - * - * Generated from protobuf field repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED]; - * @param int[] $var - * @return $this - */ - public function setRuleActionTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\CloudSecurityCompliance\V1\RuleActionType::class); - $this->rule_action_types = $arr; - - return $this; - } - - /** - * @return string - */ - public function getImplementation() - { - return $this->whichOneof("implementation"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php deleted file mode 100644 index aeecd9c9344d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/RuleActionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.RuleActionType - */ -class RuleActionType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum RULE_ACTION_TYPE_UNSPECIFIED = 0; - */ - const RULE_ACTION_TYPE_UNSPECIFIED = 0; - /** - * The rule is intended to prevent non-compliance. - * - * Generated from protobuf enum RULE_ACTION_TYPE_PREVENTIVE = 1; - */ - const RULE_ACTION_TYPE_PREVENTIVE = 1; - /** - * The rule is intended to detect non-compliance. - * - * Generated from protobuf enum RULE_ACTION_TYPE_DETECTIVE = 2; - */ - const RULE_ACTION_TYPE_DETECTIVE = 2; - /** - * The rule is intended to audit non-compliance. - * - * Generated from protobuf enum RULE_ACTION_TYPE_AUDIT = 3; - */ - const RULE_ACTION_TYPE_AUDIT = 3; - - private static $valueToName = [ - self::RULE_ACTION_TYPE_UNSPECIFIED => 'RULE_ACTION_TYPE_UNSPECIFIED', - self::RULE_ACTION_TYPE_PREVENTIVE => 'RULE_ACTION_TYPE_PREVENTIVE', - self::RULE_ACTION_TYPE_DETECTIVE => 'RULE_ACTION_TYPE_DETECTIVE', - self::RULE_ACTION_TYPE_AUDIT => 'RULE_ACTION_TYPE_AUDIT', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php deleted file mode 100644 index 981fb09a8b22..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Severity.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Severity - */ -class Severity -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * A critical vulnerability is easily discoverable by an external actor, - * exploitable, and results in the direct ability to execute arbitrary code, - * exfiltrate data, and otherwise gain additional access and privileges to - * cloud resources and workloads. Examples include publicly accessible - * unprotected user data and public SSH access with weak or no - * passwords. - * A critical threat is a threat that can access, modify, or delete data or - * execute unauthorized code within existing resources. - * - * Generated from protobuf enum CRITICAL = 1; - */ - const CRITICAL = 1; - /** - * A high-risk vulnerability can be easily discovered and exploited in - * combination with other vulnerabilities to gain direct access and - * the ability to execute arbitrary code, exfiltrate data, and otherwise - * gain additional access and privileges to cloud resources and workloads. - * An example is a database with weak or no passwords that is only - * accessible internally. This database could easily be compromised by an - * actor that had access to the internal network. - * A high-risk threat is a threat that can create new computational - * resources in an environment but can't access data or execute code in - * existing resources. - * - * Generated from protobuf enum HIGH = 2; - */ - const HIGH = 2; - /** - * A medium-risk vulnerability can be used by an actor to gain access to - * resources or privileges that enable them to eventually (through multiple - * steps or a complex exploit) gain access and the ability to execute - * arbitrary code or exfiltrate data. An example is a service account with - * access to more projects than it should have. If an actor gains access to - * the service account, they could potentially use that access to manipulate - * a project the service account was not intended to. - * A medium-risk threat can cause operational impact but might not - * access data or execute unauthorized code. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * A low-risk vulnerability hampers a security organization's ability to - * detect vulnerabilities or active threats in their deployment, or prevents - * the root cause investigation of security issues. An example is monitoring - * and logs being disabled for resource configurations and access. - * A low-risk threat is a threat that has obtained minimal access to an - * environment but can't access data, execute code, or create resources. - * - * Generated from protobuf enum LOW = 4; - */ - const LOW = 4; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::CRITICAL => 'CRITICAL', - self::HIGH => 'HIGH', - self::MEDIUM => 'MEDIUM', - self::LOW => 'LOW', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php deleted file mode 100644 index 0d8279b22c63..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/SimilarControls.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.SimilarControls - */ -class SimilarControls extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - */ - protected $framework = ''; - /** - * The ID of the control. - * - * Generated from protobuf field string control_id = 2; - */ - protected $control_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework - * The name of the framework. - * @type string $control_id - * The ID of the control. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @return string - */ - public function getFramework() - { - return $this->framework; - } - - /** - * The name of the framework. - * - * Generated from protobuf field string framework = 1; - * @param string $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkString($var, True); - $this->framework = $var; - - return $this; - } - - /** - * The ID of the control. - * - * Generated from protobuf field string control_id = 2; - * @return string - */ - public function getControlId() - { - return $this->control_id; - } - - /** - * The ID of the control. - * - * Generated from protobuf field string control_id = 2; - * @param string $var - * @return $this - */ - public function setControlId($var) - { - GPBUtil::checkString($var, True); - $this->control_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php deleted file mode 100644 index d91a2fd949fa..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/StringList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.StringList - */ -class StringList extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The strings in the list. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $values - * Required. The strings in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Required. The strings in the list. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The strings in the list. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php deleted file mode 100644 index 7d5d1dd97f17..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceConfig.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig - */ -class TargetResourceConfig extends \Google\Protobuf\Internal\Message -{ - protected $resource_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $existing_target_resource - * Optional. The resource hierarchy node, in one of the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * @type \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig $target_resource_creation_config - * Optional. The details that are required to create a resource and use - * that resource as the target resource for deployment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource hierarchy node, in one of the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExistingTargetResource() - { - return $this->readOneof(1); - } - - public function hasExistingTargetResource() - { - return $this->hasOneof(1); - } - - /** - * Optional. The resource hierarchy node, in one of the following formats: - * - `organizations/{organizationID}` - * - `folders/{folderID}` - * - `projects/{projectID}` - * - * Generated from protobuf field string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExistingTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The details that are required to create a resource and use - * that resource as the target resource for deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig|null - */ - public function getTargetResourceCreationConfig() - { - return $this->readOneof(2); - } - - public function hasTargetResourceCreationConfig() - { - return $this->hasOneof(2); - } - - /** - * Optional. The details that are required to create a resource and use - * that resource as the target resource for deployment. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig $var - * @return $this - */ - public function setTargetResourceCreationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\TargetResourceCreationConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceConfig() - { - return $this->whichOneof("resource_config"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php deleted file mode 100644 index 4a6a034a53c0..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceCreationConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig - */ -class TargetResourceCreationConfig extends \Google\Protobuf\Internal\Message -{ - protected $resource_creation_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig $folder_creation_config - * Optional. The configuration that's required to create a folder. - * @type \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig $project_creation_config - * Optional. The configuration that's required to create a project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The configuration that's required to create a folder. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig folder_creation_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig|null - */ - public function getFolderCreationConfig() - { - return $this->readOneof(1); - } - - public function hasFolderCreationConfig() - { - return $this->hasOneof(1); - } - - /** - * Optional. The configuration that's required to create a folder. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig folder_creation_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig $var - * @return $this - */ - public function setFolderCreationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\FolderCreationConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The configuration that's required to create a project. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig project_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig|null - */ - public function getProjectCreationConfig() - { - return $this->readOneof(2); - } - - public function hasProjectCreationConfig() - { - return $this->hasOneof(2); - } - - /** - * Optional. The configuration that's required to create a project. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig project_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig $var - * @return $this - */ - public function setProjectCreationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\ProjectCreationConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceCreationConfig() - { - return $this->whichOneof("resource_creation_config"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php deleted file mode 100644 index e3bf7fed578b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceDetails.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails - */ -class TargetResourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The framework deployment name for the target resource. - * For example, - * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * - * Generated from protobuf field string framework_deployment = 1; - */ - protected $framework_deployment = ''; - /** - * The display name of the target resource. For example, `google.com`, - * `staging-project`, or `development-folder`. - * - * Generated from protobuf field string target_resource_display_name = 2; - */ - protected $target_resource_display_name = ''; - /** - * The target resource. For example, `organizations/1234567890`, - * `projects/1234567890`, or `folders/1234567890`. - * - * Generated from protobuf field string target_resource = 3; - */ - protected $target_resource = ''; - /** - * The create time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - */ - protected $create_time = null; - /** - * The update time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - */ - protected $update_time = null; - /** - * The major revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 major_revision_id = 6; - */ - protected $major_revision_id = 0; - /** - * The minor revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 minor_revision_id = 7; - */ - protected $minor_revision_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $framework_deployment - * The framework deployment name for the target resource. - * For example, - * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * @type string $target_resource_display_name - * The display name of the target resource. For example, `google.com`, - * `staging-project`, or `development-folder`. - * @type string $target_resource - * The target resource. For example, `organizations/1234567890`, - * `projects/1234567890`, or `folders/1234567890`. - * @type \Google\Protobuf\Timestamp $create_time - * The create time of the target resource. - * @type \Google\Protobuf\Timestamp $update_time - * The update time of the target resource. - * @type int|string $major_revision_id - * The major revision ID of the framework for the target resource. - * @type int|string $minor_revision_id - * The minor revision ID of the framework for the target resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The framework deployment name for the target resource. - * For example, - * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * - * Generated from protobuf field string framework_deployment = 1; - * @return string - */ - public function getFrameworkDeployment() - { - return $this->framework_deployment; - } - - /** - * The framework deployment name for the target resource. - * For example, - * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * - * Generated from protobuf field string framework_deployment = 1; - * @param string $var - * @return $this - */ - public function setFrameworkDeployment($var) - { - GPBUtil::checkString($var, True); - $this->framework_deployment = $var; - - return $this; - } - - /** - * The display name of the target resource. For example, `google.com`, - * `staging-project`, or `development-folder`. - * - * Generated from protobuf field string target_resource_display_name = 2; - * @return string - */ - public function getTargetResourceDisplayName() - { - return $this->target_resource_display_name; - } - - /** - * The display name of the target resource. For example, `google.com`, - * `staging-project`, or `development-folder`. - * - * Generated from protobuf field string target_resource_display_name = 2; - * @param string $var - * @return $this - */ - public function setTargetResourceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->target_resource_display_name = $var; - - return $this; - } - - /** - * The target resource. For example, `organizations/1234567890`, - * `projects/1234567890`, or `folders/1234567890`. - * - * Generated from protobuf field string target_resource = 3; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * The target resource. For example, `organizations/1234567890`, - * `projects/1234567890`, or `folders/1234567890`. - * - * Generated from protobuf field string target_resource = 3; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - - /** - * The create time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @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); - } - - /** - * The create time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The update time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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); - } - - /** - * The update time of the target resource. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The major revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 major_revision_id = 6; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * The major revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 major_revision_id = 6; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - - /** - * The minor revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 minor_revision_id = 7; - * @return int|string - */ - public function getMinorRevisionId() - { - return $this->minor_revision_id; - } - - /** - * The minor revision ID of the framework for the target resource. - * - * Generated from protobuf field int64 minor_revision_id = 7; - * @param int|string $var - * @return $this - */ - public function setMinorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->minor_revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php deleted file mode 100644 index 5b7fa808821f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/TargetResourceType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.TargetResourceType - */ -class TargetResourceType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TARGET_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const TARGET_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * The target resource is a Google Cloud organization. - * - * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_ORG = 1; - */ - const TARGET_RESOURCE_CRM_TYPE_ORG = 1; - /** - * The target resource is a folder. - * - * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; - */ - const TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; - /** - * The target resource is a project. - * - * Generated from protobuf enum TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; - */ - const TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; - /** - * The target resource is an application in App Hub. - * - * Generated from protobuf enum TARGET_RESOURCE_TYPE_APPLICATION = 4; - */ - const TARGET_RESOURCE_TYPE_APPLICATION = 4; - - private static $valueToName = [ - self::TARGET_RESOURCE_TYPE_UNSPECIFIED => 'TARGET_RESOURCE_TYPE_UNSPECIFIED', - self::TARGET_RESOURCE_CRM_TYPE_ORG => 'TARGET_RESOURCE_CRM_TYPE_ORG', - self::TARGET_RESOURCE_CRM_TYPE_FOLDER => 'TARGET_RESOURCE_CRM_TYPE_FOLDER', - self::TARGET_RESOURCE_CRM_TYPE_PROJECT => 'TARGET_RESOURCE_CRM_TYPE_PROJECT', - self::TARGET_RESOURCE_TYPE_APPLICATION => 'TARGET_RESOURCE_TYPE_APPLICATION', - ]; - - 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/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php deleted file mode 100644 index a961a88227f8..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCloudControlRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest - */ -class UpdateCloudControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Use a field mask to specify the fields to be overwritten in the - * cloud control during the update. - * The fields that you specify in the `update_mask` are relative to the - * cloud control, not the full request. A field is overwritten if it is in - * the mask. If you don't provide a mask, all fields in the request - * are updated. - * You can update the following fields: - * - Display name - * - Description - * - Parameters - * - Rules - * - Parameter specification - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The cloud control that you're updating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cloud_control = null; - - /** - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl Required. The cloud control that you're updating. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Use a field mask to specify the fields to be overwritten in the - * cloud control during the update. - * The fields that you specify in the `update_mask` are relative to the - * cloud control, not the full request. A field is overwritten if it is in - * the mask. If you don't provide a mask, all fields in the request - * are updated. - * - * You can update the following fields: - * - * - Display name - * - Description - * - Parameters - * - Rules - * - Parameter specification - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateCloudControlRequest - * - * @experimental - */ - public static function build(\Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloudControl, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCloudControl($cloudControl) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Use a field mask to specify the fields to be overwritten in the - * cloud control during the update. - * The fields that you specify in the `update_mask` are relative to the - * cloud control, not the full request. A field is overwritten if it is in - * the mask. If you don't provide a mask, all fields in the request - * are updated. - * You can update the following fields: - * - Display name - * - Description - * - Parameters - * - Rules - * - Parameter specification - * @type \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $cloud_control - * Required. The cloud control that you're updating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Use a field mask to specify the fields to be overwritten in the - * cloud control during the update. - * The fields that you specify in the `update_mask` are relative to the - * cloud control, not the full request. A field is overwritten if it is in - * the mask. If you don't provide a mask, all fields in the request - * are updated. - * You can update the following fields: - * - Display name - * - Description - * - Parameters - * - Rules - * - Parameter specification - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Use a field mask to specify the fields to be overwritten in the - * cloud control during the update. - * The fields that you specify in the `update_mask` are relative to the - * cloud control, not the full request. A field is overwritten if it is in - * the mask. If you don't provide a mask, all fields in the request - * are updated. - * You can update the following fields: - * - Display name - * - Description - * - Parameters - * - Rules - * - Parameter specification - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The cloud control that you're updating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CloudControl|null - */ - public function getCloudControl() - { - return $this->cloud_control; - } - - public function hasCloudControl() - { - return isset($this->cloud_control); - } - - public function clearCloudControl() - { - unset($this->cloud_control); - } - - /** - * Required. The cloud control that you're updating. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CloudControl cloud_control = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CloudControl $var - * @return $this - */ - public function setCloudControl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CloudControl::class); - $this->cloud_control = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php deleted file mode 100644 index 200bc438ac1d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateCmEnrollmentRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest - */ -class UpdateCmEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Compliance Manager enrollment to update. - * The `name` field is used to identify the settings that you want to update. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cm_enrollment = null; - /** - * Optional. The list of fields that you want to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cmEnrollment Required. The Compliance Manager enrollment to update. - * The `name` field is used to identify the settings that you want to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields that you want to update. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateCmEnrollmentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cmEnrollment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCmEnrollment($cmEnrollment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $cm_enrollment - * Required. The Compliance Manager enrollment to update. - * The `name` field is used to identify the settings that you want to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields that you want to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\CmEnrollmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Compliance Manager enrollment to update. - * The `name` field is used to identify the settings that you want to update. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment|null - */ - public function getCmEnrollment() - { - return $this->cm_enrollment; - } - - public function hasCmEnrollment() - { - return isset($this->cm_enrollment); - } - - public function clearCmEnrollment() - { - unset($this->cm_enrollment); - } - - /** - * Required. The Compliance Manager enrollment to update. - * The `name` field is used to identify the settings that you want to update. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment $var - * @return $this - */ - public function setCmEnrollment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment::class); - $this->cm_enrollment = $var; - - return $this; - } - - /** - * Optional. The list of fields that you want to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields that you want to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php deleted file mode 100644 index 49b76f63cba3..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/UpdateFrameworkRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest - */ -class UpdateFrameworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A field mask is used to specify the fields to be overwritten in - * the framework resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field - * is overwritten if it is in the mask. If you don't provide a mask then all - * fields present in the request will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource that is being updated. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $framework = null; - /** - * Optional. The major version ID of the framework to update. - * - * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $major_revision_id = 0; - - /** - * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework Required. The resource that is being updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. A field mask is used to specify the fields to be overwritten in - * the framework resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field - * is overwritten if it is in the mask. If you don't provide a mask then all - * fields present in the request will be overwritten. - * - * @return \Google\Cloud\CloudSecurityCompliance\V1\UpdateFrameworkRequest - * - * @experimental - */ - public static function build(\Google\Cloud\CloudSecurityCompliance\V1\Framework $framework, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFramework($framework) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. A field mask is used to specify the fields to be overwritten in - * the framework resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field - * is overwritten if it is in the mask. If you don't provide a mask then all - * fields present in the request will be overwritten. - * @type \Google\Cloud\CloudSecurityCompliance\V1\Framework $framework - * Required. The resource that is being updated. - * @type int|string $major_revision_id - * Optional. The major version ID of the framework to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Config::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A field mask is used to specify the fields to be overwritten in - * the framework resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field - * is overwritten if it is in the mask. If you don't provide a mask then all - * fields present in the request will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. A field mask is used to specify the fields to be overwritten in - * the framework resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field - * is overwritten if it is in the mask. If you don't provide a mask then all - * fields present in the request will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource that is being updated. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\CloudSecurityCompliance\V1\Framework|null - */ - public function getFramework() - { - return $this->framework; - } - - public function hasFramework() - { - return isset($this->framework); - } - - public function clearFramework() - { - unset($this->framework); - } - - /** - * Required. The resource that is being updated. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.Framework framework = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\CloudSecurityCompliance\V1\Framework $var - * @return $this - */ - public function setFramework($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\Framework::class); - $this->framework = $var; - - return $this; - } - - /** - * Optional. The major version ID of the framework to update. - * - * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMajorRevisionId() - { - return $this->major_revision_id; - } - - /** - * Optional. The major version ID of the framework to update. - * - * Generated from protobuf field int64 major_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMajorRevisionId($var) - { - GPBUtil::checkInt64($var); - $this->major_revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php b/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php deleted file mode 100644 index 297abad0de4e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/proto/src/Google/Cloud/CloudSecurityCompliance/V1/Validation.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.cloudsecuritycompliance.v1.Validation - */ -class Validation extends \Google\Protobuf\Internal\Message -{ - protected $constraint; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues $allowed_values - * The permitted set of values for the parameter. - * @type \Google\Cloud\CloudSecurityCompliance\V1\IntRange $int_range - * The permitted range for numeric parameters. - * @type \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern $regexp_pattern - * The regular expression for string parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Cloudsecuritycompliance\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The permitted set of values for the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; - * @return \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues|null - */ - public function getAllowedValues() - { - return $this->readOneof(1); - } - - public function hasAllowedValues() - { - return $this->hasOneof(1); - } - - /** - * The permitted set of values for the parameter. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; - * @param \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues $var - * @return $this - */ - public function setAllowedValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\AllowedValues::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The permitted range for numeric parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; - * @return \Google\Cloud\CloudSecurityCompliance\V1\IntRange|null - */ - public function getIntRange() - { - return $this->readOneof(2); - } - - public function hasIntRange() - { - return $this->hasOneof(2); - } - - /** - * The permitted range for numeric parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; - * @param \Google\Cloud\CloudSecurityCompliance\V1\IntRange $var - * @return $this - */ - public function setIntRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\IntRange::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The regular expression for string parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; - * @return \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern|null - */ - public function getRegexpPattern() - { - return $this->readOneof(3); - } - - public function hasRegexpPattern() - { - return $this->hasOneof(3); - } - - /** - * The regular expression for string parameters. - * - * Generated from protobuf field .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; - * @param \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern $var - * @return $this - */ - public function setRegexpPattern($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\CloudSecurityCompliance\V1\RegexpPattern::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getConstraint() - { - return $this->whichOneof("constraint"); - } - -} - diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php deleted file mode 100644 index c71a53b159de..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/create_framework_audit.php +++ /dev/null @@ -1,94 +0,0 @@ -setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); - $request = (new CreateFrameworkAuditRequest()) - ->setParent($formattedParent) - ->setFrameworkAudit($frameworkAudit); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $auditClient->createFrameworkAudit($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var FrameworkAudit $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = AuditClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_framework_audit_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php deleted file mode 100644 index 55133f2efd99..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/generate_framework_audit_scope_report.php +++ /dev/null @@ -1,86 +0,0 @@ -setScope($scope) - ->setReportFormat($reportFormat) - ->setComplianceFramework($complianceFramework); - - // Call the API and handle any network failures. - try { - /** @var GenerateFrameworkAuditScopeReportResponse $response */ - $response = $auditClient->generateFrameworkAuditScopeReport($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 -{ - $scope = '[SCOPE]'; - $reportFormat = Format::FORMAT_UNSPECIFIED; - $complianceFramework = '[COMPLIANCE_FRAMEWORK]'; - - generate_framework_audit_scope_report_sample($scope, $reportFormat, $complianceFramework); -} -// [END cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php deleted file mode 100644 index 3c51ae55ddc9..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_framework_audit.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FrameworkAudit $response */ - $response = $auditClient->getFrameworkAudit($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 = AuditClient::frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); - - get_framework_audit_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php deleted file mode 100644 index 71cbe6c7e1ec..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_Audit_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php deleted file mode 100644 index 6295524c20aa..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_framework_audits.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $auditClient->listFrameworkAudits($request); - - /** @var FrameworkAudit $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 = AuditClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_framework_audits_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php deleted file mode 100644 index b8188a907c20..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/AuditClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END cloudsecuritycompliance_v1_generated_Audit_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php deleted file mode 100644 index ecdc1cf01bac..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CalculateEffectiveCmEnrollmentResponse $response */ - $response = $cmEnrollmentServiceClient->calculateEffectiveCmEnrollment($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 = CmEnrollmentServiceClient::cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); - - calculate_effective_cm_enrollment_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php deleted file mode 100644 index ce51c4c6cda4..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php deleted file mode 100644 index fa7b3666a267..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php deleted file mode 100644 index 781c31dd89a5..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php +++ /dev/null @@ -1,62 +0,0 @@ -setCmEnrollment($cmEnrollment); - - // Call the API and handle any network failures. - try { - /** @var CmEnrollment $response */ - $response = $cmEnrollmentServiceClient->updateCmEnrollment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php deleted file mode 100644 index ca2fadbc6b56..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_cloud_control.php +++ /dev/null @@ -1,97 +0,0 @@ -setName($cloudControlName); - $request = (new CreateCloudControlRequest()) - ->setParent($formattedParent) - ->setCloudControlId($cloudControlId) - ->setCloudControl($cloudControl); - - // Call the API and handle any network failures. - try { - /** @var CloudControl $response */ - $response = $configClient->createCloudControl($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 -{ - $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $cloudControlId = '[CLOUD_CONTROL_ID]'; - $cloudControlName = '[NAME]'; - - create_cloud_control_sample($formattedParent, $cloudControlId, $cloudControlName); -} -// [END cloudsecuritycompliance_v1_generated_Config_CreateCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php deleted file mode 100644 index d23a38b3ce00..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/create_framework.php +++ /dev/null @@ -1,95 +0,0 @@ -setName($frameworkName); - $request = (new CreateFrameworkRequest()) - ->setParent($formattedParent) - ->setFrameworkId($frameworkId) - ->setFramework($framework); - - // Call the API and handle any network failures. - try { - /** @var Framework $response */ - $response = $configClient->createFramework($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 -{ - $formattedParent = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkId = '[FRAMEWORK_ID]'; - $frameworkName = '[NAME]'; - - create_framework_sample($formattedParent, $frameworkId, $frameworkName); -} -// [END cloudsecuritycompliance_v1_generated_Config_CreateFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php deleted file mode 100644 index 235e0fd186f5..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_cloud_control.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $configClient->deleteCloudControl($request); - printf('Call completed successfully.' . PHP_EOL); - } 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 = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - - delete_cloud_control_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Config_DeleteCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php deleted file mode 100644 index 481d9392318d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/delete_framework.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $configClient->deleteFramework($request); - printf('Call completed successfully.' . PHP_EOL); - } 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 = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - - delete_framework_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Config_DeleteFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php deleted file mode 100644 index 9a0c103234b1..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_cloud_control.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CloudControl $response */ - $response = $configClient->getCloudControl($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 = ConfigClient::cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - - get_cloud_control_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Config_GetCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php deleted file mode 100644 index 2fd2ac055713..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_framework.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Framework $response */ - $response = $configClient->getFramework($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 = ConfigClient::frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - - get_framework_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Config_GetFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php deleted file mode 100644 index 32e3219ab8b1..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_Config_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php deleted file mode 100644 index 0d69f96bcc07..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_cloud_controls.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $configClient->listCloudControls($request); - - /** @var CloudControl $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 = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_cloud_controls_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Config_ListCloudControls_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php deleted file mode 100644 index 2e50149dca3e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_frameworks.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $configClient->listFrameworks($request); - - /** @var Framework $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 = ConfigClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_frameworks_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Config_ListFrameworks_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php deleted file mode 100644 index 49b8aa31b6f6..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END cloudsecuritycompliance_v1_generated_Config_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php deleted file mode 100644 index 5d1374c694bb..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_cloud_control.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($cloudControlName); - $request = (new UpdateCloudControlRequest()) - ->setCloudControl($cloudControl); - - // Call the API and handle any network failures. - try { - /** @var CloudControl $response */ - $response = $configClient->updateCloudControl($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 -{ - $cloudControlName = '[NAME]'; - - update_cloud_control_sample($cloudControlName); -} -// [END cloudsecuritycompliance_v1_generated_Config_UpdateCloudControl_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php deleted file mode 100644 index 5eddb740a879..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/ConfigClient/update_framework.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($frameworkName); - $request = (new UpdateFrameworkRequest()) - ->setFramework($framework); - - // Call the API and handle any network failures. - try { - /** @var Framework $response */ - $response = $configClient->updateFramework($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 -{ - $frameworkName = '[NAME]'; - - update_framework_sample($frameworkName); -} -// [END cloudsecuritycompliance_v1_generated_Config_UpdateFramework_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php deleted file mode 100644 index a1d2e64153b1..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/create_framework_deployment.php +++ /dev/null @@ -1,140 +0,0 @@ -setFramework($formattedFrameworkDeploymentFrameworkFramework); - $frameworkDeploymentCloudControlMetadataCloudControlDetails = (new CloudControlDetails()) - ->setName($frameworkDeploymentCloudControlMetadataCloudControlDetailsName) - ->setMajorRevisionId($frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId); - $cloudControlMetadata = (new CloudControlMetadata()) - ->setCloudControlDetails($frameworkDeploymentCloudControlMetadataCloudControlDetails) - ->setEnforcementMode($frameworkDeploymentCloudControlMetadataEnforcementMode); - $frameworkDeploymentCloudControlMetadata = [$cloudControlMetadata,]; - $frameworkDeployment = (new FrameworkDeployment()) - ->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig) - ->setFramework($frameworkDeploymentFramework) - ->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); - $request = (new CreateFrameworkDeploymentRequest()) - ->setParent($formattedParent) - ->setFrameworkDeployment($frameworkDeployment); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $deploymentClient->createFrameworkDeployment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var FrameworkDeployment $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $formattedFrameworkDeploymentFrameworkFramework = DeploymentClient::frameworkName( - '[ORGANIZATION]', - '[LOCATION]', - '[FRAMEWORK]' - ); - $frameworkDeploymentCloudControlMetadataCloudControlDetailsName = '[NAME]'; - $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId = 0; - $frameworkDeploymentCloudControlMetadataEnforcementMode = EnforcementMode::ENFORCEMENT_MODE_UNSPECIFIED; - - create_framework_deployment_sample( - $formattedParent, - $formattedFrameworkDeploymentFrameworkFramework, - $frameworkDeploymentCloudControlMetadataCloudControlDetailsName, - $frameworkDeploymentCloudControlMetadataCloudControlDetailsMajorRevisionId, - $frameworkDeploymentCloudControlMetadataEnforcementMode - ); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_CreateFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php deleted file mode 100644 index 32ca57b08833..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/delete_framework_deployment.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $deploymentClient->deleteFrameworkDeployment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 = DeploymentClient::frameworkDeploymentName( - '[ORGANIZATION]', - '[LOCATION]', - '[FRAMEWORK_DEPLOYMENT]' - ); - - delete_framework_deployment_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_DeleteFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php deleted file mode 100644 index 716a08f0285d..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_cloud_control_deployment.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CloudControlDeployment $response */ - $response = $deploymentClient->getCloudControlDeployment($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 = DeploymentClient::cloudControlDeploymentName( - '[ORGANIZATION]', - '[LOCATION]', - '[CLOUD_CONTROL_DEPLOYMENT]' - ); - - get_cloud_control_deployment_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_GetCloudControlDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php deleted file mode 100644 index a918d6bf93dc..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_framework_deployment.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FrameworkDeployment $response */ - $response = $deploymentClient->getFrameworkDeployment($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 = DeploymentClient::frameworkDeploymentName( - '[ORGANIZATION]', - '[LOCATION]', - '[FRAMEWORK_DEPLOYMENT]' - ); - - get_framework_deployment_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_GetFrameworkDeployment_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php deleted file mode 100644 index aa586cbd5e61..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_Deployment_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php deleted file mode 100644 index 8153297a7340..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_cloud_control_deployments.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $deploymentClient->listCloudControlDeployments($request); - - /** @var CloudControlDeployment $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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_cloud_control_deployments_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_ListCloudControlDeployments_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php deleted file mode 100644 index cce4749f2858..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_framework_deployments.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $deploymentClient->listFrameworkDeployments($request); - - /** @var FrameworkDeployment $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 = DeploymentClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_framework_deployments_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Deployment_ListFrameworkDeployments_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php deleted file mode 100644 index db2ca534275e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/DeploymentClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END cloudsecuritycompliance_v1_generated_Deployment_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php deleted file mode 100644 index 603892f40f53..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/aggregate_framework_compliance_report.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AggregateFrameworkComplianceReportResponse $response */ - $response = $monitoringClient->aggregateFrameworkComplianceReport($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 = MonitoringClient::frameworkComplianceReportName( - '[PROJECT]', - '[LOCATION]', - '[FRAMEWORK_COMPLIANCE_REPORT]' - ); - - aggregate_framework_compliance_report_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php deleted file mode 100644 index 7f85c58e96f2..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/fetch_framework_compliance_report.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FrameworkComplianceReport $response */ - $response = $monitoringClient->fetchFrameworkComplianceReport($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 = MonitoringClient::frameworkComplianceReportName( - '[PROJECT]', - '[LOCATION]', - '[FRAMEWORK_COMPLIANCE_REPORT]' - ); - - fetch_framework_compliance_report_sample($formattedName); -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php deleted file mode 100644 index dc465ba72942..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php deleted file mode 100644 index ffa69884e3c4..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_control_compliance_summaries.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $monitoringClient->listControlComplianceSummaries($request); - - /** @var ControlComplianceSummary $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 = MonitoringClient::frameworkComplianceReportName( - '[PROJECT]', - '[LOCATION]', - '[FRAMEWORK_COMPLIANCE_REPORT]' - ); - - list_control_compliance_summaries_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php deleted file mode 100644 index 6de4274d2678..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_finding_summaries.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $monitoringClient->listFindingSummaries($request); - - /** @var FindingSummary $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 = MonitoringClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_finding_summaries_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php deleted file mode 100644 index 3369116504da..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_framework_compliance_summaries.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $monitoringClient->listFrameworkComplianceSummaries($request); - - /** @var FrameworkComplianceSummary $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 = MonitoringClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_framework_compliance_summaries_sample($formattedParent); -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php b/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php deleted file mode 100644 index b3ba2331dfe9..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/samples/V1/MonitoringClient/list_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -listLocations($request); - - /** @var Location $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()); - } -} -// [END cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_sync] diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php deleted file mode 100644 index a26b02695978..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/AuditClient.php +++ /dev/null @@ -1,544 +0,0 @@ - createFrameworkAuditAsync(CreateFrameworkAuditRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateFrameworkAuditScopeReportAsync(GenerateFrameworkAuditScopeReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFrameworkAuditAsync(GetFrameworkAuditRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFrameworkAuditsAsync(ListFrameworkAuditsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class AuditClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Audit'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/audit_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/audit_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/audit_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/audit_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * framework_audit resource. - * - * @param string $project - * @param string $location - * @param string $frameworkAudit - * - * @return string The formatted framework_audit resource. - */ - public static function frameworkAuditName(string $project, string $location, string $frameworkAudit): string - { - return self::getPathTemplate('frameworkAudit')->render([ - 'project' => $project, - 'location' => $location, - 'framework_audit' => $frameworkAudit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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. - */ - 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 - * organization_location_framework_audit resource. - * - * @param string $organization - * @param string $location - * @param string $frameworkAudit - * - * @return string The formatted organization_location_framework_audit resource. - */ - public static function organizationLocationFrameworkAuditName(string $organization, string $location, string $frameworkAudit): string - { - return self::getPathTemplate('organizationLocationFrameworkAudit')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework_audit' => $frameworkAudit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_framework_audit resource. - * - * @param string $project - * @param string $location - * @param string $frameworkAudit - * - * @return string The formatted project_location_framework_audit resource. - */ - public static function projectLocationFrameworkAuditName(string $project, string $location, string $frameworkAudit): string - { - return self::getPathTemplate('projectLocationFrameworkAudit')->render([ - 'project' => $project, - 'location' => $location, - 'framework_audit' => $frameworkAudit, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - frameworkAudit: projects/{project}/locations/{location}/frameworkAudits/{framework_audit} - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationFrameworkAudit: organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit} - * - projectLocationFrameworkAudit: projects/{project}/locations/{location}/frameworkAudits/{framework_audit} - * - * 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. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\CloudSecurityCompliance\V1\AuditClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new AuditClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @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. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($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); - } - - /** - * Creates an audit scope report for a framework. - * - * The async variant is {@see AuditClient::createFrameworkAuditAsync()} . - * - * @example samples/V1/AuditClient/create_framework_audit.php - * - * @param CreateFrameworkAuditRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFrameworkAudit(CreateFrameworkAuditRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFrameworkAudit', $request, $callOptions)->wait(); - } - - /** - * Generates an audit scope report for a framework. - * - * The async variant is - * {@see AuditClient::generateFrameworkAuditScopeReportAsync()} . - * - * @example samples/V1/AuditClient/generate_framework_audit_scope_report.php - * - * @param GenerateFrameworkAuditScopeReportRequest $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 GenerateFrameworkAuditScopeReportResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateFrameworkAuditScopeReport(GenerateFrameworkAuditScopeReportRequest $request, array $callOptions = []): GenerateFrameworkAuditScopeReportResponse - { - return $this->startApiCall('GenerateFrameworkAuditScopeReport', $request, $callOptions)->wait(); - } - - /** - * Gets the details for a framework audit. - * - * The async variant is {@see AuditClient::getFrameworkAuditAsync()} . - * - * @example samples/V1/AuditClient/get_framework_audit.php - * - * @param GetFrameworkAuditRequest $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 FrameworkAudit - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFrameworkAudit(GetFrameworkAuditRequest $request, array $callOptions = []): FrameworkAudit - { - return $this->startApiCall('GetFrameworkAudit', $request, $callOptions)->wait(); - } - - /** - * Lists the framework audits for a given organization, folder, or project. - * - * The async variant is {@see AuditClient::listFrameworkAuditsAsync()} . - * - * @example samples/V1/AuditClient/list_framework_audits.php - * - * @param ListFrameworkAuditsRequest $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. - */ - public function listFrameworkAudits(ListFrameworkAuditsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFrameworkAudits', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see AuditClient::getLocationAsync()} . - * - * @example samples/V1/AuditClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see AuditClient::listLocationsAsync()} . - * - * @example samples/V1/AuditClient/list_locations.php - * - * @param ListLocationsRequest $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. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php deleted file mode 100644 index b07e35538e03..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/CmEnrollmentServiceClient.php +++ /dev/null @@ -1,400 +0,0 @@ - calculateEffectiveCmEnrollmentAsync(CalculateEffectiveCmEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCmEnrollmentAsync(UpdateCmEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class CmEnrollmentServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cm_enrollment_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cm_enrollment_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * cm_enrollment resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted cm_enrollment resource. - */ - public static function cmEnrollmentName(string $organization, string $location): string - { - return self::getPathTemplate('cmEnrollment')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_cmEnrollment resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location_cmEnrollment resource. - */ - public static function organizationLocationCmEnrollmentName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocationCmEnrollment')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_cmEnrollment resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted project_location_cmEnrollment resource. - */ - public static function projectLocationCmEnrollmentName(string $project, string $location): string - { - return self::getPathTemplate('projectLocationCmEnrollment')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - cmEnrollment: organizations/{organization}/locations/{location}/cmEnrollment - * - organizationLocationCmEnrollment: organizations/{organization}/locations/{location}/cmEnrollment - * - projectLocationCmEnrollment: projects/{project}/locations/{location}/cmEnrollment - * - * 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. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\CloudSecurityCompliance\V1\CmEnrollmentServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CmEnrollmentServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @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. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $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); - } - - /** - * Calculates the effective Compliance Manager enrollment for a resource. - * An effective enrollment is either a direct enrollment of a - * resource (if it exists), or an enrollment of the closest parent of a - * resource that's enrolled in Compliance Manager. - * - * The async variant is - * {@see CmEnrollmentServiceClient::calculateEffectiveCmEnrollmentAsync()} . - * - * @example samples/V1/CmEnrollmentServiceClient/calculate_effective_cm_enrollment.php - * - * @param CalculateEffectiveCmEnrollmentRequest $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 CalculateEffectiveCmEnrollmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function calculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest $request, array $callOptions = []): CalculateEffectiveCmEnrollmentResponse - { - return $this->startApiCall('CalculateEffectiveCmEnrollment', $request, $callOptions)->wait(); - } - - /** - * Updates the Compliance Manager enrollment for a resource to facilitate - * an audit. - * Use this method to enroll a resource in Compliance Manager or to - * create or update feature-specific configurations. - * - * The async variant is {@see CmEnrollmentServiceClient::updateCmEnrollmentAsync()} - * . - * - * @example samples/V1/CmEnrollmentServiceClient/update_cm_enrollment.php - * - * @param UpdateCmEnrollmentRequest $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 CmEnrollment - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCmEnrollment(UpdateCmEnrollmentRequest $request, array $callOptions = []): CmEnrollment - { - return $this->startApiCall('UpdateCmEnrollment', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see CmEnrollmentServiceClient::getLocationAsync()} . - * - * @example samples/V1/CmEnrollmentServiceClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see CmEnrollmentServiceClient::listLocationsAsync()} . - * - * @example samples/V1/CmEnrollmentServiceClient/list_locations.php - * - * @param ListLocationsRequest $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. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php deleted file mode 100644 index bc1836f86f54..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/ConfigClient.php +++ /dev/null @@ -1,770 +0,0 @@ - createCloudControlAsync(CreateCloudControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFrameworkAsync(CreateFrameworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteCloudControlAsync(DeleteCloudControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFrameworkAsync(DeleteFrameworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCloudControlAsync(GetCloudControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFrameworkAsync(GetFrameworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCloudControlsAsync(ListCloudControlsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFrameworksAsync(ListFrameworksRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCloudControlAsync(UpdateCloudControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFrameworkAsync(UpdateFrameworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ConfigClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Config'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/config_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/config_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/config_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/config_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * cloud_control resource. - * - * @param string $organization - * @param string $location - * @param string $cloudControl - * - * @return string The formatted cloud_control resource. - */ - public static function cloudControlName(string $organization, string $location, string $cloudControl): string - { - return self::getPathTemplate('cloudControl')->render([ - 'organization' => $organization, - 'location' => $location, - 'cloud_control' => $cloudControl, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a framework - * resource. - * - * @param string $organization - * @param string $location - * @param string $framework - * - * @return string The formatted framework resource. - */ - public static function frameworkName(string $organization, string $location, string $framework): string - { - return self::getPathTemplate('framework')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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. - */ - 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 - * organization_location_cloud_control resource. - * - * @param string $organization - * @param string $location - * @param string $cloudControl - * - * @return string The formatted organization_location_cloud_control resource. - */ - public static function organizationLocationCloudControlName(string $organization, string $location, string $cloudControl): string - { - return self::getPathTemplate('organizationLocationCloudControl')->render([ - 'organization' => $organization, - 'location' => $location, - 'cloud_control' => $cloudControl, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_framework resource. - * - * @param string $organization - * @param string $location - * @param string $framework - * - * @return string The formatted organization_location_framework resource. - */ - public static function organizationLocationFrameworkName(string $organization, string $location, string $framework): string - { - return self::getPathTemplate('organizationLocationFramework')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_cloud_control resource. - * - * @param string $project - * @param string $location - * @param string $cloudControl - * - * @return string The formatted project_location_cloud_control resource. - */ - public static function projectLocationCloudControlName(string $project, string $location, string $cloudControl): string - { - return self::getPathTemplate('projectLocationCloudControl')->render([ - 'project' => $project, - 'location' => $location, - 'cloud_control' => $cloudControl, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_framework resource. - * - * @param string $project - * @param string $location - * @param string $framework - * - * @return string The formatted project_location_framework resource. - */ - public static function projectLocationFrameworkName(string $project, string $location, string $framework): string - { - return self::getPathTemplate('projectLocationFramework')->render([ - 'project' => $project, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - cloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} - * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationCloudControl: organizations/{organization}/locations/{location}/cloudControls/{cloud_control} - * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} - * - projectLocationCloudControl: projects/{project}/locations/{location}/cloudControls/{cloud_control} - * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} - * - * 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. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\CloudSecurityCompliance\V1\ConfigClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ConfigClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @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. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $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); - } - - /** - * Creates a custom cloud control in a given parent - * resource. - * You can't create built-in cloud controls because those are managed by - * Google. - * - * The async variant is {@see ConfigClient::createCloudControlAsync()} . - * - * @example samples/V1/ConfigClient/create_cloud_control.php - * - * @param CreateCloudControlRequest $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 CloudControl - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCloudControl(CreateCloudControlRequest $request, array $callOptions = []): CloudControl - { - return $this->startApiCall('CreateCloudControl', $request, $callOptions)->wait(); - } - - /** - * Creates a custom framework in a given parent resource. - * You can't create built-in frameworks because those are managed by - * Google. - * - * The async variant is {@see ConfigClient::createFrameworkAsync()} . - * - * @example samples/V1/ConfigClient/create_framework.php - * - * @param CreateFrameworkRequest $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 Framework - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFramework(CreateFrameworkRequest $request, array $callOptions = []): Framework - { - return $this->startApiCall('CreateFramework', $request, $callOptions)->wait(); - } - - /** - * Deletes a custom cloud control, including all its - * major and minor revisions. Consider the following: - * - * - You can't delete built-in cloud controls. You can only delete cloud - * controls with type `CUSTOM`. - * - You can't delete cloud controls if any of the versions are referenced - * by a framework. - * - You can't restore a deleted cloud control. This action is permanent. - * - * The async variant is {@see ConfigClient::deleteCloudControlAsync()} . - * - * @example samples/V1/ConfigClient/delete_cloud_control.php - * - * @param DeleteCloudControlRequest $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. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCloudControl(DeleteCloudControlRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteCloudControl', $request, $callOptions)->wait(); - } - - /** - * Deletes a custom framework, including all its major and - * minor revisions. Consider the following: - * - * - You can't delete built-in frameworks. You can only delete frameworks - * with type `CUSTOM`. - * - You can't delete frameworks that are deployed to a resource. - * - You can't restore a deleted framework. This action is permanent. - * - * The async variant is {@see ConfigClient::deleteFrameworkAsync()} . - * - * @example samples/V1/ConfigClient/delete_framework.php - * - * @param DeleteFrameworkRequest $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. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFramework(DeleteFrameworkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFramework', $request, $callOptions)->wait(); - } - - /** - * Gets details about a cloud control. - * This method retrieves the latest major version of a cloud control that - * you identify by name. - * - * By default, the latest major version of the cloud control is returned. - * To retrieve a specific major version, include `major_revision_id` in - * the request. - * - * The async variant is {@see ConfigClient::getCloudControlAsync()} . - * - * @example samples/V1/ConfigClient/get_cloud_control.php - * - * @param GetCloudControlRequest $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 CloudControl - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCloudControl(GetCloudControlRequest $request, array $callOptions = []): CloudControl - { - return $this->startApiCall('GetCloudControl', $request, $callOptions)->wait(); - } - - /** - * Gets details about a framework. - * This method retrieves the latest major version of the framework. - * - * To retrieve a specific major version, include `major_revision_id` in - * the request. - * - * The async variant is {@see ConfigClient::getFrameworkAsync()} . - * - * @example samples/V1/ConfigClient/get_framework.php - * - * @param GetFrameworkRequest $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 Framework - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFramework(GetFrameworkRequest $request, array $callOptions = []): Framework - { - return $this->startApiCall('GetFramework', $request, $callOptions)->wait(); - } - - /** - * Lists the cloud controls (both built-in and custom) that are available - * in a given parent resource. The latest major version of each cloud control - * is returned. - * This method supports pagination. - * - * The async variant is {@see ConfigClient::listCloudControlsAsync()} . - * - * @example samples/V1/ConfigClient/list_cloud_controls.php - * - * @param ListCloudControlsRequest $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. - */ - public function listCloudControls(ListCloudControlsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCloudControls', $request, $callOptions); - } - - /** - * Lists the frameworks (both built-in and custom) that are available within - * the parent resource. The latest major version of each framework is - * returned. - * This method supports pagination. - * - * The async variant is {@see ConfigClient::listFrameworksAsync()} . - * - * @example samples/V1/ConfigClient/list_frameworks.php - * - * @param ListFrameworksRequest $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. - */ - public function listFrameworks(ListFrameworksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFrameworks', $request, $callOptions); - } - - /** - * Updates a custom cloud control. - * This method allows for partial updates of a cloud control. Use the - * `update_mask` to specify which fields to update. Consider the following: - * - * - If you provide an `update_mask`, only the fields that are specified - * in the mask are updated. - * - If you don't provide an `update_mask`, all the fields that are present - * in the request's `cloud_control` body are used to overwrite the existing - * resource. - * - * You can only update cloud controls with the `CUSTOM` type. - * A successful update creates a new version of the cloud control. - * - * The async variant is {@see ConfigClient::updateCloudControlAsync()} . - * - * @example samples/V1/ConfigClient/update_cloud_control.php - * - * @param UpdateCloudControlRequest $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 CloudControl - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCloudControl(UpdateCloudControlRequest $request, array $callOptions = []): CloudControl - { - return $this->startApiCall('UpdateCloudControl', $request, $callOptions)->wait(); - } - - /** - * Updates a custom framework. - * This method allows for partial updates of a framework. Use the - * `update_mask` to specify which fields to update. Consider the following: - * - * - If you provide an `update_mask`, only the fields that are specified - * in the mask are updated. - * - If you don't provide an `update_mask`, all the fields that are present - * in the request's `framework` body are used to overwrite the existing - * resource. - * - * You can only update frameworks with the `CUSTOM` type. - * A successful update creates a new version of the framework. - * - * The async variant is {@see ConfigClient::updateFrameworkAsync()} . - * - * @example samples/V1/ConfigClient/update_framework.php - * - * @param UpdateFrameworkRequest $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 Framework - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFramework(UpdateFrameworkRequest $request, array $callOptions = []): Framework - { - return $this->startApiCall('UpdateFramework', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ConfigClient::getLocationAsync()} . - * - * @example samples/V1/ConfigClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see ConfigClient::listLocationsAsync()} . - * - * @example samples/V1/ConfigClient/list_locations.php - * - * @param ListLocationsRequest $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. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php deleted file mode 100644 index fd2797c6020b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/DeploymentClient.php +++ /dev/null @@ -1,724 +0,0 @@ - createFrameworkDeploymentAsync(CreateFrameworkDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFrameworkDeploymentAsync(DeleteFrameworkDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCloudControlDeploymentAsync(GetCloudControlDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFrameworkDeploymentAsync(GetFrameworkDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCloudControlDeploymentsAsync(ListCloudControlDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFrameworkDeploymentsAsync(ListFrameworkDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DeploymentClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Deployment'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/deployment_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/deployment_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/deployment_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/deployment_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * cloud_control_deployment resource. - * - * @param string $organization - * @param string $location - * @param string $cloudControlDeployment - * - * @return string The formatted cloud_control_deployment resource. - */ - public static function cloudControlDeploymentName(string $organization, string $location, string $cloudControlDeployment): string - { - return self::getPathTemplate('cloudControlDeployment')->render([ - 'organization' => $organization, - 'location' => $location, - 'cloud_control_deployment' => $cloudControlDeployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a framework - * resource. - * - * @param string $organization - * @param string $location - * @param string $framework - * - * @return string The formatted framework resource. - */ - public static function frameworkName(string $organization, string $location, string $framework): string - { - return self::getPathTemplate('framework')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * framework_deployment resource. - * - * @param string $organization - * @param string $location - * @param string $frameworkDeployment - * - * @return string The formatted framework_deployment resource. - */ - public static function frameworkDeploymentName(string $organization, string $location, string $frameworkDeployment): string - { - return self::getPathTemplate('frameworkDeployment')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework_deployment' => $frameworkDeployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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. - */ - 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 - * organization_location_cloud_control_deployment resource. - * - * @param string $organization - * @param string $location - * @param string $cloudControlDeployment - * - * @return string The formatted organization_location_cloud_control_deployment resource. - */ - public static function organizationLocationCloudControlDeploymentName(string $organization, string $location, string $cloudControlDeployment): string - { - return self::getPathTemplate('organizationLocationCloudControlDeployment')->render([ - 'organization' => $organization, - 'location' => $location, - 'cloud_control_deployment' => $cloudControlDeployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_framework resource. - * - * @param string $organization - * @param string $location - * @param string $framework - * - * @return string The formatted organization_location_framework resource. - */ - public static function organizationLocationFrameworkName(string $organization, string $location, string $framework): string - { - return self::getPathTemplate('organizationLocationFramework')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_framework_deployment resource. - * - * @param string $organization - * @param string $location - * @param string $frameworkDeployment - * - * @return string The formatted organization_location_framework_deployment resource. - */ - public static function organizationLocationFrameworkDeploymentName(string $organization, string $location, string $frameworkDeployment): string - { - return self::getPathTemplate('organizationLocationFrameworkDeployment')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework_deployment' => $frameworkDeployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_cloud_control_deployment resource. - * - * @param string $project - * @param string $location - * @param string $cloudControlDeployment - * - * @return string The formatted project_location_cloud_control_deployment resource. - */ - public static function projectLocationCloudControlDeploymentName(string $project, string $location, string $cloudControlDeployment): string - { - return self::getPathTemplate('projectLocationCloudControlDeployment')->render([ - 'project' => $project, - 'location' => $location, - 'cloud_control_deployment' => $cloudControlDeployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_framework resource. - * - * @param string $project - * @param string $location - * @param string $framework - * - * @return string The formatted project_location_framework resource. - */ - public static function projectLocationFrameworkName(string $project, string $location, string $framework): string - { - return self::getPathTemplate('projectLocationFramework')->render([ - 'project' => $project, - 'location' => $location, - 'framework' => $framework, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_framework_deployment resource. - * - * @param string $project - * @param string $location - * @param string $frameworkDeployment - * - * @return string The formatted project_location_framework_deployment resource. - */ - public static function projectLocationFrameworkDeploymentName(string $project, string $location, string $frameworkDeployment): string - { - return self::getPathTemplate('projectLocationFrameworkDeployment')->render([ - 'project' => $project, - 'location' => $location, - 'framework_deployment' => $frameworkDeployment, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - cloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} - * - framework: organizations/{organization}/locations/{location}/frameworks/{framework} - * - frameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationCloudControlDeployment: organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} - * - organizationLocationFramework: organizations/{organization}/locations/{location}/frameworks/{framework} - * - organizationLocationFrameworkDeployment: organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment} - * - projectLocationCloudControlDeployment: projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment} - * - projectLocationFramework: projects/{project}/locations/{location}/frameworks/{framework} - * - projectLocationFrameworkDeployment: projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment} - * - * 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. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\CloudSecurityCompliance\V1\DeploymentClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DeploymentClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @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. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($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); - } - - /** - * Creates a framework deployment in a given parent resource. A - * framework deployment lets you assign a particular framework version to an - * organization, folder, or project so that you can control and monitor - * those resources using the framework's cloud controls. - * - * The async variant is {@see DeploymentClient::createFrameworkDeploymentAsync()} . - * - * @example samples/V1/DeploymentClient/create_framework_deployment.php - * - * @param CreateFrameworkDeploymentRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFrameworkDeployment(CreateFrameworkDeploymentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFrameworkDeployment', $request, $callOptions)->wait(); - } - - /** - * Deletes a framework deployment. - * - * The async variant is {@see DeploymentClient::deleteFrameworkDeploymentAsync()} . - * - * @example samples/V1/DeploymentClient/delete_framework_deployment.php - * - * @param DeleteFrameworkDeploymentRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFrameworkDeployment(DeleteFrameworkDeploymentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFrameworkDeployment', $request, $callOptions)->wait(); - } - - /** - * Gets details about a cloud control deployment. - * - * The async variant is {@see DeploymentClient::getCloudControlDeploymentAsync()} . - * - * @example samples/V1/DeploymentClient/get_cloud_control_deployment.php - * - * @param GetCloudControlDeploymentRequest $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 CloudControlDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCloudControlDeployment(GetCloudControlDeploymentRequest $request, array $callOptions = []): CloudControlDeployment - { - return $this->startApiCall('GetCloudControlDeployment', $request, $callOptions)->wait(); - } - - /** - * Gets details about a framework deployment. - * - * The async variant is {@see DeploymentClient::getFrameworkDeploymentAsync()} . - * - * @example samples/V1/DeploymentClient/get_framework_deployment.php - * - * @param GetFrameworkDeploymentRequest $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 FrameworkDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFrameworkDeployment(GetFrameworkDeploymentRequest $request, array $callOptions = []): FrameworkDeployment - { - return $this->startApiCall('GetFrameworkDeployment', $request, $callOptions)->wait(); - } - - /** - * Lists the cloud conrol deployments in a given parent resource. - * - * The async variant is {@see DeploymentClient::listCloudControlDeploymentsAsync()} - * . - * - * @example samples/V1/DeploymentClient/list_cloud_control_deployments.php - * - * @param ListCloudControlDeploymentsRequest $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. - */ - public function listCloudControlDeployments(ListCloudControlDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCloudControlDeployments', $request, $callOptions); - } - - /** - * Lists the framework deployments in a given parent resource. - * - * The async variant is {@see DeploymentClient::listFrameworkDeploymentsAsync()} . - * - * @example samples/V1/DeploymentClient/list_framework_deployments.php - * - * @param ListFrameworkDeploymentsRequest $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. - */ - public function listFrameworkDeployments(ListFrameworkDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFrameworkDeployments', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DeploymentClient::getLocationAsync()} . - * - * @example samples/V1/DeploymentClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DeploymentClient::listLocationsAsync()} . - * - * @example samples/V1/DeploymentClient/list_locations.php - * - * @param ListLocationsRequest $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. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php deleted file mode 100644 index 3da0430ed283..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/Client/MonitoringClient.php +++ /dev/null @@ -1,559 +0,0 @@ - aggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface listControlComplianceSummariesAsync(ListControlComplianceSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFindingSummariesAsync(ListFindingSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFrameworkComplianceSummariesAsync(ListFrameworkComplianceSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class MonitoringClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.cloudsecuritycompliance.v1.Monitoring'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudsecuritycompliance.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudsecuritycompliance.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/monitoring_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/monitoring_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/monitoring_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/monitoring_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_location resource. - * - * @param string $folder - * @param string $location - * - * @return string The formatted folder_location resource. - */ - public static function folderLocationName(string $folder, string $location): string - { - return self::getPathTemplate('folderLocation')->render([ - 'folder' => $folder, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_location_framework_compliance_report resource. - * - * @param string $folder - * @param string $location - * @param string $frameworkComplianceReport - * - * @return string The formatted folder_location_framework_compliance_report resource. - */ - public static function folderLocationFrameworkComplianceReportName(string $folder, string $location, string $frameworkComplianceReport): string - { - return self::getPathTemplate('folderLocationFrameworkComplianceReport')->render([ - 'folder' => $folder, - 'location' => $location, - 'framework_compliance_report' => $frameworkComplianceReport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * framework_compliance_report resource. - * - * @param string $project - * @param string $location - * @param string $frameworkComplianceReport - * - * @return string The formatted framework_compliance_report resource. - */ - public static function frameworkComplianceReportName(string $project, string $location, string $frameworkComplianceReport): string - { - return self::getPathTemplate('frameworkComplianceReport')->render([ - 'project' => $project, - 'location' => $location, - 'framework_compliance_report' => $frameworkComplianceReport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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. - */ - 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 - * organization_location_framework_compliance_report resource. - * - * @param string $organization - * @param string $location - * @param string $frameworkComplianceReport - * - * @return string The formatted organization_location_framework_compliance_report resource. - */ - public static function organizationLocationFrameworkComplianceReportName(string $organization, string $location, string $frameworkComplianceReport): string - { - return self::getPathTemplate('organizationLocationFrameworkComplianceReport')->render([ - 'organization' => $organization, - 'location' => $location, - 'framework_compliance_report' => $frameworkComplianceReport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_framework_compliance_report resource. - * - * @param string $project - * @param string $location - * @param string $frameworkComplianceReport - * - * @return string The formatted project_location_framework_compliance_report resource. - */ - public static function projectLocationFrameworkComplianceReportName(string $project, string $location, string $frameworkComplianceReport): string - { - return self::getPathTemplate('projectLocationFrameworkComplianceReport')->render([ - 'project' => $project, - 'location' => $location, - 'framework_compliance_report' => $frameworkComplianceReport, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - folderLocation: folders/{folder}/locations/{location} - * - folderLocationFrameworkComplianceReport: folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} - * - frameworkComplianceReport: projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} - * - location: projects/{project}/locations/{location} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationFrameworkComplianceReport: organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} - * - projectLocationFrameworkComplianceReport: projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report} - * - * 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. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $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 'cloudsecuritycompliance.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\CloudSecurityCompliance\V1\MonitoringClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new MonitoringClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @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. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $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 the aggregated compliance report over time for a given scope. - * - * The async variant is - * {@see MonitoringClient::aggregateFrameworkComplianceReportAsync()} . - * - * @example samples/V1/MonitoringClient/aggregate_framework_compliance_report.php - * - * @param AggregateFrameworkComplianceReportRequest $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 AggregateFrameworkComplianceReportResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function aggregateFrameworkComplianceReport(AggregateFrameworkComplianceReportRequest $request, array $callOptions = []): AggregateFrameworkComplianceReportResponse - { - return $this->startApiCall('AggregateFrameworkComplianceReport', $request, $callOptions)->wait(); - } - - /** - * Fetches the framework compliance report for a given scope. - * - * The async variant is - * {@see MonitoringClient::fetchFrameworkComplianceReportAsync()} . - * - * @example samples/V1/MonitoringClient/fetch_framework_compliance_report.php - * - * @param FetchFrameworkComplianceReportRequest $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 FrameworkComplianceReport - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest $request, array $callOptions = []): FrameworkComplianceReport - { - return $this->startApiCall('FetchFrameworkComplianceReport', $request, $callOptions)->wait(); - } - - /** - * Lists the control compliance summary for a given scope. - * - * The async variant is - * {@see MonitoringClient::listControlComplianceSummariesAsync()} . - * - * @example samples/V1/MonitoringClient/list_control_compliance_summaries.php - * - * @param ListControlComplianceSummariesRequest $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. - */ - public function listControlComplianceSummaries(ListControlComplianceSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListControlComplianceSummaries', $request, $callOptions); - } - - /** - * Lists the finding summary by category for a given scope. - * - * The async variant is {@see MonitoringClient::listFindingSummariesAsync()} . - * - * @example samples/V1/MonitoringClient/list_finding_summaries.php - * - * @param ListFindingSummariesRequest $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. - */ - public function listFindingSummaries(ListFindingSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFindingSummaries', $request, $callOptions); - } - - /** - * Lists the framework compliance summary for a given scope. - * - * The async variant is - * {@see MonitoringClient::listFrameworkComplianceSummariesAsync()} . - * - * @example samples/V1/MonitoringClient/list_framework_compliance_summaries.php - * - * @param ListFrameworkComplianceSummariesRequest $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. - */ - public function listFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFrameworkComplianceSummaries', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see MonitoringClient::getLocationAsync()} . - * - * @example samples/V1/MonitoringClient/get_location.php - * - * @param GetLocationRequest $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 Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: * - **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see MonitoringClient::listLocationsAsync()} . - * - * @example samples/V1/MonitoringClient/list_locations.php - * - * @param ListLocationsRequest $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. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 97ea78469438..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.cloudsecuritycompliance.v1", - "libraryPackage": "Google\\Cloud\\CloudSecurityCompliance\\V1", - "services": { - "Audit": { - "clients": { - "grpc": { - "libraryClient": "AuditGapicClient", - "rpcs": { - "CreateFrameworkAudit": { - "methods": [ - "createFrameworkAudit" - ] - }, - "GenerateFrameworkAuditScopeReport": { - "methods": [ - "generateFrameworkAuditScopeReport" - ] - }, - "GetFrameworkAudit": { - "methods": [ - "getFrameworkAudit" - ] - }, - "ListFrameworkAudits": { - "methods": [ - "listFrameworkAudits" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "CmEnrollmentService": { - "clients": { - "grpc": { - "libraryClient": "CmEnrollmentServiceGapicClient", - "rpcs": { - "CalculateEffectiveCmEnrollment": { - "methods": [ - "calculateEffectiveCmEnrollment" - ] - }, - "UpdateCmEnrollment": { - "methods": [ - "updateCmEnrollment" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "Config": { - "clients": { - "grpc": { - "libraryClient": "ConfigGapicClient", - "rpcs": { - "CreateCloudControl": { - "methods": [ - "createCloudControl" - ] - }, - "CreateFramework": { - "methods": [ - "createFramework" - ] - }, - "DeleteCloudControl": { - "methods": [ - "deleteCloudControl" - ] - }, - "DeleteFramework": { - "methods": [ - "deleteFramework" - ] - }, - "GetCloudControl": { - "methods": [ - "getCloudControl" - ] - }, - "GetFramework": { - "methods": [ - "getFramework" - ] - }, - "ListCloudControls": { - "methods": [ - "listCloudControls" - ] - }, - "ListFrameworks": { - "methods": [ - "listFrameworks" - ] - }, - "UpdateCloudControl": { - "methods": [ - "updateCloudControl" - ] - }, - "UpdateFramework": { - "methods": [ - "updateFramework" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "Deployment": { - "clients": { - "grpc": { - "libraryClient": "DeploymentGapicClient", - "rpcs": { - "CreateFrameworkDeployment": { - "methods": [ - "createFrameworkDeployment" - ] - }, - "DeleteFrameworkDeployment": { - "methods": [ - "deleteFrameworkDeployment" - ] - }, - "GetCloudControlDeployment": { - "methods": [ - "getCloudControlDeployment" - ] - }, - "GetFrameworkDeployment": { - "methods": [ - "getFrameworkDeployment" - ] - }, - "ListCloudControlDeployments": { - "methods": [ - "listCloudControlDeployments" - ] - }, - "ListFrameworkDeployments": { - "methods": [ - "listFrameworkDeployments" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "Monitoring": { - "clients": { - "grpc": { - "libraryClient": "MonitoringGapicClient", - "rpcs": { - "AggregateFrameworkComplianceReport": { - "methods": [ - "aggregateFrameworkComplianceReport" - ] - }, - "FetchFrameworkComplianceReport": { - "methods": [ - "fetchFrameworkComplianceReport" - ] - }, - "ListControlComplianceSummaries": { - "methods": [ - "listControlComplianceSummaries" - ] - }, - "ListFindingSummaries": { - "methods": [ - "listFindingSummaries" - ] - }, - "ListFrameworkComplianceSummaries": { - "methods": [ - "listFrameworkComplianceSummaries" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json deleted file mode 100644 index 8847614942cc..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_client_config.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudsecuritycompliance.v1.Audit": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "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 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateFrameworkAudit": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateFrameworkAuditScopeReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetFrameworkAudit": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFrameworkAudits": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php deleted file mode 100644 index 7438a998d28e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_descriptor_config.php +++ /dev/null @@ -1,132 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Audit' => [ - 'CreateFrameworkAudit' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit', - 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GenerateFrameworkAuditScopeReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\GenerateFrameworkAuditScopeReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'GetFrameworkAudit' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkAudit', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFrameworkAudits' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFrameworkAudits', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkAuditsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'frameworkAudit' => 'projects/{project}/locations/{location}/frameworkAudits/{framework_audit}', - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationFrameworkAudit' => 'organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}', - 'projectLocationFrameworkAudit' => 'projects/{project}/locations/{location}/frameworkAudits/{framework_audit}', - ], - ], - ], -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php deleted file mode 100644 index 1f63c54afb8a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/audit_rest_client_config.php +++ /dev/null @@ -1,227 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Audit' => [ - 'CreateFrameworkAudit' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkAudits', - 'body' => 'framework_audit', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkAudits', - 'body' => 'framework_audit', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkAudits', - 'body' => 'framework_audit', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GenerateFrameworkAuditScopeReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'GetFrameworkAudit' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkAudits/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkAudits/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkAudits/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFrameworkAudits' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkAudits', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkAudits', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkAudits', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json deleted file mode 100644 index df283f576880..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_client_config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService": { - "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": { - "CalculateEffectiveCmEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCmEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php deleted file mode 100644 index eafae016cd3f..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_descriptor_config.php +++ /dev/null @@ -1,92 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService' => [ - 'CalculateEffectiveCmEnrollment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CalculateEffectiveCmEnrollmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateCmEnrollment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CmEnrollment', - 'headerParams' => [ - [ - 'keyName' => 'cm_enrollment.name', - 'fieldAccessors' => [ - 'getCmEnrollment', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'cmEnrollment' => 'organizations/{organization}/locations/{location}/cmEnrollment', - 'organizationLocationCmEnrollment' => 'organizations/{organization}/locations/{location}/cmEnrollment', - 'projectLocationCmEnrollment' => 'projects/{project}/locations/{location}/cmEnrollment', - ], - ], - ], -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php deleted file mode 100644 index 5bb0f9753353..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/cm_enrollment_service_rest_client_config.php +++ /dev/null @@ -1,183 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService' => [ - 'CalculateEffectiveCmEnrollment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cmEnrollment}:calculate', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/locations/*/cmEnrollment}:calculate', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/cmEnrollment}:calculate', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateCmEnrollment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}', - 'body' => 'cm_enrollment', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}', - 'body' => 'cm_enrollment', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cm_enrollment.name=projects/*/locations/*/cmEnrollment}', - 'body' => 'cm_enrollment', - ], - ], - 'placeholders' => [ - 'cm_enrollment.name' => [ - 'getters' => [ - 'getCmEnrollment', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json deleted file mode 100644 index f6f92793809e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_client_config.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudsecuritycompliance.v1.Config": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "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 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateCloudControl": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateFramework": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCloudControl": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFramework": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetCloudControl": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFramework": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCloudControls": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFrameworks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCloudControl": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateFramework": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php deleted file mode 100644 index a5457427909e..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_descriptor_config.php +++ /dev/null @@ -1,210 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Config' => [ - 'CreateCloudControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFramework' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteCloudControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFramework' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCloudControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFramework' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCloudControls' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCloudControls', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFrameworks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateCloudControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControl', - 'headerParams' => [ - [ - 'keyName' => 'cloud_control.name', - 'fieldAccessors' => [ - 'getCloudControl', - 'getName', - ], - ], - ], - ], - 'UpdateFramework' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\Framework', - 'headerParams' => [ - [ - 'keyName' => 'framework.name', - 'fieldAccessors' => [ - 'getFramework', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'cloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', - 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationCloudControl' => 'organizations/{organization}/locations/{location}/cloudControls/{cloud_control}', - 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', - 'projectLocationCloudControl' => 'projects/{project}/locations/{location}/cloudControls/{cloud_control}', - 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', - ], - ], - ], -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php deleted file mode 100644 index 1a02c7d8eeee..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/config_rest_client_config.php +++ /dev/null @@ -1,329 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Config' => [ - 'CreateCloudControl' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', - 'body' => 'cloud_control', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', - 'body' => 'cloud_control', - 'queryParams' => [ - 'cloud_control_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'cloud_control_id', - ], - ], - 'CreateFramework' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', - 'body' => 'framework', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', - 'body' => 'framework', - 'queryParams' => [ - 'framework_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'framework_id', - ], - ], - 'DeleteCloudControl' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFramework' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCloudControl' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControls/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControls/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFramework' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworks/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworks/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCloudControls' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControls', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControls', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworks', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworks', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateCloudControl' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}', - 'body' => 'cloud_control', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}', - 'body' => 'cloud_control', - ], - ], - 'placeholders' => [ - 'cloud_control.name' => [ - 'getters' => [ - 'getCloudControl', - 'getName', - ], - ], - ], - ], - 'UpdateFramework' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{framework.name=organizations/*/locations/*/frameworks/*}', - 'body' => 'framework', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{framework.name=projects/*/locations/*/frameworks/*}', - 'body' => 'framework', - ], - ], - 'placeholders' => [ - 'framework.name' => [ - 'getters' => [ - 'getFramework', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json deleted file mode 100644 index 7aee7b1a43f7..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_client_config.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudsecuritycompliance.v1.Deployment": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "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 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateFrameworkDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFrameworkDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetCloudControlDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFrameworkDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCloudControlDeployments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFrameworkDeployments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php deleted file mode 100644 index 2a2364f87632..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_descriptor_config.php +++ /dev/null @@ -1,177 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Deployment' => [ - 'CreateFrameworkDeployment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment', - 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFrameworkDeployment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\CloudSecurityCompliance\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCloudControlDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\CloudControlDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFrameworkDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCloudControlDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCloudControlDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListCloudControlDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworkDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFrameworkDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'cloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', - 'framework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', - 'frameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationCloudControlDeployment' => 'organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', - 'organizationLocationFramework' => 'organizations/{organization}/locations/{location}/frameworks/{framework}', - 'organizationLocationFrameworkDeployment' => 'organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}', - 'projectLocationCloudControlDeployment' => 'projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}', - 'projectLocationFramework' => 'projects/{project}/locations/{location}/frameworks/{framework}', - 'projectLocationFrameworkDeployment' => 'projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}', - ], - ], - ], -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php deleted file mode 100644 index a9e3ea422cce..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/deployment_rest_client_config.php +++ /dev/null @@ -1,241 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Deployment' => [ - 'CreateFrameworkDeployment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', - 'body' => 'framework_deployment', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', - 'body' => 'framework_deployment', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFrameworkDeployment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCloudControlDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudControlDeployments/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFrameworkDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkDeployments/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkDeployments/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCloudControlDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/cloudControlDeployments', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudControlDeployments', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworkDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkDeployments', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkDeployments', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json deleted file mode 100644 index ce661a561da9..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.cloudsecuritycompliance.v1.Monitoring": { - "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": { - "AggregateFrameworkComplianceReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchFrameworkComplianceReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListControlComplianceSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFindingSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFrameworkComplianceSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php deleted file mode 100644 index 40b012f42a16..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_descriptor_config.php +++ /dev/null @@ -1,155 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Monitoring' => [ - 'AggregateFrameworkComplianceReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\AggregateFrameworkComplianceReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchFrameworkComplianceReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\FrameworkComplianceReport', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListControlComplianceSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getControlComplianceSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListControlComplianceSummariesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFindingSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFindingSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFindingSummariesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworkComplianceSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFrameworkComplianceSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\CloudSecurityCompliance\V1\ListFrameworkComplianceSummariesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'folderLocation' => 'folders/{folder}/locations/{location}', - 'folderLocationFrameworkComplianceReport' => 'folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', - 'frameworkComplianceReport' => 'projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', - 'location' => 'projects/{project}/locations/{location}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationFrameworkComplianceReport' => 'organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', - 'projectLocationFrameworkComplianceReport' => 'projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}', - ], - ], - ], -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php b/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php deleted file mode 100644 index 9e2e0444d08a..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/src/V1/resources/monitoring_rest_client_config.php +++ /dev/null @@ -1,242 +0,0 @@ - [ - 'google.cloud.cloudsecuritycompliance.v1.Monitoring' => [ - 'AggregateFrameworkComplianceReport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregate', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregate', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchFrameworkComplianceReport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetch', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetch', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListControlComplianceSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFindingSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/findingSummaries', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/findingSummaries', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/findingSummaries', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFrameworkComplianceSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummaries', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*/locations/*}/frameworkComplianceSummaries', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php deleted file mode 100644 index 68377c72b1a6..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/AuditClientTest.php +++ /dev/null @@ -1,646 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AuditClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AuditClient($options); - } - - /** @test */ - public function createFrameworkAuditTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkAuditTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $frameworkAuditId2 = 'frameworkAuditId22046715091'; - $complianceFramework = 'complianceFramework1384085210'; - $scope = 'scope109264468'; - $operationId = 'operationId-274116877'; - $expectedResponse = new FrameworkAudit(); - $expectedResponse->setName($name); - $expectedResponse->setFrameworkAuditId($frameworkAuditId2); - $expectedResponse->setComplianceFramework($complianceFramework); - $expectedResponse->setScope($scope); - $expectedResponse->setOperationId($operationId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFrameworkAuditTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkAudit = new FrameworkAudit(); - $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); - $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); - $request = (new CreateFrameworkAuditRequest()) - ->setParent($formattedParent) - ->setFrameworkAudit($frameworkAudit); - $response = $gapicClient->createFrameworkAudit($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFrameworkAudit(); - $this->assertProtobufEquals($frameworkAudit, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createFrameworkAuditExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkAuditTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkAudit = new FrameworkAudit(); - $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); - $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); - $request = (new CreateFrameworkAuditRequest()) - ->setParent($formattedParent) - ->setFrameworkAudit($frameworkAudit); - $response = $gapicClient->createFrameworkAudit($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function generateFrameworkAuditScopeReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $scopeReportContents = '-38'; - $name = 'name3373707'; - $complianceFramework2 = 'complianceFramework2-1333971955'; - $expectedResponse = new GenerateFrameworkAuditScopeReportResponse(); - $expectedResponse->setScopeReportContents($scopeReportContents); - $expectedResponse->setName($name); - $expectedResponse->setComplianceFramework($complianceFramework2); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $reportFormat = Format::FORMAT_UNSPECIFIED; - $complianceFramework = 'complianceFramework1384085210'; - $request = (new GenerateFrameworkAuditScopeReportRequest()) - ->setScope($scope) - ->setReportFormat($reportFormat) - ->setComplianceFramework($complianceFramework); - $response = $gapicClient->generateFrameworkAuditScopeReport($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.cloudsecuritycompliance.v1.Audit/GenerateFrameworkAuditScopeReport', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $actualValue = $actualRequestObject->getReportFormat(); - $this->assertProtobufEquals($reportFormat, $actualValue); - $actualValue = $actualRequestObject->getComplianceFramework(); - $this->assertProtobufEquals($complianceFramework, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateFrameworkAuditScopeReportExceptionTest() - { - $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 - $scope = 'scope109264468'; - $reportFormat = Format::FORMAT_UNSPECIFIED; - $complianceFramework = 'complianceFramework1384085210'; - $request = (new GenerateFrameworkAuditScopeReportRequest()) - ->setScope($scope) - ->setReportFormat($reportFormat) - ->setComplianceFramework($complianceFramework); - try { - $gapicClient->generateFrameworkAuditScopeReport($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 getFrameworkAuditTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $frameworkAuditId = 'frameworkAuditId-234741472'; - $complianceFramework = 'complianceFramework1384085210'; - $scope = 'scope109264468'; - $operationId = 'operationId-274116877'; - $expectedResponse = new FrameworkAudit(); - $expectedResponse->setName($name2); - $expectedResponse->setFrameworkAuditId($frameworkAuditId); - $expectedResponse->setComplianceFramework($complianceFramework); - $expectedResponse->setScope($scope); - $expectedResponse->setOperationId($operationId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); - $request = (new GetFrameworkAuditRequest()) - ->setName($formattedName); - $response = $gapicClient->getFrameworkAudit($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.cloudsecuritycompliance.v1.Audit/GetFrameworkAudit', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFrameworkAuditExceptionTest() - { - $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->frameworkAuditName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_AUDIT]'); - $request = (new GetFrameworkAuditRequest()) - ->setName($formattedName); - try { - $gapicClient->getFrameworkAudit($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 listFrameworkAuditsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $frameworkAuditsElement = new FrameworkAudit(); - $frameworkAudits = [ - $frameworkAuditsElement, - ]; - $expectedResponse = new ListFrameworkAuditsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFrameworkAudits($frameworkAudits); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFrameworkAuditsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFrameworkAudits($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFrameworkAudits()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/ListFrameworkAudits', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFrameworkAuditsExceptionTest() - { - $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 ListFrameworkAuditsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFrameworkAudits($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createFrameworkAuditAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkAuditTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $frameworkAuditId2 = 'frameworkAuditId22046715091'; - $complianceFramework = 'complianceFramework1384085210'; - $scope = 'scope109264468'; - $operationId = 'operationId-274116877'; - $expectedResponse = new FrameworkAudit(); - $expectedResponse->setName($name); - $expectedResponse->setFrameworkAuditId($frameworkAuditId2); - $expectedResponse->setComplianceFramework($complianceFramework); - $expectedResponse->setScope($scope); - $expectedResponse->setOperationId($operationId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFrameworkAuditTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkAudit = new FrameworkAudit(); - $frameworkAuditFrameworkAuditDestination = new FrameworkAuditDestination(); - $frameworkAudit->setFrameworkAuditDestination($frameworkAuditFrameworkAuditDestination); - $request = (new CreateFrameworkAuditRequest()) - ->setParent($formattedParent) - ->setFrameworkAudit($frameworkAudit); - $response = $gapicClient->createFrameworkAuditAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFrameworkAudit(); - $this->assertProtobufEquals($frameworkAudit, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkAuditTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php deleted file mode 100644 index 1b1e97db4581..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/CmEnrollmentServiceClientTest.php +++ /dev/null @@ -1,347 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CmEnrollmentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CmEnrollmentServiceClient($options); - } - - /** @test */ - public function calculateEffectiveCmEnrollmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CalculateEffectiveCmEnrollmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); - $request = (new CalculateEffectiveCmEnrollmentRequest()) - ->setName($formattedName); - $response = $gapicClient->calculateEffectiveCmEnrollment($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.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function calculateEffectiveCmEnrollmentExceptionTest() - { - $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->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); - $request = (new CalculateEffectiveCmEnrollmentRequest()) - ->setName($formattedName); - try { - $gapicClient->calculateEffectiveCmEnrollment($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 updateCmEnrollmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $enrolled = false; - $expectedResponse = new CmEnrollment(); - $expectedResponse->setName($name); - $expectedResponse->setEnrolled($enrolled); - $transport->addResponse($expectedResponse); - // Mock request - $cmEnrollment = new CmEnrollment(); - $request = (new UpdateCmEnrollmentRequest()) - ->setCmEnrollment($cmEnrollment); - $response = $gapicClient->updateCmEnrollment($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.cloudsecuritycompliance.v1.CmEnrollmentService/UpdateCmEnrollment', $actualFuncCall); - $actualValue = $actualRequestObject->getCmEnrollment(); - $this->assertProtobufEquals($cmEnrollment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCmEnrollmentExceptionTest() - { - $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 - $cmEnrollment = new CmEnrollment(); - $request = (new UpdateCmEnrollmentRequest()) - ->setCmEnrollment($cmEnrollment); - try { - $gapicClient->updateCmEnrollment($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 calculateEffectiveCmEnrollmentAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CalculateEffectiveCmEnrollmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->cmEnrollmentName('[ORGANIZATION]', '[LOCATION]'); - $request = (new CalculateEffectiveCmEnrollmentRequest()) - ->setName($formattedName); - $response = $gapicClient->calculateEffectiveCmEnrollmentAsync($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.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php deleted file mode 100644 index e5017e9516d3..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/ConfigClientTest.php +++ /dev/null @@ -1,990 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ConfigClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ConfigClient($options); - } - - /** @test */ - public function createCloudControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $majorRevisionId = 612576889; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $findingCategory = 'findingCategory1739472116'; - $remediationSteps = 'remediationSteps-161402227'; - $expectedResponse = new CloudControl(); - $expectedResponse->setName($name); - $expectedResponse->setMajorRevisionId($majorRevisionId); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setFindingCategory($findingCategory); - $expectedResponse->setRemediationSteps($remediationSteps); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $cloudControlId = 'cloudControlId2101815175'; - $cloudControl = new CloudControl(); - $cloudControlName = 'cloudControlName328508435'; - $cloudControl->setName($cloudControlName); - $request = (new CreateCloudControlRequest()) - ->setParent($formattedParent) - ->setCloudControlId($cloudControlId) - ->setCloudControl($cloudControl); - $response = $gapicClient->createCloudControl($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.cloudsecuritycompliance.v1.Config/CreateCloudControl', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCloudControlId(); - $this->assertProtobufEquals($cloudControlId, $actualValue); - $actualValue = $actualRequestObject->getCloudControl(); - $this->assertProtobufEquals($cloudControl, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCloudControlExceptionTest() - { - $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]'); - $cloudControlId = 'cloudControlId2101815175'; - $cloudControl = new CloudControl(); - $cloudControlName = 'cloudControlName328508435'; - $cloudControl->setName($cloudControlName); - $request = (new CreateCloudControlRequest()) - ->setParent($formattedParent) - ->setCloudControlId($cloudControlId) - ->setCloudControl($cloudControl); - try { - $gapicClient->createCloudControl($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 createFrameworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $majorRevisionId = 612576889; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Framework(); - $expectedResponse->setName($name); - $expectedResponse->setMajorRevisionId($majorRevisionId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkId = 'frameworkId1716868860'; - $framework = new Framework(); - $frameworkName = 'frameworkName1682813353'; - $framework->setName($frameworkName); - $request = (new CreateFrameworkRequest()) - ->setParent($formattedParent) - ->setFrameworkId($frameworkId) - ->setFramework($framework); - $response = $gapicClient->createFramework($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.cloudsecuritycompliance.v1.Config/CreateFramework', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFrameworkId(); - $this->assertProtobufEquals($frameworkId, $actualValue); - $actualValue = $actualRequestObject->getFramework(); - $this->assertProtobufEquals($framework, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFrameworkExceptionTest() - { - $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]'); - $frameworkId = 'frameworkId1716868860'; - $framework = new Framework(); - $frameworkName = 'frameworkName1682813353'; - $framework->setName($frameworkName); - $request = (new CreateFrameworkRequest()) - ->setParent($formattedParent) - ->setFrameworkId($frameworkId) - ->setFramework($framework); - try { - $gapicClient->createFramework($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 deleteCloudControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - $request = (new DeleteCloudControlRequest()) - ->setName($formattedName); - $gapicClient->deleteCloudControl($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/DeleteCloudControl', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCloudControlExceptionTest() - { - $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->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - $request = (new DeleteCloudControlRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteCloudControl($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 deleteFrameworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $request = (new DeleteFrameworkRequest()) - ->setName($formattedName); - $gapicClient->deleteFramework($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/DeleteFramework', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFrameworkExceptionTest() - { - $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->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $request = (new DeleteFrameworkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFramework($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 getCloudControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $majorRevisionId2 = 275873772; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $findingCategory = 'findingCategory1739472116'; - $remediationSteps = 'remediationSteps-161402227'; - $expectedResponse = new CloudControl(); - $expectedResponse->setName($name2); - $expectedResponse->setMajorRevisionId($majorRevisionId2); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setFindingCategory($findingCategory); - $expectedResponse->setRemediationSteps($remediationSteps); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - $request = (new GetCloudControlRequest()) - ->setName($formattedName); - $response = $gapicClient->getCloudControl($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.cloudsecuritycompliance.v1.Config/GetCloudControl', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCloudControlExceptionTest() - { - $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->cloudControlName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL]'); - $request = (new GetCloudControlRequest()) - ->setName($formattedName); - try { - $gapicClient->getCloudControl($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 getFrameworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $majorRevisionId2 = 275873772; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Framework(); - $expectedResponse->setName($name2); - $expectedResponse->setMajorRevisionId($majorRevisionId2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $request = (new GetFrameworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getFramework($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.cloudsecuritycompliance.v1.Config/GetFramework', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFrameworkExceptionTest() - { - $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->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $request = (new GetFrameworkRequest()) - ->setName($formattedName); - try { - $gapicClient->getFramework($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 listCloudControlsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $cloudControlsElement = new CloudControl(); - $cloudControls = [ - $cloudControlsElement, - ]; - $expectedResponse = new ListCloudControlsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCloudControls($cloudControls); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListCloudControlsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCloudControls($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCloudControls()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/ListCloudControls', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCloudControlsExceptionTest() - { - $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 ListCloudControlsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCloudControls($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 listFrameworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $frameworksElement = new Framework(); - $frameworks = [ - $frameworksElement, - ]; - $expectedResponse = new ListFrameworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFrameworks($frameworks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFrameworksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFrameworks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFrameworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Config/ListFrameworks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFrameworksExceptionTest() - { - $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 ListFrameworksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFrameworks($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 updateCloudControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $majorRevisionId = 612576889; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $findingCategory = 'findingCategory1739472116'; - $remediationSteps = 'remediationSteps-161402227'; - $expectedResponse = new CloudControl(); - $expectedResponse->setName($name); - $expectedResponse->setMajorRevisionId($majorRevisionId); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setFindingCategory($findingCategory); - $expectedResponse->setRemediationSteps($remediationSteps); - $transport->addResponse($expectedResponse); - // Mock request - $cloudControl = new CloudControl(); - $cloudControlName = 'cloudControlName328508435'; - $cloudControl->setName($cloudControlName); - $request = (new UpdateCloudControlRequest()) - ->setCloudControl($cloudControl); - $response = $gapicClient->updateCloudControl($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.cloudsecuritycompliance.v1.Config/UpdateCloudControl', $actualFuncCall); - $actualValue = $actualRequestObject->getCloudControl(); - $this->assertProtobufEquals($cloudControl, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCloudControlExceptionTest() - { - $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 - $cloudControl = new CloudControl(); - $cloudControlName = 'cloudControlName328508435'; - $cloudControl->setName($cloudControlName); - $request = (new UpdateCloudControlRequest()) - ->setCloudControl($cloudControl); - try { - $gapicClient->updateCloudControl($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 updateFrameworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $majorRevisionId2 = 275873772; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Framework(); - $expectedResponse->setName($name); - $expectedResponse->setMajorRevisionId($majorRevisionId2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $framework = new Framework(); - $frameworkName = 'frameworkName1682813353'; - $framework->setName($frameworkName); - $request = (new UpdateFrameworkRequest()) - ->setFramework($framework); - $response = $gapicClient->updateFramework($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.cloudsecuritycompliance.v1.Config/UpdateFramework', $actualFuncCall); - $actualValue = $actualRequestObject->getFramework(); - $this->assertProtobufEquals($framework, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFrameworkExceptionTest() - { - $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 - $framework = new Framework(); - $frameworkName = 'frameworkName1682813353'; - $framework->setName($frameworkName); - $request = (new UpdateFrameworkRequest()) - ->setFramework($framework); - try { - $gapicClient->updateFramework($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createCloudControlAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $majorRevisionId = 612576889; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $findingCategory = 'findingCategory1739472116'; - $remediationSteps = 'remediationSteps-161402227'; - $expectedResponse = new CloudControl(); - $expectedResponse->setName($name); - $expectedResponse->setMajorRevisionId($majorRevisionId); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setFindingCategory($findingCategory); - $expectedResponse->setRemediationSteps($remediationSteps); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $cloudControlId = 'cloudControlId2101815175'; - $cloudControl = new CloudControl(); - $cloudControlName = 'cloudControlName328508435'; - $cloudControl->setName($cloudControlName); - $request = (new CreateCloudControlRequest()) - ->setParent($formattedParent) - ->setCloudControlId($cloudControlId) - ->setCloudControl($cloudControl); - $response = $gapicClient->createCloudControlAsync($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.cloudsecuritycompliance.v1.Config/CreateCloudControl', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCloudControlId(); - $this->assertProtobufEquals($cloudControlId, $actualValue); - $actualValue = $actualRequestObject->getCloudControl(); - $this->assertProtobufEquals($cloudControl, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php deleted file mode 100644 index 058ed616e83b..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/DeploymentClientTest.php +++ /dev/null @@ -1,853 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DeploymentClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DeploymentClient($options); - } - - /** @test */ - public function createFrameworkDeploymentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $computedTargetResource = 'computedTargetResource956813770'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; - $expectedResponse = new FrameworkDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setComputedTargetResource($computedTargetResource); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFrameworkDeploymentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkDeployment = new FrameworkDeployment(); - $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); - $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); - $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $frameworkDeploymentFramework->setFramework($frameworkFramework); - $frameworkDeployment->setFramework($frameworkDeploymentFramework); - $frameworkDeploymentCloudControlMetadata = []; - $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); - $request = (new CreateFrameworkDeploymentRequest()) - ->setParent($formattedParent) - ->setFrameworkDeployment($frameworkDeployment); - $response = $gapicClient->createFrameworkDeployment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/CreateFrameworkDeployment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFrameworkDeployment(); - $this->assertProtobufEquals($frameworkDeployment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createFrameworkDeploymentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkDeployment = new FrameworkDeployment(); - $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); - $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); - $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $frameworkDeploymentFramework->setFramework($frameworkFramework); - $frameworkDeployment->setFramework($frameworkDeploymentFramework); - $frameworkDeploymentCloudControlMetadata = []; - $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); - $request = (new CreateFrameworkDeploymentRequest()) - ->setParent($formattedParent) - ->setFrameworkDeployment($frameworkDeployment); - $response = $gapicClient->createFrameworkDeployment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteFrameworkDeploymentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFrameworkDeploymentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFrameworkDeploymentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); - $request = (new DeleteFrameworkDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFrameworkDeployment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/DeleteFrameworkDeployment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFrameworkDeploymentTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteFrameworkDeploymentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFrameworkDeploymentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); - $request = (new DeleteFrameworkDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFrameworkDeployment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFrameworkDeploymentTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getCloudControlDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $targetResource = 'targetResource-69552388'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; - $expectedResponse = new CloudControlDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->cloudControlDeploymentName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL_DEPLOYMENT]'); - $request = (new GetCloudControlDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getCloudControlDeployment($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.cloudsecuritycompliance.v1.Deployment/GetCloudControlDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCloudControlDeploymentExceptionTest() - { - $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->cloudControlDeploymentName('[ORGANIZATION]', '[LOCATION]', '[CLOUD_CONTROL_DEPLOYMENT]'); - $request = (new GetCloudControlDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getCloudControlDeployment($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 getFrameworkDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $computedTargetResource = 'computedTargetResource956813770'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; - $expectedResponse = new FrameworkDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setComputedTargetResource($computedTargetResource); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); - $request = (new GetFrameworkDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getFrameworkDeployment($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.cloudsecuritycompliance.v1.Deployment/GetFrameworkDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFrameworkDeploymentExceptionTest() - { - $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->frameworkDeploymentName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK_DEPLOYMENT]'); - $request = (new GetFrameworkDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getFrameworkDeployment($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 listCloudControlDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $cloudControlDeploymentsElement = new CloudControlDeployment(); - $cloudControlDeployments = [ - $cloudControlDeploymentsElement, - ]; - $expectedResponse = new ListCloudControlDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCloudControlDeployments($cloudControlDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListCloudControlDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCloudControlDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCloudControlDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/ListCloudControlDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCloudControlDeploymentsExceptionTest() - { - $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 ListCloudControlDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCloudControlDeployments($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 listFrameworkDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $frameworkDeploymentsElement = new FrameworkDeployment(); - $frameworkDeployments = [ - $frameworkDeploymentsElement, - ]; - $expectedResponse = new ListFrameworkDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFrameworkDeployments($frameworkDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFrameworkDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFrameworkDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFrameworkDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/ListFrameworkDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFrameworkDeploymentsExceptionTest() - { - $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 ListFrameworkDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFrameworkDeployments($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 createFrameworkDeploymentAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFrameworkDeploymentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $computedTargetResource = 'computedTargetResource956813770'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $targetResourceDisplayName = 'targetResourceDisplayName2096312395'; - $expectedResponse = new FrameworkDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setComputedTargetResource($computedTargetResource); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setTargetResourceDisplayName($targetResourceDisplayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFrameworkDeploymentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $frameworkDeployment = new FrameworkDeployment(); - $frameworkDeploymentTargetResourceConfig = new TargetResourceConfig(); - $frameworkDeployment->setTargetResourceConfig($frameworkDeploymentTargetResourceConfig); - $frameworkDeploymentFramework = new FrameworkReference(); - $frameworkFramework = $gapicClient->frameworkName('[ORGANIZATION]', '[LOCATION]', '[FRAMEWORK]'); - $frameworkDeploymentFramework->setFramework($frameworkFramework); - $frameworkDeployment->setFramework($frameworkDeploymentFramework); - $frameworkDeploymentCloudControlMetadata = []; - $frameworkDeployment->setCloudControlMetadata($frameworkDeploymentCloudControlMetadata); - $request = (new CreateFrameworkDeploymentRequest()) - ->setParent($formattedParent) - ->setFrameworkDeployment($frameworkDeployment); - $response = $gapicClient->createFrameworkDeploymentAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Deployment/CreateFrameworkDeployment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFrameworkDeployment(); - $this->assertProtobufEquals($frameworkDeployment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFrameworkDeploymentTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php b/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php deleted file mode 100644 index c331c19c9481..000000000000 --- a/owl-bot-staging/SecurityCompliance/v1/tests/Unit/V1/Client/MonitoringClientTest.php +++ /dev/null @@ -1,580 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MonitoringClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MonitoringClient($options); - } - - /** @test */ - public function aggregateFrameworkComplianceReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AggregateFrameworkComplianceReportResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new AggregateFrameworkComplianceReportRequest()) - ->setName($formattedName); - $response = $gapicClient->aggregateFrameworkComplianceReport($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.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregateFrameworkComplianceReportExceptionTest() - { - $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new AggregateFrameworkComplianceReportRequest()) - ->setName($formattedName); - try { - $gapicClient->aggregateFrameworkComplianceReport($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 fetchFrameworkComplianceReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $framework = 'framework546173438'; - $frameworkDescription = 'frameworkDescription676251451'; - $frameworkDisplayName = 'frameworkDisplayName-1269602167'; - $name2 = 'name2-1052831874'; - $majorRevisionId = 612576889; - $minorRevisionId = 1736456587; - $expectedResponse = new FrameworkComplianceReport(); - $expectedResponse->setFramework($framework); - $expectedResponse->setFrameworkDescription($frameworkDescription); - $expectedResponse->setFrameworkDisplayName($frameworkDisplayName); - $expectedResponse->setName($name2); - $expectedResponse->setMajorRevisionId($majorRevisionId); - $expectedResponse->setMinorRevisionId($minorRevisionId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new FetchFrameworkComplianceReportRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchFrameworkComplianceReport($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.cloudsecuritycompliance.v1.Monitoring/FetchFrameworkComplianceReport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFrameworkComplianceReportExceptionTest() - { - $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new FetchFrameworkComplianceReportRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchFrameworkComplianceReport($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 listControlComplianceSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $controlComplianceSummariesElement = new ControlComplianceSummary(); - $controlComplianceSummaries = [ - $controlComplianceSummariesElement, - ]; - $expectedResponse = new ListControlComplianceSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setControlComplianceSummaries($controlComplianceSummaries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new ListControlComplianceSummariesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listControlComplianceSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getControlComplianceSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListControlComplianceSummaries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listControlComplianceSummariesExceptionTest() - { - $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->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new ListControlComplianceSummariesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listControlComplianceSummaries($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 listFindingSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $findingSummariesElement = new FindingSummary(); - $findingSummaries = [ - $findingSummariesElement, - ]; - $expectedResponse = new ListFindingSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFindingSummaries($findingSummaries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFindingSummariesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFindingSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFindingSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFindingSummaries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFindingSummariesExceptionTest() - { - $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 ListFindingSummariesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFindingSummaries($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 listFrameworkComplianceSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $frameworkComplianceSummariesElement = new FrameworkComplianceSummary(); - $frameworkComplianceSummaries = [ - $frameworkComplianceSummariesElement, - ]; - $expectedResponse = new ListFrameworkComplianceSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFrameworkComplianceSummaries($frameworkComplianceSummaries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFrameworkComplianceSummariesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFrameworkComplianceSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFrameworkComplianceSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFrameworkComplianceSummaries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFrameworkComplianceSummariesExceptionTest() - { - $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 ListFrameworkComplianceSummariesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFrameworkComplianceSummaries($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 getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($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.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $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); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($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 listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $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); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($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 aggregateFrameworkComplianceReportAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AggregateFrameworkComplianceReportResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->frameworkComplianceReportName('[PROJECT]', '[LOCATION]', '[FRAMEWORK_COMPLIANCE_REPORT]'); - $request = (new AggregateFrameworkComplianceReportRequest()) - ->setName($formattedName); - $response = $gapicClient->aggregateFrameworkComplianceReportAsync($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.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}